VSCodeVim / VSCodeVim/Vim

Is it possible to provide a variable like vim does to set which characters should be recognized as filename which determines the jump target of the gf command?

Open
#7,838 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

In vim, there is a variable called isfname that can be set to determine which characters are recognized as filenames which determines the jump target of the gf command

When I use vim, I usually set isfname like this

set isfname +={,}
set isfanme -=,

The first line allows my vim to recognize the environment variable, and the second line excludes ",", so that in my log file, I can avoid jumping because it recognizes the "," after the file name. "," is printed by the software I use and cannot be changed.

If vscode-vim can provide similar settings, it can make the gf command more powerful

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 at the gf command entry point and trace how it identifies the filename or jump target. Compare that behavior with Vim's isfname setting and determine how a configurable character set should affect punctuation such as commas. Done means users can configure filename characters and gf follows the resulting target consistently.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.