VSCodeVim / VSCodeVim/Vim

Extension binding g g gives error: The key combination (G, G) is not a command

Open
#8,206 4 comments 0 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
Tried using this extension with .js and .jsx files (no other 3rd party extensions installed other than yours), and the keyboard shortcut g g (which I expect to take me to the top of the page, opposite of G), gives me the error at the bottom of the VSCode editor as described in title.

To Reproduce

  1. Install VSCode Extension Vim
  2. Open a .jsx or .js file.
  3. try to us g g to get to the top of the page

Expected behavior
The command list.focusFirst should invoke properly as is indicated by the g g biding and I subsequently expect to have my cursor moved to the top of the page.

Screenshots
image
image

Environment (please complete the following information):
macOS Monterey
VSCode 1.74.3 (Universal)

Additional context
Again, this only seems to affect .jsx and .js files for some reason. Any other file will behavior properly.
The when clause for the keybinding is: listFocus && !inputFocus

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 VSCode 1.74.3 with a .js or .jsx file and the Vim extension, then inspect the g g keybinding and its listFocus && !inputFocus condition. Done means g g invokes list.focusFirst and moves the cursor to the top without reporting that (G, G) is not a command.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.