Improve -0 and -1 as suggested in #36

- Make -0 and -1 work without -q
- Change exit status to 0 when exiting with -0
This commit is contained in:
Junegunn Choi
2014-04-03 01:06:40 +09:00
parent 22d3929ae3
commit 02c01c81a0
3 changed files with 41 additions and 11 deletions

View File

@@ -72,8 +72,8 @@ usage: fzf [options]
Scripting
-q, --query=STR Start the finder with the given query
-1, --select-1 (with --query) Automatically select the only match
-0, --exit-0 (with --query) Exit when there's no match
-1, --select-1 Automatically select the only match
-0, --exit-0 Exit immediately when there's no match
-f, --filter=STR Filter mode. Do not start interactive finder.
Environment variables