Vim plugin that lets you fuzzy search for folds in a file.
I don't know about you, but I love stuff like ctags, and I also love fzf. I love searching through my ctags using fzf. I also love folds, and use them liberally, especially fold markers, and I often section off parts of a file using markers, like a lot of markers. But sometimes I need to find a specific fold, that might be deeply nested. That's where fzf-folds come in, it lets you fuzzy match for folds, and will put you at the starting point of the fold selected.
fzf.vim is required for this plugin to work. If you aren't familiar with fzf it's a commandline fuzzy finder, it lets you fuzzy search whatever you want and it's great. Go check it out!
Use your favorite plugin, manager, vim-plug for example:
Plug 'roosta/fzf-folds.vim'
fzf-folds introduce a command :Folds
,
:Folds
Open a fzf popup and search for folds in file. On accept fzf-folds will move
you to that folds line number and open just enough folds to show the fold you
selected (zv
).
It can be useful to bind this command to something:
nnoremap <leader>jf :Folds<CR>