Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

I tried to view git status %d wenn the cursor is on a .git/-directory. The last lines with fileviewer from my vifmrc:

" preview directories
fileviewer .git/               git status %d
fileviewer .*/,*/              /usr/bin/tree --noreport -F -L 3 -a %c, /usr/bin/tree --noreport -F -a %c

The git status %d shows in :view, but only wenn I switch to the pane with the preview. If I switch back to the pane (which contains the .git/-folder the preview shows only [...]. Any hints how to solve this issue?

1 Answer

0 votes
by
selected by
 
Best answer

The issue seems to be caused by git status updating modification time of .git directory, which causes Vifm to run git status over and over again. %pu macro can be used to disable caching and avoid the loop (cache tracks file modification to know when preview is outdated):

fileviewer .git/               git status %d %pu
by

Thanks a lot. It works - now it's time for me to reread the "Command macros"-section of the helpfile

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...