VSCodeVim / VSCodeVim/Vim

vim commands on tabs that are not files

Open
#4,944 0 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

Is your feature request related to a problem? Please describe.
It's annoying when I can't use my vim hotkeys on certain tabs that are not files. For example when I search for an extension and double click it, I would like to be able to close it using :q. Another example is when using the Julia extension and I plot something, it opens up a plot gallery tab. I like to put this in a vertical split with my code on one side and the plot gallery on the other. I would like to be able to use :q or <C-w> to quit or switch between my code and the plot gallery tab.

Describe the solution you'd like
Is there a way to do this? I tried setting something like below but it didn't work. Perhaps it's more complex?
{ "key": "ctrl+w", "command": "extension.vim_ctrl+w", "when": "jlplotpaneFocus" } ]

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 with the VS Code keybinding configuration and trace the extension.vim_ctrl+w command under the jlplotpaneFocus context. Check how :q and <C-w> are dispatched for non-file tabs such as extension search results and Julia plot galleries; done means those Vim actions can close or navigate those tabs without disrupting file tabs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.