VSCodeVim / VSCodeVim/Vim

How to open the sidebar and focus on it!

Open
#8,257 4 comments 3 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

keybindings.json

{
  "key": "space b",
  "command": "vim.remap",
  "when": "sideBarFocus",
  "args": {
    "after": ["<leader>", "o"]
  }
}

settings.json

 "vim.normalModeKeyBindingsNonRecursive": [
    // focus side bar
    {
      "before": ["<leader>", "o"],
      "commands": ["workbench.action.focusSideBar"]
    }
]
How to merge it, or how to complete this function?

I wanna the effect similar with nvim tree:

  1. Open the side bar, then focus on in.
  2. Close the side bar, then return the editor.
  3. If focus on side bar, I hope it can focus directly on editor.

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

Start by reproducing the keybindings.json and settings.json configuration shown in the issue, using the vim.remap and workbench.action.focusSideBar commands. Trace how the extension handles sidebar focus and keybinding conditions. Done means one binding opens and focuses the sidebar, closes it back to the editor, and returns focus to the editor when invoked from the sidebar.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.