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

API: Expose list of keybindings #162433

Closed
vanowm opened this issue Sep 30, 2022 · 9 comments
Closed

API: Expose list of keybindings #162433

vanowm opened this issue Sep 30, 2022 · 9 comments
Labels
api feature-request Request for new features or functionality keybindings VS Code keybinding issues

Comments

@vanowm
Copy link

vanowm commented Sep 30, 2022

Unless I'm missing something, there is no way of getting list of currently registered keyboard shortcuts.

For extensions we have to parse package.json to get the default keybindings and then find and parse keybindings.json to get current. There is seems to be no way of getting list of all registered keyboard shortcuts.

Some use cases:

  • extension UI
  • if extension launches an application, remind user via message what keyboard shortcut they can use to stop it.
@vanowm vanowm changed the title Expose list of keybindings API: Expose list of keybindings Sep 30, 2022
@joyceerhl joyceerhl assigned rebornix and unassigned joyceerhl Oct 3, 2022
@rebornix rebornix assigned sandy081 and unassigned rebornix Oct 21, 2022
@rebornix rebornix added the feature-request Request for new features or functionality label Oct 21, 2022
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Oct 21, 2022
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@sandy081 sandy081 assigned alexdima and unassigned sandy081 Oct 21, 2022
@alexdima alexdima removed their assignment Oct 23, 2022
@alexdima alexdima added api keybindings VS Code keybinding issues labels Oct 23, 2022
@boltex
Copy link

boltex commented Nov 17, 2022

Also: This api reference is wrong: there is no more keybindings.json link in file menu !

https://code.visualstudio.com/api/references/commands#simple-commands
Screenshot from 2022-11-16 23-08-27

@vanowm
Copy link
Author

vanowm commented Nov 17, 2022

@boltex, it's not in file menu, it's in keybinding shortcuts tab:
image

@boltex
Copy link

boltex commented Nov 21, 2022

@vanowm Sorry, but This just gives the user's locally modified/additional keybindings. Not the whole list.

@boltex
Copy link

boltex commented Nov 21, 2022

@vanowm Additionally, the help snippet I clipped above also precisely states that this (missing) link should give the list of all unbound commands, not just the user's additional custom keybindings.

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@tshino
Copy link

tshino commented Dec 18, 2022

Unless I'm missing something, there is no way of getting list of currently registered keyboard shortcuts.

You can use the command Open Default Keyboard Shortcuts (JSON) to get the list.

@vanowm
Copy link
Author

vanowm commented Dec 18, 2022

@tshino we are talking about API - aka programmatically access.

@vscodenpa
Copy link

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests

8 participants