junegunn / junegunn/fzf.vim

With notagrelative, :Tags tries to open wrong file

Open
#761 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim

I have set notagrelative because I keep my tags file in the .git folder of my project as described here.

When I navigate to a tag with :Tags, it tries to open .git/src/my-file instead of src/my-file.

If I change this line to let abspath = relpath, it works again. (Obviously that's not a good solution.)

Contributor guide

No contributing guide indexed for this repository

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 autoload/fzf/vim.vim line 804 and reproduce the :Tags navigation with set notagrelative and a tags file under .git. Compare the resolved path with the expected project-relative path, then verify that navigation opens src/my-file rather than .git/src/my-file.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.