VSCodeVim / VSCodeVim/Vim

Support "isfname" option for "gf" command

Open
#8,747 0 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

Is your feature request related to a problem? Please describe.
When I do "gf" on a file name or path like "$TEST/test.py" or "${TEST}/test.py",, it opens "/test.py" and not "$TEST/test.py" by resolving "$TEST" env variable

Describe the solution you'd like
There's a argument "isfname" in vim to which I can add all characters Vim should consider while resolving path for "gf". eg. set ifname += '{, $, }'

Additional context
vim isfname doc

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 locating the TypeScript implementation of the gf command and read Vim's isfname documentation linked in the issue. Trace how file names and paths are parsed, then determine how the option should control characters such as $, {, and }. Done means gf resolves paths containing environment-variable syntax according to the configured isfname characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.