Skip to content
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

Consider to flag keybinding conflicts #23400

Closed
weinand opened this issue Mar 28, 2017 · 8 comments
Closed

Consider to flag keybinding conflicts #23400

weinand opened this issue Mar 28, 2017 · 8 comments
Assignees
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Mar 28, 2017

testing #23287:

When assigning the same keybinding to different commands, this might result in conflicts (and I have no idea which command gets executed).

I suggest to show a warning next to the keybinding when conflicts exist.

macOS does this too:
2017-03-28_13-22-52

@weinand weinand added the feature-request Request for new features or functionality label Mar 28, 2017
@sandy081 sandy081 added the keybindings VS Code keybinding issues label Mar 28, 2017
@sandy081 sandy081 added this to the Backlog milestone Mar 28, 2017
@sandy081
Copy link
Member

sandy081 commented Apr 5, 2017

Our story of conflicts is different. Every keybinding has a when context that defines when to invoke the command it is assigned to. Rules to dispatch keybindings are available here. In short

  • Keybindings are read from bottom to top
  • First entry that matches both the key and when is accepted

This process can only be done during run-time and also there is no proper containment of when contexts.

So my suggestion to show conflicts in new keyboard shortcuts editor is as follows

  • Ability to show a list of conflicting keybindings for a given entry.
  • Ability to list them in the order of precedence

Above will help in trouble shooting keybinding conflicts.

@sandy081
Copy link
Member

sandy081 commented Apr 5, 2017

kapture 2017-04-05 at 17 02 58

@sandy081 sandy081 modified the milestones: April 2017, Backlog Apr 5, 2017
sandy081 added a commit that referenced this issue Apr 5, 2017
@sandy081 sandy081 added the verification-needed Verification of issue is requested label Apr 5, 2017
@sandy081 sandy081 closed this as completed Apr 5, 2017
@cleidigh
Copy link
Contributor

cleidigh commented Apr 5, 2017

@weinand
@sandy081
have to sync up with this...
while I got behind with master syncs - @sandy081 you just added more two key bindings
I have a prototype it sorts by precedence, highlights duplicates alongside the overridden binding
I also have a sort by when using only contiguous characters and that column
see duplicates screenshot below

can I get looped in to help with these issues?

image

@sandy081
Copy link
Member

sandy081 commented Apr 5, 2017

@cleidigh Can you please use the issue #22748 for discussion and move the above conversation to there? This issue is closed and the above discussion is mainly related to #22748.

Thanks

@cleidigh
Copy link
Contributor

cleidigh commented Apr 5, 2017

@sandy081
do you want to separate the duplicates discussion (I thought this issue with your comments)
from the column sorting ?

@coreylendo
Copy link

coreylendo commented Apr 5, 2017 via email

@cleidigh
Copy link
Contributor

cleidigh commented Apr 5, 2017

@sandy081
deleting and moving now...

just tested your new precedence addition - great
not sure I missed something but what do you think about the duplicate filter I showed above?
I think that's something additional then you have presently, no?
I create the filter without having to search for a key binding and show both entries
should I create a new issue for this potential edition if interested?

@sandy081
Copy link
Member

sandy081 commented Apr 6, 2017

@cleidigh Thanks for testing it and providing the feedback. We can use the issue #22748 for our discussion and feedback.

@kieferrm kieferrm mentioned this issue Apr 25, 2017
15 tasks
@ramya-rao-a ramya-rao-a added the verified Verification succeeded label Apr 26, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality keybindings VS Code keybinding issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants