VSCodeVim / VSCodeVim/Vim

`<C-o>` not working on many non-vim commands/jumps

Open
#3,990 13 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/motion kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
C-o does not jump back after searching for refences or jumping to another location in another file through the explore etc.

To Reproduce

  1. put the cursor over a function
  2. right click and click Find all references
  3. click a location on in the results view
  4. press C-o

also using pgup/pgdown/home does got get registered by the jumphandler

Expected behavior
expected to be returned back to the function definition, but instead it goes back to a previous jump i made.
also using pgup/pgdown/home does got get registered by the jumphandler

Is there a particular reason why we dont use vscode builtin Go Back / Go Forward commands? workbench.action.navigateBack / workbench.action.navigateBack

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 reproducing the Find all references flow: select a result in the results view, then press C-o; also check whether PgUp, PgDown, and Home are recorded. Read the jump handler and compare its behavior with VS Code's workbench.action.navigateBack and workbench.action.navigateForward commands; done means these navigation actions return to the expected location.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.