From ed7fb2f542421bc733cd153399c543ac74587b28 Mon Sep 17 00:00:00 2001 From: Craig Date: Fri, 30 Nov 2018 13:45:59 -0800 Subject: 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. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f6c525..e6676ea 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,9 @@ function! FzyCommand(choice_command, vim_command) endif endfunction -nnoremap e :call FzyCommand("find -type f", ":e") -nnoremap v :call FzyCommand("find -type f", ":vs") -nnoremap s :call FzyCommand("find -type f", ":sp") +nnoremap e :call FzyCommand("find . -type f", ":e") +nnoremap v :call FzyCommand("find . -type f", ":vs") +nnoremap s :call FzyCommand("find . -type f", ":sp") ``` 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 tests over * [fzy.js](https://github.com/jhawthorn/fzy.js) Javascript port + -- cgit v1.2.3