philc / philc/vimium

Closing a tab switches to the right instead of the tab on the left

Open
#4,239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When opening a new tab with t and then closing it with x, the next focused tab would be the one on the right instead of the left (the previous tab where you came from). This is somewhat inefficient when reading an article, opening a new tab for a little research, then closing the new tab to return to reading. Ctrl + W returns to the previous tab as expected.

To Reproduce
Steps to reproduce the behavior:

  1. visit any page; should be in between multiple tabs (or at least one tab on the right)
  2. press t to open a new tab, visit any page
  3. press x to close the newly opened tab

Include a screenshot if applicable.

Browser and Vimium version
Chrome: 111.0.5563.66 (Official Build) (64-bit) (cohort: Stable)
Vimium: 1.67.4

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 sequence by opening a tab with t, visiting a page, and closing it with x while another tab is on the right. Compare x with Ctrl+W, which already returns to the previous tab. Done means x focuses the tab that was active before the newly opened tab, matching Ctrl+W.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop
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.