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

fix: allowing custom keybinding for shortcuts 0..9 #532

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

katekorsaro
Copy link
Contributor

I tried to fix custom binding for shortcuts 0..9

uda.taskwarrior-tui.keyconfig.shortcut0=H

This configuration will allow to hit H key and run shortcut0... and so on

@kdheepak
Copy link
Owner

Thank you for making a PR!

My intended way of dealing with this issue may break the behavior of this PR, but I'm happy to add this in now as a workaround and as a unstable undocumented feature :)

The short version of what I want to do is that I want to allow shortcuts of any arbitrary number, so hitting 0123 will run shortcut number 123. But doing that requires all shortcuts be mapped to just numbers.

I think with the rewrite it would be possible to map that to anything as well, but I haven't gotten there yet :)

@katekorsaro
Copy link
Contributor Author

Your implementation sounds way cooler than mine... though I needed this quickly fixed! But I cannot wait for your implementation.
Ah, and also thank you for this awesome tool! Now part of my productive suite

@kdheepak
Copy link
Owner

I'm going to merge this now! I'll make a new release shortly!

@kdheepak kdheepak merged commit 2baddb9 into kdheepak:main Jan 15, 2024
10 of 11 checks passed
@katekorsaro katekorsaro deleted the fix-shortcut-keybindings branch January 15, 2024 15:50
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