summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-02-02 21:34:52 -0800
committerGitHub <noreply@github.com>2019-02-02 21:34:52 -0800
commit3027259581509f4aa901d6e77743c8a3c4dbbbc7 (patch)
tree2a5c8f47b08a38a2011e0590aedf0ddb3fb7cb08
parent73a730c5579f79300eac3d7ec09351eda9593bf6 (diff)
parented7fb2f542421bc733cd153399c543ac74587b28 (diff)
Merge pull request #101 from cisenor/Add-Path-To-Command-To-Support-OS-x
Add Path To Find Command
-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
+