domain-specific keybinds? #6038
Unanswered
neogeographica
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Operating System(s) are you running on?
Linux X11, macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20240203-110809-5046fc22
Ask your question!
The specific thing I'm trying to do: have different choices in a keybound InputSelector action depending on the current active domain. (Or, just not offering that binding at all for some domains.) It's not super important but I'm curious if there's a solution.
The only thing I could come up with so far is to put different definitions for this binding in different key tables. Then have a handler that reacts to a window-focus-changed event by changing the applied key table to be relevant for the domain of the currently active tab/pane.
However... it's possible to have different domains in different tabs of the same window, and the window-focus-changed event doesn't fire when you're just switching tabs in a window.
(And I don't want to redo the key tables on every update-status event.)
So, I thought I'd ask. Am I overlooking a more appropriate way to do this sort of thing? (Or is it not doable?)
Beta Was this translation helpful? Give feedback.
All reactions