metaGo icon indicating copy to clipboard operation
metaGo copied to clipboard

Integration with vscodevim: how to run `metaGo.gotoBefore` in command line mode?

Open kohane27 opened this issue 2 years ago • 0 comments

Greetings. Hope you're doing well. Thank you for checking in this issue. I appreciate any help.

Describe the bug

I'm using metaJump along with vscodevim. I have the following setting:

    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": [
                "s"
            ],
            "commands": [
                "metaGo.gotoBefore"
            ]
        }
    ]

However, when I press s, the Quickpick command line popup window shows up (screenshot below), which is not what I want. I tried disabling vscodevim and metaJump behaves as expected (no popup window).

To Reproduce

  1. Remap as above
  2. Press s
  3. The Quickpick command line popup window shows up

Expected behavior

I tried the circumvent this issue with the following remap:

    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": [
                "s"
            ],
            "after": [
                ":metaGo.gotoBefore"
            ]
        }
    ]

This forces vscodevim to use the command line mode in the statusbar, but it shows E492: Not an editor command: metaGo.gotoBefore. What's worth mentioning is that, before this error, the command runs successfully for a split second, i.e., I can see the editor area dimmed and tags activated.

So my question is, how do I run metaGo.gotoBefore in command line mode?

Screenshots screenshot-2022-03-07-08-51-49

Environment:

  • metaJump: v1.4.0
  • Extension (VsCodeVim) version: v1.22.2
  • VSCode version: 1.65.0
  • OS: Linux x64 5.15.25-1-MANJARO snap

Thank you again!

kohane27 avatar Mar 07 '22 02:03 kohane27