Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Can't bind leader key shortcuts to some vscode methods

Open deerainw opened this issue 8 years ago • 2 comments

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG

What happened: Failed to bind workbench.action.navigateBack to <leader> j b

My setting:

        {
            "before":["<leader>","j","b"],"after":[],
            "commands": [
                {
                    "command": "workbench.action.navigateBack",
                    "args": []
                }
            ]
        },  // jump back

The original shortcut alt + left arrow works fine.

Environment:

  • Extension (VsCodeVim) version: the latest version
  • VSCode version: the latest version
  • OS version: windows 7

deerainw avatar May 22 '18 11:05 deerainw

Binding like

    {
      "before": [
        "leader",
        "r"
      ],
      "after": [],
      "commands": [
        {
          "command": "editor.action.rename",
          "args": []
        }
      ]
    },

stopped working recently as well.

trsdln avatar Jun 21 '18 09:06 trsdln

Likely due to the change we made in v0.13.0 https://github.com/VSCodeVim/Vim/blob/master/CHANGELOG.md#v0130-2018-06-18.

Please note that we've also added more debugging (https://github.com/VSCodeVim/Vim#vimdebuglogginglevel), so you can take a look at what keys we've registered for remapping and what keys are being passed to the extension from vscode.

jpoon avatar Jun 21 '18 13:06 jpoon