This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-26
Channels
- # babashka (7)
- # beginners (85)
- # calva (39)
- # cider (3)
- # clara (1)
- # clj-kondo (10)
- # clojure (194)
- # clojure-europe (36)
- # clojure-madison (2)
- # clojure-nl (13)
- # clojure-spec (11)
- # clojure-uk (2)
- # clojurescript (17)
- # community-development (5)
- # component (9)
- # conjure (4)
- # core-async (3)
- # cursive (32)
- # data-science (26)
- # datomic (31)
- # graalvm (22)
- # holy-lambda (31)
- # honeysql (7)
- # introduce-yourself (1)
- # jobs (9)
- # jobs-rus (1)
- # lsp (3)
- # malli (9)
- # off-topic (54)
- # pathom (27)
- # pedestal (6)
- # portal (1)
- # re-frame (4)
- # releases (1)
- # remote-jobs (1)
- # sci (3)
- # shadow-cljs (4)
- # spacemacs (13)
- # vim (14)
- # xtdb (3)
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 <?>
sp-end-of-sexp works if it's the last one...
i guess i could just tab it down and start another item right there :0
probably need at least two commands, i'm just over thinking it. 1. go to the next item then 2 insert new.
You could try Ea<space>
to insert:
{:hell[o] :one-thing :second :thing}
->
{:hello :one-thing | :second :thing}
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.
@U0DJ4T5U1 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`)
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
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.
I'll give those both a try. Thanks!
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.
This is why i mostly move around with vim keybindings, because even the half second of concentrated thought isn't worth the keystrokes.