0.10.0
This commit is contained in:
parent
8270f7f0ca
commit
a336494f5d
50
CHANGELOG.md
50
CHANGELOG.md
@ -1,6 +1,56 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.10.0
|
||||||
|
------
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
- More actions for `--bind`
|
||||||
|
- `select-all`
|
||||||
|
- `deselect-all`
|
||||||
|
- `toggle-all`
|
||||||
|
- `ignore`
|
||||||
|
- `execute(...)` action for running arbitrary command without leaving fzf
|
||||||
|
- `fzf --bind "ctrl-m:execute(less {})"`
|
||||||
|
- `fzf --bind "ctrl-t:execute(tmux new-window -d 'vim {}')"`
|
||||||
|
- If the command contains parentheses, use any of the follows alternative
|
||||||
|
notations to avoid parse errors
|
||||||
|
- `execute[...]`
|
||||||
|
- `execute~...~`
|
||||||
|
- `execute!...!`
|
||||||
|
- `execute@...@`
|
||||||
|
- `execute#...#`
|
||||||
|
- `execute$...$`
|
||||||
|
- `execute%...%`
|
||||||
|
- `execute^...^`
|
||||||
|
- `execute&...&`
|
||||||
|
- `execute*...*`
|
||||||
|
- `execute;...;`
|
||||||
|
- `execute/.../`
|
||||||
|
- `execute|...|`
|
||||||
|
- `execute:...`
|
||||||
|
- This is the special form that frees you from parse errors as it
|
||||||
|
does not expect the closing character
|
||||||
|
- The catch is that it should be the last one in the
|
||||||
|
comma-separated list
|
||||||
|
- Added support for optional search history
|
||||||
|
- `--history HISTORY_FILE`
|
||||||
|
- When used, `CTRL-N` and `CTRL-P` are automatically remapped to
|
||||||
|
`next-history` and `previous-history`
|
||||||
|
- `--history-size MAX_ENTRIES` (default: 1000)
|
||||||
|
- Cyclic scrolling can be enabled with `--cycle`
|
||||||
|
- Fixed the bug where the spinner was not spinning on idle input stream
|
||||||
|
- e.g. `sleep 100 | fzf`
|
||||||
|
|
||||||
|
### Minor improvements/fixes
|
||||||
|
|
||||||
|
- Added synonyms for key names that can be specified for `--bind`,
|
||||||
|
`--toggle-sort`, and `--expect`
|
||||||
|
- Fixed the color of multi-select marker on the current line
|
||||||
|
- Fixed to allow `^pattern$` in extended-search mode
|
||||||
|
|
||||||
|
|
||||||
0.9.13
|
0.9.13
|
||||||
------
|
------
|
||||||
|
|
||||||
|
2
install
2
install
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
version=0.9.13
|
version=0.10.0
|
||||||
|
|
||||||
cd $(dirname $BASH_SOURCE)
|
cd $(dirname $BASH_SOURCE)
|
||||||
fzf_base=$(pwd)
|
fzf_base=$(pwd)
|
||||||
|
154
man/man1/fzf.1
154
man/man1/fzf.1
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
..
|
..
|
||||||
.TH fzf 1 "June 2015" "fzf 0.9.13" "fzf - a command-line fuzzy finder"
|
.TH fzf 1 "June 2015" "fzf 0.10.0" "fzf - a command-line fuzzy finder"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fzf - a command-line fuzzy finder
|
fzf - a command-line fuzzy finder
|
||||||
@ -52,10 +52,10 @@ Comma-separated list of field index expressions for limiting search scope.
|
|||||||
See \fBFIELD INDEX EXPRESSION\fR for details.
|
See \fBFIELD INDEX EXPRESSION\fR for details.
|
||||||
.TP
|
.TP
|
||||||
.BI "--with-nth=" "N[,..]"
|
.BI "--with-nth=" "N[,..]"
|
||||||
Transform the item using the list of index expressions for search
|
Transform each item using index expressions within finder
|
||||||
.TP
|
.TP
|
||||||
.BI "-d, --delimiter=" "STR"
|
.BI "-d, --delimiter=" "STR"
|
||||||
Field delimiter regex for \fI--nth\fR and \fI--with-nth\fR (default: AWK-style)
|
Field delimiter regex for \fB--nth\fR and \fB--with-nth\fR (default: AWK-style)
|
||||||
.SS Search result
|
.SS Search result
|
||||||
.TP
|
.TP
|
||||||
.B "+s, --no-sort"
|
.B "+s, --no-sort"
|
||||||
@ -130,6 +130,9 @@ Use black background
|
|||||||
.B "--reverse"
|
.B "--reverse"
|
||||||
Reverse orientation
|
Reverse orientation
|
||||||
.TP
|
.TP
|
||||||
|
.B "--cycle"
|
||||||
|
Enable cyclic scroll
|
||||||
|
.TP
|
||||||
.B "--no-hscroll"
|
.B "--no-hscroll"
|
||||||
Disable horizontal scroll
|
Disable horizontal scroll
|
||||||
.TP
|
.TP
|
||||||
@ -140,8 +143,7 @@ Display finder info inline with the query
|
|||||||
Input prompt (default: '> ')
|
Input prompt (default: '> ')
|
||||||
.TP
|
.TP
|
||||||
.BI "--toggle-sort=" "KEY"
|
.BI "--toggle-sort=" "KEY"
|
||||||
Key to toggle sort (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,
|
Key to toggle sort. For the list of the allowed key names, see \fB--bind\fR.
|
||||||
or any single character)
|
|
||||||
.TP
|
.TP
|
||||||
.BI "--bind=" "KEYBINDS"
|
.BI "--bind=" "KEYBINDS"
|
||||||
Comma-separated list of custom key bindings. Each key binding expression
|
Comma-separated list of custom key bindings. Each key binding expression
|
||||||
@ -151,38 +153,109 @@ e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR
|
|||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.B KEY:
|
.B AVAILABLE KEYS:
|
||||||
\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR, or any single character
|
\fIctrl-[a-z]\fR
|
||||||
|
\fIalt-[a-z]\fR
|
||||||
|
\fIf[1-4]\fR
|
||||||
|
\fIenter\fR (\fIreturn\fR)
|
||||||
|
\fIspace\fR
|
||||||
|
\fIbspace\fR (\fIbs\fR)
|
||||||
|
\fIalt-bspace\fR (\fIalt-bs\fR)
|
||||||
|
\fItab\fR
|
||||||
|
\fIbtab\fR (\fIshift-tab\fR)
|
||||||
|
\fIesc\fR
|
||||||
|
\fIdel\fR
|
||||||
|
\fIup\fR
|
||||||
|
\fIdown\fR
|
||||||
|
\fIleft\fR
|
||||||
|
\fIright\fR
|
||||||
|
\fIhome\fR
|
||||||
|
\fIend\fR
|
||||||
|
\fIpgup\fR (\fIpage-up\fR)
|
||||||
|
\fIpgdn\fR (\fIpage-down\fR)
|
||||||
|
\fIshift-left\fR
|
||||||
|
\fIshift-right\fR
|
||||||
|
or any single character
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.B ACTION:
|
\fBACTION: DEFAULT BINDINGS:
|
||||||
abort
|
\fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR
|
||||||
accept
|
\fBaccept\fR \fIctrl-m (enter)\fR
|
||||||
backward-char
|
\fBbackward-char\fR \fIctrl-b left\fR
|
||||||
backward-delete-char
|
\fBbackward-delete-char\fR \fIctrl-h bspace\fR
|
||||||
backward-kill-word
|
\fBbackward-kill-word\fR \fIalt-bs\fR
|
||||||
backward-word
|
\fBbackward-word\fR \fIalt-b shift-left\fR
|
||||||
beginning-of-line
|
\fBbeginning-of-line\fR \fIctrl-a home\fR
|
||||||
clear-screen
|
\fBclear-screen\fR \fIctrl-l\fR
|
||||||
delete-char
|
\fBdelete-char\fR \fIctrl-d del\fR
|
||||||
down
|
\fBdeselect-all\fR
|
||||||
end-of-line
|
\fBdown\fR \fIctrl-j ctrl-n down\fR
|
||||||
forward-char
|
\fBend-of-line\fR \fIctrl-e end\fR
|
||||||
forward-word
|
\fBexecute(...)\fR (see below for the details)
|
||||||
kill-line (not bound)
|
\fBforward-char\fR \fIctrl-f right\fR
|
||||||
kill-word
|
\fBforward-word\fR \fIalt-f shift-right\fR
|
||||||
page-down
|
\fBignore\fR
|
||||||
page-up
|
\fBkill-line\fR
|
||||||
toggle (not bound)
|
\fBkill-word\fR \fIalt-d\fR
|
||||||
toggle-down
|
\fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)
|
||||||
toggle-sort (not bound; equivalent to \fB--toggle-sort\fR)
|
\fBpage-down\fR \fIpgdn\fR
|
||||||
toggle-up
|
\fBpage-up\fR \fIpgup\fR
|
||||||
unix-line-discard
|
\fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)
|
||||||
unix-word-rubout
|
\fBselect-all\fR
|
||||||
up
|
\fBtoggle\fR
|
||||||
yank
|
\fBtoggle-all\fR
|
||||||
|
\fBtoggle-down\fR \fIctrl-i (tab)\fR
|
||||||
|
\fBtoggle-sort\fR (equivalent to \fB--toggle-sort\fR)
|
||||||
|
\fBtoggle-up\fR \fIbtab (shift-tab)\fR
|
||||||
|
\fBunix-line-discard\fR \fIctrl-u\fR
|
||||||
|
\fBunix-word-rubout\fR \fIctrl-w\fR
|
||||||
|
\fBup\fR \fIctrl-k ctrl-p up\fR
|
||||||
|
\fByank\fR \fIctrl-y\fR
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
.RS
|
||||||
|
With \fBexecute(...)\fR action, you can execute arbitrary commands without
|
||||||
|
leaving fzf. For example, you can turn fzf into a simple file browser by
|
||||||
|
binding \fBenter\fR key to \fBless\fR command like follows.
|
||||||
|
|
||||||
|
.RS
|
||||||
|
\fBfzf --bind "enter:execute(less {})"\fR
|
||||||
|
.RE
|
||||||
|
|
||||||
|
\fB{}\fR is the placeholder for the double-quoted string of the current line.
|
||||||
|
If the command contains parentheses, you can use any of the following
|
||||||
|
alternative notations to avoid parse errors.
|
||||||
|
|
||||||
|
\fBexecute[...]\fR
|
||||||
|
\fBexecute~...~\fR
|
||||||
|
\fBexecute!...!\fR
|
||||||
|
\fBexecute@...@\fR
|
||||||
|
\fBexecute#...#\fR
|
||||||
|
\fBexecute$...$\fR
|
||||||
|
\fBexecute%...%\fR
|
||||||
|
\fBexecute^...^\fR
|
||||||
|
\fBexecute&...&\fR
|
||||||
|
\fBexecute*...*\fR
|
||||||
|
\fBexecute;...;\fR
|
||||||
|
\fBexecute/.../\fR
|
||||||
|
\fBexecute|...|\fR
|
||||||
|
\fBexecute:...\fR
|
||||||
|
.RS
|
||||||
|
This is the special form that frees you from parse errors as it does not expect
|
||||||
|
the closing character. The catch is that it should be the last one in the
|
||||||
|
comma-separated list.
|
||||||
|
.RE
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "--history=" "HISTORY_FILE"
|
||||||
|
Load search history from the specified file and update the file on completion.
|
||||||
|
When enabled, \fBCTRL-N\fR and \fBCTRL-P\fR are automatically remapped to
|
||||||
|
\fBnext-history\fR and \fBprevious-history\fR.
|
||||||
|
.TP
|
||||||
|
.BI "--history-size=" "N"
|
||||||
|
Maximum number of entries in the history file (default: 1000). The file is
|
||||||
|
automatically truncated when the number of the lines exceeds the value.
|
||||||
.SS Scripting
|
.SS Scripting
|
||||||
.TP
|
.TP
|
||||||
.BI "-q, --query=" "STR"
|
.BI "-q, --query=" "STR"
|
||||||
@ -202,10 +275,9 @@ fzf becomes a fuzzy-version of grep.
|
|||||||
Print query as the first line
|
Print query as the first line
|
||||||
.TP
|
.TP
|
||||||
.BI "--expect=" "KEY[,..]"
|
.BI "--expect=" "KEY[,..]"
|
||||||
Comma-separated list of keys (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,
|
Comma-separated list of keys that can be used to complete fzf in addition to
|
||||||
or any single character) that can be used to complete fzf in addition to the
|
the default enter key. When this option is set, fzf will print the name of the
|
||||||
default enter key. When this option is set, fzf will print the name of the key
|
key pressed as the first line of its output (or as the second line if
|
||||||
pressed as the first line of its output (or as the second line if
|
|
||||||
\fB--print-query\fR is also used). The line will be empty if fzf is completed
|
\fB--print-query\fR is also used). The line will be empty if fzf is completed
|
||||||
with the default enter key.
|
with the default enter key.
|
||||||
.RS
|
.RS
|
||||||
@ -235,7 +307,7 @@ Default options. e.g. \fB--extended --ansi\fR
|
|||||||
.SH FIELD INDEX EXPRESSION
|
.SH FIELD INDEX EXPRESSION
|
||||||
|
|
||||||
A field index expression can be a non-zero integer or a range expression
|
A field index expression can be a non-zero integer or a range expression
|
||||||
([BEGIN]..[END]). \fI--nth\fR and \fI--with-nth\fR take a comma-separated list
|
([BEGIN]..[END]). \fB--nth\fR and \fB--with-nth\fR take a comma-separated list
|
||||||
of field index expressions.
|
of field index expressions.
|
||||||
|
|
||||||
.SS Examples
|
.SS Examples
|
||||||
@ -258,7 +330,7 @@ of field index expressions.
|
|||||||
|
|
||||||
.SH EXTENDED SEARCH MODE
|
.SH EXTENDED SEARCH MODE
|
||||||
|
|
||||||
With \fI-x\fR or \fI--extended\fR option, fzf will start in "extended-search
|
With \fB-x\fR or \fB--extended\fR option, fzf will start in "extended-search
|
||||||
mode". In this mode, you can specify multiple patterns delimited by spaces,
|
mode". In this mode, you can specify multiple patterns delimited by spaces,
|
||||||
such as: \fB'wild ^music .mp3$ sbtrkt !rmx\fR
|
such as: \fB'wild ^music .mp3$ sbtrkt !rmx\fR
|
||||||
|
|
||||||
@ -278,8 +350,8 @@ from the result.
|
|||||||
|
|
||||||
.SS Extended-exact mode
|
.SS Extended-exact mode
|
||||||
If you don't need fuzzy matching at all and do not wish to "quote" (prefixing
|
If you don't need fuzzy matching at all and do not wish to "quote" (prefixing
|
||||||
with ') every word, start fzf with \fI-e\fR or \fI--extended-exact\fR option
|
with ') every word, start fzf with \fB-e\fR or \fB--extended-exact\fR option
|
||||||
(instead of \fI-x\fR or \fI--extended\fR).
|
(instead of \fB-x\fR or \fB--extended\fR).
|
||||||
|
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
Junegunn Choi (\fIjunegunn.c@gmail.com\fR)
|
Junegunn Choi (\fIjunegunn.c@gmail.com\fR)
|
||||||
|
@ -46,9 +46,9 @@ _fzf_opts_completion() {
|
|||||||
--expect
|
--expect
|
||||||
--toggle-sort
|
--toggle-sort
|
||||||
--sync
|
--sync
|
||||||
--null
|
--cycle
|
||||||
--history
|
--history
|
||||||
--history-max"
|
--history-size"
|
||||||
|
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
--tiebreak)
|
--tiebreak)
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Current version
|
// Current version
|
||||||
Version = "0.9.13"
|
Version = "0.10.0"
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
coordinatorDelayMax time.Duration = 100 * time.Millisecond
|
coordinatorDelayMax time.Duration = 100 * time.Millisecond
|
||||||
|
@ -23,7 +23,7 @@ const usage = `usage: fzf [options]
|
|||||||
-n, --nth=N[,..] Comma-separated list of field index expressions
|
-n, --nth=N[,..] Comma-separated list of field index expressions
|
||||||
for limiting search scope. Each can be a non-zero
|
for limiting search scope. Each can be a non-zero
|
||||||
integer or a range expression ([BEGIN]..[END])
|
integer or a range expression ([BEGIN]..[END])
|
||||||
--with-nth=N[,..] Transform the item using index expressions for search
|
--with-nth=N[,..] Transform item using index expressions within finder
|
||||||
-d, --delimiter=STR Field delimiter regex for --nth (default: AWK-style)
|
-d, --delimiter=STR Field delimiter regex for --nth (default: AWK-style)
|
||||||
+s, --no-sort Do not sort the result
|
+s, --no-sort Do not sort the result
|
||||||
--tac Reverse the order of the input
|
--tac Reverse the order of the input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user