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 generic sequence hotkeys #10
Comments
|
This is a tricky one. Currently I am using Obsidian hotkeys to call the plugin by registering the leader as a command. If there were multiple leaders, it would need to register multiple commands. Probably not a very good experience. I could side-step the Obsidian hotkeys and listen for keystrokes myself (I do that to listen for enter and tab in the Advanced Tables plugin), but then there would not be a method of warning a user when their leader conflicts with another hotkey. I'll have to think about this one some more. There is a new way of setting up hotkeys that I need to look into for tgrosinger/advanced-tables-obsidian#53 so maybe that will produce something interesting. |
|
Also worth considering a library for this. Mousetrap is the canonical JS solution. It's tiny and supports sequence keys out of the box. |
|
|
|
This would be super useful. |
|
Do you think it's possible to support a complete hotkey as second key? To support something like ctrl+b ctrl+k? |
Would love to extend this to sequence style hotkeys in addition to ones just starting with a fixed leader key. For example, my leader key is
ctrl+bbut I'm used to creating a new vertical split withctrl+w v.The text was updated successfully, but these errors were encountered: