leap.nvim icon indicating copy to clipboard operation
leap.nvim copied to clipboard

Discussion: (suggested) mappings for treesitter and remote

Open ggandor opened this issue 1 year ago • 1 comments

Remote

gs, gS (linewise), g<c-s> (blockwise)? Do we need linewise (and blockwise) by default?

Treesitter

Dedicated linewise keys would be great, since they are much more efficient (filtering).

gy/gY, ga/gA, gb/gB, gl/gL... ?

  • gy, gY - the only ones that have at least some mnemonic value ("y" looks like a branching tree). Note: If "clever-y" is configured, one can use <alt-y> to yank the current selection (:h v_META).

  • ga/gA - comfortable, work fine with ; and , (different hand). No mnemonics. "clever-a" is awkward with the pinky.

Remote + treesitter

What about shortcuts, basically require'leap.remote'.action { input = '<treesitter-trigger>' }?

ggandor avatar Jul 30 '24 17:07 ggandor