0.10.0
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent 8270f7f · Browse files · 6 files·+168 added−46 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+168 added−46 removed
- other:+168 added−46 removed
Provenance
- Commit
a336494- Tree
7fa9030- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
8270f7f
6 files changed+168 added−46 removed
modified:man/man1/fzf.1+113 added-41 removed
19 unmodified lines20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN22 THE SOFTWARE.23 ..24-.TH fzf 1 "June 2015" "fzf 0.9.13" "fzf - a command-line fuzzy finder"24+.TH fzf 1 "June 2015" "fzf 0.10.0" "fzf - a command-line fuzzy finder"25 26 .SH NAME27 fzf - a command-line fuzzy finder28 22 unmodified lines51 Comma-separated list of field index expressions for limiting search scope.52 See \fBFIELD INDEX EXPRESSION\fR for details.53 .TP54 .BI "--with-nth=" "N[,..]"55-Transform the item using the list of index expressions for search55+Transform each item using index expressions within finder56 .TP57 .BI "-d, --delimiter=" "STR"58-Field delimiter regex for \fI--nth\fR and \fI--with-nth\fR (default: AWK-style)58+Field delimiter regex for \fB--nth\fR and \fB--with-nth\fR (default: AWK-style)59 .SS Search result60 .TP61 .B "+s, --no-sort"62 Do not sort the result66 unmodified lines129 .TP130 .B "--reverse"131 Reverse orientation132 .TP133+.B "--cycle"134+Enable cyclic scroll135+.TP136 .B "--no-hscroll"137 Disable horizontal scroll138 .TP139 .B "--inline-info"2 unmodified lines142 .BI "--prompt=" "STR"143 Input prompt (default: '> ')144 .TP145 .BI "--toggle-sort=" "KEY"143-Key to toggle sort (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,144-or any single character)146+Key to toggle sort. For the list of the allowed key names, see \fB--bind\fR.147 .TP148 .BI "--bind=" "KEYBINDS"149 Comma-separated list of custom key bindings. Each key binding expression150 follows the following format: \fBKEY:ACTION\fR1 unmodified line152 e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR153 .RE154 155 .RS154-.B KEY:155- \fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR, or any single character156+.B AVAILABLE KEYS:157+ \fIctrl-[a-z]\fR158+ \fIalt-[a-z]\fR159+ \fIf[1-4]\fR160+ \fIenter\fR (\fIreturn\fR)161+ \fIspace\fR162+ \fIbspace\fR (\fIbs\fR)163+ \fIalt-bspace\fR (\fIalt-bs\fR)164+ \fItab\fR165+ \fIbtab\fR (\fIshift-tab\fR)166+ \fIesc\fR167+ \fIdel\fR168+ \fIup\fR169+ \fIdown\fR170+ \fIleft\fR171+ \fIright\fR172+ \fIhome\fR173+ \fIend\fR174+ \fIpgup\fR (\fIpage-up\fR)175+ \fIpgdn\fR (\fIpage-down\fR)176+ \fIshift-left\fR177+ \fIshift-right\fR178+ or any single character179 .RE180 181 .RS159-.B ACTION:160- abort161- accept162- backward-char163- backward-delete-char164- backward-kill-word165- backward-word166- beginning-of-line167- clear-screen168- delete-char169- down170- end-of-line171- forward-char172- forward-word173- kill-line (not bound)174- kill-word175- page-down176- page-up177- toggle (not bound)178- toggle-down179- toggle-sort (not bound; equivalent to \fB--toggle-sort\fR)180- toggle-up181- unix-line-discard182- unix-word-rubout183- up184- yank182+ \fBACTION: DEFAULT BINDINGS:183+ \fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR184+ \fBaccept\fR \fIctrl-m (enter)\fR185+ \fBbackward-char\fR \fIctrl-b left\fR186+ \fBbackward-delete-char\fR \fIctrl-h bspace\fR187+ \fBbackward-kill-word\fR \fIalt-bs\fR188+ \fBbackward-word\fR \fIalt-b shift-left\fR189+ \fBbeginning-of-line\fR \fIctrl-a home\fR190+ \fBclear-screen\fR \fIctrl-l\fR191+ \fBdelete-char\fR \fIctrl-d del\fR192+ \fBdeselect-all\fR193+ \fBdown\fR \fIctrl-j ctrl-n down\fR194+ \fBend-of-line\fR \fIctrl-e end\fR195+ \fBexecute(...)\fR (see below for the details)196+ \fBforward-char\fR \fIctrl-f right\fR197+ \fBforward-word\fR \fIalt-f shift-right\fR198+ \fBignore\fR199+ \fBkill-line\fR200+ \fBkill-word\fR \fIalt-d\fR201+ \fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)202+ \fBpage-down\fR \fIpgdn\fR203+ \fBpage-up\fR \fIpgup\fR204+ \fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)205+ \fBselect-all\fR206+ \fBtoggle\fR207+ \fBtoggle-all\fR208+ \fBtoggle-down\fR \fIctrl-i (tab)\fR209+ \fBtoggle-sort\fR (equivalent to \fB--toggle-sort\fR)210+ \fBtoggle-up\fR \fIbtab (shift-tab)\fR211+ \fBunix-line-discard\fR \fIctrl-u\fR212+ \fBunix-word-rubout\fR \fIctrl-w\fR213+ \fBup\fR \fIctrl-k ctrl-p up\fR214+ \fByank\fR \fIctrl-y\fR215 .RE216+217+.RS218+With \fBexecute(...)\fR action, you can execute arbitrary commands without219+leaving fzf. For example, you can turn fzf into a simple file browser by220+binding \fBenter\fR key to \fBless\fR command like follows.221+222+.RS223+\fBfzf --bind "enter:execute(less {})"\fR224+.RE225+226+\fB{}\fR is the placeholder for the double-quoted string of the current line.227+If the command contains parentheses, you can use any of the following228+alternative notations to avoid parse errors.229+230+ \fBexecute[...]\fR231+ \fBexecute~...~\fR232+ \fBexecute!...!\fR233+ \fBexecute@...@\fR234+ \fBexecute#...#\fR235+ \fBexecute$...$\fR236+ \fBexecute%...%\fR237+ \fBexecute^...^\fR238+ \fBexecute&...&\fR239+ \fBexecute*...*\fR240+ \fBexecute;...;\fR241+ \fBexecute/.../\fR242+ \fBexecute|...|\fR243+ \fBexecute:...\fR244+.RS245+This is the special form that frees you from parse errors as it does not expect246+the closing character. The catch is that it should be the last one in the247+comma-separated list.248+.RE249+.RE250+.TP251+.BI "--history=" "HISTORY_FILE"252+Load search history from the specified file and update the file on completion.253+When enabled, \fBCTRL-N\fR and \fBCTRL-P\fR are automatically remapped to254+\fBnext-history\fR and \fBprevious-history\fR.255+.TP256+.BI "--history-size=" "N"257+Maximum number of entries in the history file (default: 1000). The file is258+automatically truncated when the number of the lines exceeds the value.259 .SS Scripting260 .TP261 .BI "-q, --query=" "STR"262 Start the finder with the given query11 unmodified lines274 .B "--print-query"275 Print query as the first line276 .TP277 .BI "--expect=" "KEY[,..]"205-Comma-separated list of keys (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,206-or any single character) that can be used to complete fzf in addition to the207-default enter key. When this option is set, fzf will print the name of the key208-pressed as the first line of its output (or as the second line if278+Comma-separated list of keys that can be used to complete fzf in addition to279+the default enter key. When this option is set, fzf will print the name of the280+key pressed as the first line of its output (or as the second line if281 \fB--print-query\fR is also used). The line will be empty if fzf is completed282 with the default enter key.283 .RS284 e.g. \fBfzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@\fR21 unmodified lines306 307 .SH FIELD INDEX EXPRESSION308 309 A field index expression can be a non-zero integer or a range expression238-([BEGIN]..[END]). \fI--nth\fR and \fI--with-nth\fR take a comma-separated list310+([BEGIN]..[END]). \fB--nth\fR and \fB--with-nth\fR take a comma-separated list311 of field index expressions.312 313 .SS Examples314 .BR 1 " The 1st field"14 unmodified lines329 .br330 331 .SH EXTENDED SEARCH MODE332 261-With \fI-x\fR or \fI--extended\fR option, fzf will start in "extended-search333+With \fB-x\fR or \fB--extended\fR option, fzf will start in "extended-search334 mode". In this mode, you can specify multiple patterns delimited by spaces,335 such as: \fB'wild ^music .mp3$ sbtrkt !rmx\fR336 337 .SS Exact-match (quoted)11 unmodified lines349 from the result.350 351 .SS Extended-exact mode352 If you don't need fuzzy matching at all and do not wish to "quote" (prefixing281-with ') every word, start fzf with \fI-e\fR or \fI--extended-exact\fR option282-(instead of \fI-x\fR or \fI--extended\fR).353+with ') every word, start fzf with \fB-e\fR or \fB--extended-exact\fR option354+(instead of \fB-x\fR or \fB--extended\fR).355 356 .SH AUTHOR357 Junegunn Choi (\fIjunegunn.c@gmail.com\fR)358 5 unmodified linesmodified:shell/completion.bash+2 added-2 removed
44 unmodified lines45 --print-query46 --expect47 --toggle-sort48 --sync49- --null49+ --cycle50 --history51- --history-max"51+ --history-size"52 53 case "${prev}" in54 --tiebreak)55 COMPREPLY=( $(compgen -W "length begin end index" -- ${cur}) )216 unmodified linesmodified:src/constants.go+1 added-1 removed
6 unmodified lines7 )8 9 const (10 // Current version11- Version = "0.9.13"11+ Version = "0.10.0"12 13 // Core14 coordinatorDelayMax time.Duration = 100 * time.Millisecond15 coordinatorDelayStep time.Duration = 10 * time.Millisecond33 unmodified linesmodified:src/options.go+1 added-1 removed
21 unmodified lines22 +i Case-sensitive match23 -n, --nth=N[,..] Comma-separated list of field index expressions24 for limiting search scope. Each can be a non-zero25 integer or a range expression ([BEGIN]..[END])26- --with-nth=N[,..] Transform the item using index expressions for search26+ --with-nth=N[,..] Transform item using index expressions within finder27 -d, --delimiter=STR Field delimiter regex for --nth (default: AWK-style)28 +s, --no-sort Do not sort the result29 --tac Reverse the order of the input30 --tiebreak=CRI Sort criterion when the scores are tied;750 unmodified linesmodified:CHANGELOG.md+50 added
1 CHANGELOG2 =========3 4+0.10.05+------6+7+### New features8+9+- More actions for `--bind`10+ - `select-all`11+ - `deselect-all`12+ - `toggle-all`13+ - `ignore`14+- `execute(...)` action for running arbitrary command without leaving fzf15+ - `fzf --bind "ctrl-m:execute(less {})"`16+ - `fzf --bind "ctrl-t:execute(tmux new-window -d 'vim {}')"`17+ - If the command contains parentheses, use any of the follows alternative18+ notations to avoid parse errors19+ - `execute[...]`20+ - `execute~...~`21+ - `execute!...!`22+ - `execute@...@`23+ - `execute#...#`24+ - `execute$...$`25+ - `execute%...%`26+ - `execute^...^`27+ - `execute&...&`28+ - `execute*...*`29+ - `execute;...;`30+ - `execute/.../`31+ - `execute|...|`32+ - `execute:...`33+ - This is the special form that frees you from parse errors as it34+ does not expect the closing character35+ - The catch is that it should be the last one in the36+ comma-separated list37+- Added support for optional search history38+ - `--history HISTORY_FILE`39+ - When used, `CTRL-N` and `CTRL-P` are automatically remapped to40+ `next-history` and `previous-history`41+ - `--history-size MAX_ENTRIES` (default: 1000)42+- Cyclic scrolling can be enabled with `--cycle`43+- Fixed the bug where the spinner was not spinning on idle input stream44+ - e.g. `sleep 100 | fzf`45+46+### Minor improvements/fixes47+48+- Added synonyms for key names that can be specified for `--bind`,49+ `--toggle-sort`, and `--expect`50+- Fixed the color of multi-select marker on the current line51+- Fixed to allow `^pattern$` in extended-search mode52+53+54 0.9.1355 ------56 57 ### New features183 unmodified linesmodified:install+1 added-1 removed
1 #!/usr/bin/env bash2 3-version=0.9.133+version=0.10.04 5 cd $(dirname $BASH_SOURCE)6 fzf_base=$(pwd)7 270 unmodified lines