-
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
Display a warning when a user tries to bind an action to multiple keys in a single chord #4239
Comments
Oh we should probably display some sort of warning in this case. You can't really add keybindings with multiple keys like that. You can have any combination of Ctrl, Alt and Shift, but only one actual key like 3 or +. I bet as we're deserializing this, we're finding the 3, setting the We should be able to catch this at parse time and display a warning to the user. |
We should definitely warn about this, but the feature you'll eventually want is #1334. That one's not slated for 1.0. |
## Summary of the Pull Request Adds warning messages for a pair of keybindings-related scenarios. This covers the following two bugs: * #4239 - If the user has supplied more than one key chord in their `"keys"` array. * #3522 - If a keybinding has a _required_ argument, then we'll display a message to the user - currently, the only required parameter is the `direction` parameter for both `resizePane` and `moveFocus` ## References When we get to #1334, we'll want to remove the `TooManyKeysForChord` warning. ## PR Checklist * [x] Closes #4239 * [x] Closes #3522 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated  ## Validation Steps Performed Tested manually, added tests.
After upgrading to WT 0.8, I added this to my
profile.json
:and it works as expected: profile
index 0
is MSYS2 andindex 1
is Ubuntu, soctrl+2+...
can split current profile calling Ubuntu.If I uncomment the other lines (
index 2
for CMD), bothctrl+2+...
andctrl+3+...
open CMD profile. In short adding similar lines for other profile, always open the last profile and not what they should open...I wonder what is wrong with those lines.. maybe i have misunderstood? Thanks...
The text was updated successfully, but these errors were encountered: