Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Keyboard shortcuts cannot be bound to custom scripts #18

Open
RJWoodhead opened this issue Dec 30, 2023 · 0 comments
Open

Keyboard shortcuts cannot be bound to custom scripts #18

RJWoodhead opened this issue Dec 30, 2023 · 0 comments

Comments

@RJWoodhead
Copy link

RJWoodhead commented Dec 30, 2023

The documentation claims that custom commands can be bound to keystrokes, but the described method does not work. If you follow the instructions and create a custom command (such as the example "convertSelectionsIntoLength") and bind it to a key, the keyboard shortcut does appear -- in the shortcuts editor, you can type "shift+alt+cmd+n" and "texty.custom.convertSelectionsIntoLength" will appear.

However, when you attempt to invoke the function via the keyboard sequence, you get "command 'texty.custom.convertSelectionsIntoLength' not found".

The function is available via the command menu and executes as expected. The only problem is that the command cannot be executed by a keyboard shortcut.

Edited to add: I am quitting/restarting VSC after each change to any of the configuration files.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant