Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.65 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.65 KB

fzf ❤️ folds

Vim plugin that lets you fuzzy search for folds in a file.

Demo

demo

Rationale

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.

Requirements

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!

Installation

Use your favorite plugin, manager, vim-plug for example:

Plug 'roosta/fzf-folds.vim'

Usage instructions

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>

Reference

License

MIT