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

Add support for standard readline (emacs) keyboard shortcuts #165

Open
dkarter opened this issue Jan 17, 2025 · 0 comments
Open

Add support for standard readline (emacs) keyboard shortcuts #165

dkarter opened this issue Jan 17, 2025 · 0 comments

Comments

@dkarter
Copy link

dkarter commented Jan 17, 2025

Thank you for making this great software!

It would be good to have support for more standard keyboard shortcuts that match how most linux/macOS operating systems work.

For example:
ctrl-n: navigate down a list
ctrl-p: navigate up a list

In macOS at least, every list can be navigated this way. I use it in Neovim also to navigate completions, and in my browser to navigate the url bar and suggestions.

There is already support for ctrl-w (delete word), alt-f, alt-b in the url input, which is great. But it really messes with my muscle memory to not have ctrl-n and ctrl-p.

I know it creates a conflict with the default keybindings chosen for New and Commands, but having ctrl-n and ctrl-p reserved for navigating lists and completions will make this more intuitive.

Alternatively, it might be possible to have these keybindings be context aware - so if a context menu or command palette is open, then they can be used to navigate those, otherwise, they can be used for their current mapping.

For reference: https://readline.kablamo.org/emacs.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant