I have a number of branches from an SVN repository checked out. Sometimes I need to compare files from different versions, but frustratingly fzf reindexes every time when I use the Ctrl+T shortcut. I may also be doing something wrong here, but I've tried searching zsh/fzf caching/indexing but have found nothing.
fzf is a filter (think of it as an interactive version of grep) and is not responsible for indexing the file system. It's beyond the scope of this project. For CTRL-T, it simply reads the output of the command specified in FZF_CTRL_T_COMMAND which defaults to a find command.
Set FZF_CTRL_T_COMMAND to a smarter command that caches the result.
Most helpful comment
fzf is a filter (think of it as an interactive version of grep) and is not responsible for indexing the file system. It's beyond the scope of this project. For CTRL-T, it simply reads the output of the command specified in
FZF_CTRL_T_COMMANDwhich defaults to a find command.Set
FZF_CTRL_T_COMMANDto a smarter command that caches the result.