`gd` ends in visual mode
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
When I press gd on definition and select one of listed references I end up in visual mode instead of normal mode.
- Extension (VsCodeVim) version: v1.20.3
- VSCode version:
Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.8.0-50-generic snap - OS: Ubuntu 20.04
js example
// 1. In normal mode use gd on asdf
var asdf = "string"
// 2. Use j and k to move between occurences
// 3. Hit enter
console.log(asdf)
console.log(asdf)
console.log(asdf)
// 4. Now you are at right place but in visual mode
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VSCode using the JavaScript example: run gd, select a listed reference with j/k, and press Enter. Trace the gd definition-reference selection entry point and verify that choosing a reference leaves the editor in normal mode rather than visual mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100