summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig <craig@stembolt.com>2018-11-30 13:45:59 -0800
committerCraig <craig@stembolt.com>2018-11-30 13:51:17 -0800
commited7fb2f542421bc733cd153399c543ac74587b28 (patch)
tree2a5c8f47b08a38a2011e0590aedf0ddb3fb7cb08
parent73a730c5579f79300eac3d7ec09351eda9593bf6 (diff)
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.
-rw-r--r--README.md7
1 files 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 <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
+