VSCodeVim / VSCodeVim/Vim

Bug with using bookmarks extension

Open
#7,288 3 comments 4 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
cursor does not stay at bookmarked location after coming back

To Reproduce
Steps to reproduce the behavior:

  1. go to a position, say line 4, Col 20
  2. create a bookmark with "bookmarks: toggle". The little sign appears
  3. move to another position, anywhere. Say line 10, Col 2
  4. trigger "bookmarks: jump to next". The cursor SEEMS to be coming back to the right position (line 4, Col 20)
    I use vscode in VIM mode, with the popular vim extension. Now that my cursor is back at my bookmarked location, I want to move one character to the right, be pressing l. Instead of the cursor moving to line 4, Col 21, it first jumps back to wherever I was when I triggered the "bookmarks: jump to next" command (line 10, Col 2 in this example). It does my right movement, but not on the right line. I end up at line 10, Col 3

Additional context
https://github.com/alefragnani/vscode-bookmarks/issues/338

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 problem using the listed bookmarks: toggle and bookmarks: jump to next commands with VS Code Vim mode enabled, then compare the cursor position before and after pressing l. Use the linked alefragnani/vscode-bookmarks issue for context; done means movement after jumping remains at the bookmarked line and column.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.