Skip to content

Keyboard shortcuts cannot be bound to custom scripts #18

@RJWoodhead

Description

@RJWoodhead

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions