VSCodeVim / VSCodeVim/Vim

After `<C-t>`, put current line to center of the screen

Open
#3,482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
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.
When jumping back through history, the line from which I jumped is put at the bottom of the screen.

Describe the solution you'd like
I'd like to have the line I jumped from at the center of the screen.

Describe alternatives you've considered
It should be possible to leverage the already implemented action for key ['z', '.']

Additional context
To reproduce the issue: position over the name of a function in a call, press <C-]> (note how the definition is put at the center of the screen by the vscode command editor.action.goToDeclaration), then press <C-t> (the line from which we jumped from is put at the bottom of the screen).

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 tracing the history-jump entry point and compare it with the existing ['z', '.'] centering action. Reproduce the <C-]> then sequence in VS Code and verify that the original line is centered after the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.