helix icon indicating copy to clipboard operation
helix copied to clipboard

Separate 'brace action' and 'match selection' in keymap

Open asvln opened this issue 3 years ago • 3 comments

This changes the behavior of m to only match selections. m = mi M = ma Brace actions are relocated to ^.

Issue: #3852

asvln avatar Sep 18 '22 16:09 asvln

I like the idea of easier access to mi/ma.

I don't like relocating brace actions to ^ though. ^ has been proposed and tried for a few Kakoune keymaps (marks, https://github.com/mawww/kakoune/pull/1116) but it has never stuck. It's not very discoverable. (Plus I'd like to use it for marks/selections #3720 :P)

The normal-mode keymap is already very full which is why it's hard to separate key sequences like m out like this.

the-mikedavis avatar Sep 18 '22 17:09 the-mikedavis

I like the idea of ^ being reserved for marks also.

I do think brace functionality deserves it's own key rather than being nested under another diag.

asvln avatar Sep 19 '22 16:09 asvln

I am also not a fan of ^. This also breaks the "in" / "around" mnemonic. I don't think this is worth saving a single keystroke.

dead10ck avatar Sep 21 '22 03:09 dead10ck

moved to #4655

asvln avatar Nov 08 '22 16:11 asvln