-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Extend key patterns and modifiers for command actions #18279
Comments
So, you're asking for two things here:
|
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
In fact, it is not impossible, and may even be quite feasible. Just relying on the standard system window messages WM_KEYUP/WM_KEYDOWN it is quite possible to distinguish between different key combinations outside the Ctrl/Alt/Shift-modifiers concept on Windows platform. You can play around with this in vtm by assigning any keyboard chords available to your keyboard device and feel out any inconsistencies like an extra space being typed when using the
sdn@megasus_0.2024-12-03.22-33-36.mp4You can get the available chords experimentally on the Info-page which is accessible by clicking on the bottom right of the vtm desktop. Moreover, you can run this directly inside Windows Terminal (using Command.Prompt.2024-12-03.23-19-45.mp4Please note the following while running inside WT: |
Description of the new feature
source: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#accepted-modifiers
currently, the accepted modifiers allow for
ctrl+
,shift+
,alt+
followed by a single func or alphanumeric keyin settings.json, if i want to perform an action with the keys ctrl+t+n or win+t+q+q, I cannot do that because of the error "String does not match pattern{...}"
I ask for modifier key followed by a combination of function/alphanumeric keys pattern to work on actions
Also, can you make
space+
an accepted modifier so patterns like space+g+g can be used?thanks in advance!
Proposed technical implementation details
make
space+
an accepted modifier. allow for an expression with multiple fn/letter/number keys associated with a terminal actionThe text was updated successfully, but these errors were encountered: