fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 735c030b5fb2b6aa6716c225d5de665bcc07b174 parent a4b6e12e9527456ce5c849c743880a49add26005 Author: Craig <craig@stembolt.com> Date: Fri, 30 Nov 2018 13:45:59 -0800 Add Path To Find Command OS X's `find` command requires a path. By changing `find -type f` to `find . -type f` we can make sure this is compatible with OS X without losing its Linux support. Diffstat:
| M | README.md | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md @@ -85,9 +85,9 @@ function! FzyCommand(choice_command, vim_command) endif endfunction -nnoremap <leader>e :call FzyCommand("find -type f", ":e")<cr> -nnoremap <leader>v :call FzyCommand("find -type f", ":vs")<cr> -nnoremap <leader>s :call FzyCommand("find -type f", ":sp")<cr> +nnoremap <leader>e :call FzyCommand("find . -type f", ":e")<cr> +nnoremap <leader>v :call FzyCommand("find . -type f", ":vs")<cr> +nnoremap <leader>s :call FzyCommand("find . -type f", ":sp")<cr> ``` Any program can be used to filter files presented through fzy. [ag (the silver searcher)](https://github.com/ggreer/the_silver_searcher) can be used to ignore files specified by `.gitignore`. @@ -114,3 +114,4 @@ It prefers shorter candidates: `test` matches <tt><b>test</b>s</tt> over <tt><b> * [fzy.js](https://github.com/jhawthorn/fzy.js) Javascript port +