junegunn / junegunn/fzf.vim

GFiles from non git root?

Open
#1,331 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- [x] I have fzf 0.23.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues

Hi, I have been looking at configuring the `GFiles` command. The issues I am having is that the command assumes that it should run the `git ls-files` command from the root of the repository, instead from where `vim` was opened.
This turns out great when you have a single git repository, but e.g. when I work we have large repos with with projects within the same git repository.
In this usecase I'd like to have `git ls-files` in `GFiles` run from where I opened vim, not the root of the project.

Is there anyway to achieve this? Thanks for the assistance!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.