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

Support more zsh/bash keyboard shortcuts #4153

Closed
sunshowers opened this issue Nov 25, 2021 · 4 comments
Closed

Support more zsh/bash keyboard shortcuts #4153

sunshowers opened this issue Nov 25, 2021 · 4 comments
Labels
keybindings Stale used for marking issues and prs as stale

Comments

@sunshowers
Copy link

Related problem

I've been trying out nushell, which looks great so far! However it looks like it's missing a few shortcuts that are standard (though a bit less well-known) and that I use everyday, such as M-. (alt-period) to insert the last word of the last command (cycling back commands).

Describe the solution you'd like

Here's my zsh bindkey output, which should be pretty close to stock IIRC.

https://gist.github.com/sunshowers/7d1300af9c88e24780240d520d28b610

^ means ctrl, and ^[ means meta.

Describe alternatives you've considered

I tried configuring M-. locally but I didn't see a way to have the behavior I wanted, unfortunately. I could have missed something though!

Additional context and details

No response

@sunshowers sunshowers changed the title Support more zsh keyboard shortcuts Support more zsh/bash keyboard shortcuts Nov 25, 2021
@fdncred
Copy link
Collaborator

fdncred commented Nov 25, 2021

there is a keybindings.yml file that you can customize but it's kind of hit-or-miss and doesn't have a lot of coverage yet. I'd still try it out. there's one in the repo as a sample.

@sunshowers
Copy link
Author

Ah yeah I didn't see the option for insert-last-word in there. Regardless I think these should be shipped as defaults.

@fdncred
Copy link
Collaborator

fdncred commented Mar 12, 2022

the new keybindings functionality in 0.59.1 is very powerful. it would be good to know which items in your gist it doesn't support. of course, they would need to be translated to the reedline variant since nushell doesn't support this syntax for keybindings.

@github-actions github-actions bot added the Stale used for marking issues and prs as stale label Jan 17, 2023
@sophiajt
Copy link
Member

sophiajt commented Aug 9, 2023

As we have stronger keybindings these days, I'm going to go ahead and close this. If you see missing capabilities, please re-open or file issues for the missing issues.

@sophiajt sophiajt closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keybindings Stale used for marking issues and prs as stale
Projects
None yet
Development

No branches or pull requests

3 participants