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 ALT-BACKSPACE to crossterm's to_input_request #23

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

micielski
Copy link
Contributor

@micielski micielski commented Aug 26, 2024

ALT-BACKSPACE deletes previous word for various terminal apps like fish or helix editor (I think this keybinding comes from emacs so bash probably respects this keybinding by default too).

I see that there's also a corresponding function for termion, but it doesn't functionally correspond to crossterm's implementation nor isn't documented on docs.rs (both of which issues I could try to tackle in a new PR)

@sayanarijit
Copy link
Owner

Hi, I have checked, emacs and zsh supports alt-backspace, bash doesn't. But I'm good to add it.
But from my experiments, none supports meta-backspace for delete word.

@micielski
Copy link
Contributor Author

But from my experiments, none supports meta-backspace for delete word.

I can remove meta-backspace if you want me to (it was there already and I didn't add it)

@sayanarijit
Copy link
Owner

Ah sorry, you're right. Thanks for the PR.

@sayanarijit sayanarijit merged commit 7fca78e into sayanarijit:main Aug 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants