cloudhead / neovim-fuzzy

Minimalistic fuzzy file finding for neovim
BSD 3-Clause "New" or "Revised" License
111 stars 17 forks source link

Misc improvements #40

Closed bosr closed 4 years ago

bosr commented 6 years ago

Hi,

Here are several changes

Misc improvements

Please be indulgent πŸ˜„, I'm a Vimscript newbie!

Config

My init.vim config for this plugin is:

nnoremap <silent> <C-p> :FuzzyOpen<cr>
let g:fuzzy_bindkeys = 1 " activate default bindkeys
let g:fuzzy_contentsearch_engine = 'ag'

Usage

<C-P> opens the plugin in buffers view
<C-T> to toggle to buffers+files view (this also kills, as <esc> does, but this is unfortunate)
<C-P> opens the plugin in buffers+files view
<C-T> to toggle back to buffers view

Notes

  1. Some other contributors did some work, but honestly, I did not take the time to present their work here. Their commits are included in this PR, of course.

  2. I moved around the functions because they made more sense to me. Here is my vim window with the code now (thanks to folding). I hope it is self-explanatory

screen shot 2018-05-15 at 23 44 34
  1. Here is a terminal recording

fzy vim-basic-demo

Thanks in advance for your comments and ideas. Best regards

insidewhy commented 4 years ago

The filename change from neovim-fuzzy to fzy is probably bad practice for a PR. This should also have been broken down into more than one PR.