VSCodeVim / VSCodeVim/Vim

Key binding doesn't work when no file is open

Open
#4,519 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

I noticed when no file is open the key binding doesn't work.

To Reproduce
For example I have this setting for vim.normalModeKeyBindings:

    {
      "before": [
        "<leader>",
        "f"
      ],
      "after": [],
      "commands": [
        {
          "command": "workbench.action.quickOpen",
          "args": []
        }
      ]

This keybinding doesn't work when no file is open even though the mode is shown as "normal" in status bar.

Expected behavior
Key binding should work similarly as when a file is open.

Screenshots

Screen Shot 2020-01-27 at 10 04 37 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported vim.normalModeKeyBindings configuration in VS Code with no file open, then compare it with the same binding when a file is open. Done means the f binding invokes workbench.action.quickOpen in both states; the issue does not name a source file or test to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.