Open sim590 opened 4 years ago
Note that while I did mention that Ctrl-p would trigger the issue, the procedure to reproduce may not be so similar. Simply opening the file using Ctrl-p doesn't seem to trigger the issue, but that is not of big importance regarding the problem with Fzf.
I opened an issue in the main fzf repo because I think the issue is in its vim plugin (which this vim plugin uses).
man fzf
)Problem
Using FZF to navigate to a file under subdirectory with the setting
autochdir
breaks directory dependant functionalities such as vim-fugitive.To reproduce
Then, in Vim, use this configuration:
and do the following:
Note that one can take the time to stage the files before running the last
:Gcommit
command while it does not have any incident on the following result which is an error one should not get at this point:Important remarks
autochdir
option does go around the problem, i.e. that you can do a commit with the:Gstatus
window without issue;:e
or even using the:Startify
command from the [vim-startify][] plugin won't trigger this issue.:pwd
inside the file window or in the:Gstatus
window, in both cases, gives a sensible result. In the former case, you'd get$ROOT/tata
and in the latter, you get$ROOT/.git
.