Vim: [Mac] cmd+` doesn't switch between window

Created on 21 Sep 2017  路  12Comments  路  Source: VSCodeVim/Vim

  • Click thumbs-up 馃憤 on this issue if you want it!
  • Click confused 馃槙 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


this a BUG REPORT

Environment:

  • VSCode Version: 1.16.0
  • VsCodeVim Version: 0.10.1
  • OS: MacOS (sierra)

What happened:

cmd+` is a global macos shortcut that give the ability to switch between windows of the same App

When I type cmd+a caracter appear in the editor

What did you expect to happen:

When I type cmd+` I expect to get the focus on the next VSCode window

How to reproduce it:

Open two VSCOde instance with vim plugin installed
try to switch using the global shortcut cmd+`

Most helpful comment

fixed by update the shortcuts with the two following (using native one)
screen shot 2017-09-29 at 09 34 30

All 12 comments

I use the shortcut all the time and it works fine. Are you sure it's because of this plugin?

Considering that this has gotten quite a bit of likes..., I'm inclined to believe this might be an actual issue? I don't use a Mac, so can one of you guys check this out? @xconverge @johnfn

We don't register Cmd+` though do we? I will play around with it to see if I can reproduce it tonight

I see the same behavior as @jiripospisil

I am unable to reproduce this unfortunately...

I have found more details. It works only when the focus is on the side bar.
if the focus is on the text it just write the `

you will find a video capture here: https://youtu.be/dCLhd_QNl2o

cc @xconverge @jiripospisil

still not able to reproduce it... can you post your settings.json please?

// Place your settings in this file to overwrite the default settings
{
    "editor.fontFamily": "Fira Code",
    "editor.fontSize": 12,
    "editor.fontLigatures": true,
    "editor.lineNumbers": "relative",
    "editor.rulers": [80],
    "editor.renderWhitespace": "all",
    "eslint.enable": true,
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.DS_Store": true
    },
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/node_modules/**": true
    },
    "search.exclude": {
        "**/node_modules": true,
        "**/build": true,
        "**/lib": true
    },
    "vim.disableAnnoyingNeovimMessage": true,
    "workbench.editor.enablePreview": false,
    "workbench.editor.enablePreviewFromQuickOpen": false,
    "extensions.ignoreRecommendations": true
}

List of installed plugins:
Eslint
Prettier
Prettify JSON
Reactjs code snippets
Sass
Sass Lint
Vim
yo

Sorry it is not a vim plugin issue, but vscode issue:
https://github.com/Microsoft/vscode/issues/10021

fixed by update the shortcuts with the two following (using native one)
screen shot 2017-09-29 at 09 34 30

fixed by update the shortcuts with the two following (using native one)
screen shot 2017-09-29 at 09 34 30

It isn't working on VS Code 1.43.0 on MacOS Catalina. What this setting does, is:

  1. Type a backtick in the current window
  2. Switch to the next window

I think the Cmd-` chord is either being overzealously swallowed by a library component or the US ASCII backtick is mapped to a different glyph in other keyboard maps (e.g., French/Dutch: "accent grave").

Note that this behaviour also occurs when a text control is active in Safari and then hitting Cmd-` in the hope of switching to another Safari window...

Current working combination:

  {
    "key": "cmd+`",
    "command": "workbench.action.quickSwitchWindow"
  },
  {
    "key": "cmd+`",
    "command": "workbench.action.quickOpenSelectNext",
    "when": "inQuickOpen"
  },

All of a sudden it works. Now on version 1.48.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

waltiam picture waltiam  路  3Comments

AndersenJ picture AndersenJ  路  3Comments

triztian picture triztian  路  3Comments

orn688 picture orn688  路  3Comments

rajinder-yadav picture rajinder-yadav  路  3Comments