spacemacs

Drew Verlee 2022-04-26T20:49:23.713059Z

What would allow for movement? Where my mouse is at and i want to go to *. Basically i'm one clojure hashmap key and i want to jump to the space to make another one?

{a* b **}
Space k <?>

Drew Verlee 2022-04-26T20:50:07.443179Z

sp-end-of-sexp works if it's the last one...

Drew Verlee 2022-04-26T20:51:10.152039Z

i guess i could just tab it down and start another item right there :0

Drew Verlee 2022-04-26T20:52:19.648169Z

probably need at least two commands, i'm just over thinking it. 1. go to the next item then 2 insert new.

Martynas Maciulevičius 2022-04-27T11:17:01.476049Z

You could try Ea<space> to insert: {:hell[o] :one-thing :second :thing} -> {:hello :one-thing | :second :thing}

Martynas Maciulevičius 2022-04-27T11:22:55.376779Z

Also if you have newlines after each key-value pair the insertion is even simpler, just press A . I also like to use o and O very much.

practicalli-johnny 2022-04-27T11:33:05.844019Z

@drewverlee if using Evil style editing, in normal mode ] will jump to the end of the next value in key/value pair within a hash-map (`evil-cp-next-closing` ) [ will jump to the start of the previous value in a key/value pair within a hash-map (`evil-cp-previous-opening`)

👍 1
Martynas Maciulevičius 2022-04-27T11:52:43.711539Z

I use develop and I don't have function evil-cp-next-closing . Do I need to do something to get it? Also ] does nothing but ]] jumps to a next paragraph

Martynas Maciulevičius 2022-04-27T12:18:20.396319Z

I think this is your plugin: https://github.com/luxbock/evil-cleverparens But I use } quite a bit when moving. So I'll have to read the docs.

Drew Verlee 2022-04-27T14:27:19.387969Z

I'll give those both a try. Thanks!

Drew Verlee 2022-04-27T23:50:22.267489Z

I'm using spacmemacs with evil, more specifically just a moded version of johns spacemacs init file 🙂 . With that ] jumps foward, but not to the next key. So maybe i'm not in "Evil styl editing? I can do "next symbol" then closing though. Which is fine.

Drew Verlee 2022-04-27T23:51:31.983789Z

This is why i mostly move around with vim keybindings, because even the half second of concentrated thought isn't worth the keystrokes.

jeff.terrell 2022-04-26T23:40:48.512859Z

2W?