metaseed / metaGo

MetaGo provides fast cursor movement/selection for keyboard focused users in vscode
MIT License
326 stars 20 forks source link

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

Open kohane27 opened 2 years ago

kohane27 commented 2 years ago

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:

Thank you again!