Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: optional single-key modal operation while in carousel #98

Open
jdtsmith opened this issue Mar 24, 2024 · 0 comments
Open

Idea: optional single-key modal operation while in carousel #98

jdtsmith opened this issue Mar 24, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@jdtsmith
Copy link

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.

@mickeynp mickeynp added enhancement New feature or request question Further information is requested labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants