Fork me on GitHub
#spacemacs
<
2020-05-30
>
Drew Verlee20:05:09

Is there a way in lisp state to move by clojure map keys?

aisamu21:05:46

I'm not sure what you mean by this, do you mind rephrasing?

Drew Verlee23:05:41

My cursior is the * {:A* :b :c :d} I want to jump to the next key (:c). Does anything do this?

aisamu13:05:44

I see! I don't believe there's a shortcut for that other than 'move 2 symbols forward' SPC K 2 l

Drew Verlee19:05:57

Thanks. In this case the map value is just one symbol, in a lot of others it's many more. I think the solution is that I'll read the map/edn into memory and just add keys that way then write it back out. Similar to how I work with a database.

Drew Verlee20:05:31

move by symbol isn't right nor is by parns

Drew Verlee20:05:21

I think in the use case i'm in i should just read the map (which is really large) into memory and alter it there then just write it back out.

Drew Verlee20:05:32

but it would be nice to know if there is a way to do this.