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
Disable all input to terminal while a key table is active #2702
Comments
The behavior is to prevent falling back to a later key table if no key matched. refs: #2702
Sounds reasonable. 6aceb97 adds a Can you try that and let me know how it goes? |
Looks great! |
Ah absolutely, thanks for the heads up! I don't have a lot of time this afternoon but I'll try to get some feedback to you this weekend. |
@jakeHL Any chance to share this code? I would be really interested how to make such tables and such nice UI :-) |
I'll be sharing it soon. Few things I want to tidy up first. I'll ping you when it's ready 👍🏻 EDIT: @jankatins here is the initial release. Let me know how you find it! |
I built with the latest commit on |
@jakeHL ah, I think I see the issue. Try with the latest |
@wez It works great now, thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there, not sure if this already exists but I couldn't find it.
For context:
I have my key table set up to behave modally. I use 'Ctrl + SomeKey' to enter a mode such as pane splitting or resizing. I show which mode I'm in in the right hand status bar.
etc.
A problem I face is that sometimes I forget I'm in a mode and find myself typing a command only to eventually end up accidentally splitting my pane, spawning tabs etc. As a workaround I use the
until_unknown
in theActivateKeyTable
action to make it so that other keypresses drop me out of the mode. This stops me from accidentally performing actions unless the first key of the command happens to be bound in a mode.What I'd like to know is would it be possible to disable sending any other key presses to the terminal while one of these key tables are active?
Sorry for the long winded issue. I wasn't sure how else to describe it.
As an aside: I've achieved this modal system with a module I have created to automatically generate these menus and modes as well as assign the key bindings so this feature would be the final piece of the puzzle to make me happy with it for sharing as a 'plugin' of sorts.
The text was updated successfully, but these errors were encountered: