combobulate icon indicating copy to clipboard operation
combobulate copied to clipboard

Idea: optional single-key modal operation while in carousel

Open jdtsmith opened this issue 1 year ago • 0 comments

One of the powers of lispy is its selective modality. When you are on a paren, or the region is active, simple single key bindings can be repeatedly used to quickly operate on selected node(s).

It seems quite possible that (a variant of) combobulate's carousel could provide a similar flavor of selective modality. The idea would be that optionally, once the carousel is active with some selected nodes (via, e.g., M-h), instead of just accepting [S-]Tab and (e.g.) M-h, single-key shortcuts would be possible, for basic operations like:

  • lateral extend selected node(s) (> and < are classics)
  • splice/raise (r?)
  • kill (k)
  • move up/down among sibling (s and w is what lispy uses, but nothing special there).
  • convolute (C, if it appears)
  • others?

With undo grouping you could indeed go beyond lispy and offer, for a given "carousel session", an abort (C-g) , if you're not happy with what you've done, or Ret to accept.

jdtsmith avatar Mar 24 '24 15:03 jdtsmith