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 more keybindings so that i can use ctrl+backspace to backward delete a word or ctrl+x to kill a line when adding new todo in tui #258

Closed
alexzanderr opened this issue Jul 28, 2021 · 9 comments
Labels
enhancement New feature or request

Comments

@alexzanderr
Copy link

when using terminals you have ctrl+w to backward delete a word and ctrl+u to kill a line (delete the entire line)

personally, i dont like using ctrl+w to backward delete word, i feel very comfortable with ctrl+backspace

is there a way to map the ctrl+backspace to that i can backward delete a word using taskwarrior-tui?

if not, i would request a feature for additional keybindings.

thanks.

@alexzanderr alexzanderr added the enhancement New feature or request label Jul 28, 2021
@alexzanderr alexzanderr changed the title add more keybinding so that i can use ctrl+backspace to backward delete a word or ctrl+x to kill a line when adding new todo in tui add more keybindings so that i can use ctrl+backspace to backward delete a word or ctrl+x to kill a line when adding new todo in tui Jul 28, 2021
@kdheepak
Copy link
Owner

Currently there’s no way to reconfigure it but I’m open to adding ctrl backspace as an additional way to remove the previous word. I can add that as a feature.

@alexzanderr
Copy link
Author

thank you so much!

@kdheepak
Copy link
Owner

It looks like crossterm (the library that I'm using) doesn't support this: crossterm-rs/crossterm#575. I'll keep an eye on the related issues, but for now this is not possible to implement.

@kdheepak
Copy link
Owner

I've added support for CtrlBackspace and AltBackspace for backspace word (as well as CtrlDelete and AltDelete for forward delete word). However, until crossterm supports CtrlBackspace, that code path will never be processed. Once they do add it (if it is even possible to add it), the next release of this tool will automatically support it.

AltBackspace works now for me though, so you can try that instead. I'll close this issue for now. Feel free to reopen if you think this is not resolved.

@kdheepak
Copy link
Owner

@alexzanderr
Copy link
Author

thanks a lot for support!

@alexzanderr
Copy link
Author

so this release will be available when they update crossterm? i mean avaiable for me who i want to install taskwarrior-tui or update using pacman or pamac package manager for arch.

i know i can download the source and compile, or download alreay compiled.

but the question is: the release is not visible for pacman right now? right?

@kdheepak
Copy link
Owner

This release will be available now and you can use meta or option or alt + backspace. However, ctrl backspace won’t work until crossterm releases a new release, after which if I update the dependencies and make a new release that’ll work too. Hope that clarifies it.

@alexzanderr
Copy link
Author

yes. thanks

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

No branches or pull requests

2 participants