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

Custom keybind breaks search #3558

Closed
k1sul1 opened this issue Mar 5, 2019 · 1 comment
Closed

Custom keybind breaks search #3558

k1sul1 opened this issue Mar 5, 2019 · 1 comment

Comments

@k1sul1
Copy link

k1sul1 commented Mar 5, 2019

I've the following keybinding so I can jump between start / close tags easily, as Shift + % seems to only work for parentheses. I don't know if I did some magic to get Shift + % jump tag in normal Vim, or if it's a core feature, but I can't live without it anymore.

  {
    "key": "shift+m",
    "command": "editor.emmet.action.matchTag",
    "when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
  },

This works as expected, but it prevents me from typing a capital M at least when I'm trying to search with /. I can change the condition to be vim.mode == 'Normal' and the search works again, but that stops this keybind from working in visual mode.

How should I define the condition in this case? vim.mode == 'Normal' || vim.mode === 'Visual' || vim.mode == 'Visual line' || vim.mode == 'Visual block' looks and feels horribly verbose.

@jpoon
Copy link
Member

jpoon commented Mar 5, 2019

Not possible. If you'd like something like that, please file an issue to vscode

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