VSCodeVim / VSCodeVim/Vim

`<C-w><C-c>` should close entire split even if multiple tabs are open in it

Open
#5,672 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

Describe the bug
C-w C-c currently closes a single tab, only closing the split if it's the last tab in the split. It should always close the split.

To Reproduce
Steps to reproduce the behavior:

  1. Press C-w C-v to open a new vertical split.
  2. Open a second file/tab in one of the splits.
  3. Press C-w C-c in that split to close the split.
  4. It won't close, only the tab you just opened will.

Expected behavior
The split should close, even though it had 2 tabs open.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.17.1
  • VSCode version: 1.51.1
  • OS: Windows_NT x64 10.0.19041

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 behavior in VSCodeVim with C-w C-v, multiple tabs in one split, and then C-w C-c. Trace the handling of these key sequences and split/tab closing, and consider the issue done when C-w C-c closes the active split even when it contains multiple tabs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.