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

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

Open
kohane27 opened this issue Mar 7, 2022 · 0 comments

Comments

@kohane27
Copy link

kohane27 commented Mar 7, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant