Add proper `gx` implementation
Nobody has claimed this yet.
- 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
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
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