VSCodeVim / VSCodeVim/Vim

:marks could not jump to the file correctly

Open
#7,859 1 comment 1 reaction 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
:marks could not be able to get the correct file line position

When splitting the editor, the input marks cannot jump to the specified file editing location, but instead jumps to the current file location

Expected behavior

When I type the :marks command, the software will list the files and line numbers I have marked, and when I select a tag, it will automatically jump to that file instead of the current file.

Screenshots

image

image

select the item and could not jump to the file correctly

image

  • Extension (VsCodeVim) version: v1.23.1 (2022/6/29)
  • VSCode version: 1.69.2 (user setup)
  • 日期: 2022-07-18T16:12:52.460Z
  • Electron: 18.3.5
  • Chromium: 100.0.4896.160
  • Node.js: 16.13.2
  • V8: 10.0.139.17-electron.0
  • OS: Windows_NT x64 10.0.19043

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 issue in VSCodeVim by opening a split editor, marking locations in different files, and running the :marks command. Trace the command's selection and jump behavior, then verify that choosing a mark opens its recorded file and line rather than using the current file.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.