How to open the sidebar and focus on it!
Open
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:
- Open the side bar, then focus on in.
- Close the side bar, then return the editor.
- If focus on side bar, I hope it can focus directly on editor.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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