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

Allow registering keybindings commands using strings #2806

Closed
71 opened this issue Jul 5, 2018 · 0 comments
Closed

Allow registering keybindings commands using strings #2806

71 opened this issue Jul 5, 2018 · 0 comments

Comments

@71
Copy link
Contributor

71 commented Jul 5, 2018

Feature request

Currently, custom commands can be added using the following syntax:

{
    "vim.normalModeKeyBindings": [
        {
            "before":["<C-n>"],
            "commands": [
                {
                    "command": ":nohl"
                }
            ]
        }
    ]
}

This request proposes to add the following syntax, when arguments are unnecessary:

{
    "vim.normalModeKeyBindings": [
        {
            "before":["<C-n>"],
            "commands": [ ":nohl" ]
        }
    ]
}

In the previous code block, ":nohl" is interpreted as { "command": ":nohl" }.

@71 71 changed the title Allow registering keymap commands as strings Allow registering keymap commands using strings Jul 5, 2018
@71 71 changed the title Allow registering keymap commands using strings Allow registering keybindings commands using strings Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants