VSCodeVim / VSCodeVim/Vim

Add proper `gx` implementation

Open
#6,557 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
gx allows to open a link under the cursor. As mentioned in https://github.com/VSCodeVim/Vim/issues/4518#issuecomment-656287338, we can remap gx to editor.action.openLink.
This works for http urls, but does not work for custom urls (for example when on things:///show?id=9diMdNYqSCK9fSdjrXErce it should open the corresponding app, at least on macOS).

VS Code does not support opening custom url schemes. Clicking on the link has no effect.

By using the headless mode of Neovim, I believe it would allow to bypass this VS Code shortcoming.

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 reviewing the existing gx mapping to editor.action.openLink, then read the linked VS Code issue and the Neovim headless-mode proposal. The issue names no files or tests; done means that gx can open custom URL schemes, including the macOS example, rather than only HTTP URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.