m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Implement -s, +s, and -i options

This commit is contained in:
Junegunn Choi
2013-10-25 18:31:16 +09:00
parent 7f2ffb9746
commit 5b3af8ec1e
2 changed files with 35 additions and 9 deletions

View File

@@ -55,6 +55,14 @@ You can use any plugin manager. If you don't use one, I recommend you try
Usage
-----
```
usage: fzf [options]
-s, --sort=MAX Maximum number of matched items to sort. Default: 500
+s, --no-sort Keep the sequence unchanged.
+i Case-sensitive match
```
fzf will launch curses-based finder, read the list from STDIN, and write the
selected item to STDOUT.
@@ -69,10 +77,11 @@ files (excluding hidden ones).
vim `fzf`
```
If you do not want the matched items to be sorted, provide `--no-sort` option.
If you want to preserve the exact sequence of the input, provide `--no-sort` (or
`+s`) option.
```sh
history | fzf --no-sort
history | fzf +s
```
### Key binding
@@ -123,7 +132,7 @@ fda() {
# fh - repeat history
fh() {
eval $(history | fzf --no-sort | sed 's/ *[0-9]* *//')
eval $(history | fzf +s | sed 's/ *[0-9]* *//')
}
# fkill - kill process