Skip to content
Myr

Add 'put' action for putting the character to the prompt

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fzf --bind 'space:preview(date)+put' Close #2456

authored by Junegunn Choi · committed by Junegunn Choi · parent f799b56 · Browse files · 2 files+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−0 removed

  • other:+7 added−0 removed

2 files+7 added−0 removed

modified:man/man1/fzf.1+1 added
858 unmodified lines
859 \fBpreview-bottom\fR860 \fBpreview-top\fR861 \fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)862 \fBprint-query\fR (print query and exit)863 \fBput\fR (put the character to the prompt)864 \fBrefresh-preview\fR865 \fBreload(...)\fR (see below for the details)866 \fBreplace-query\fR (replace query string with the current selection)867 \fBselect\fR
134 unmodified lines
modified:src/options.go+6 added
979 unmodified lines
980 case "enable-search":981 appendAction(actEnableSearch)982 case "disable-search":983 appendAction(actDisableSearch)984 case "put":985 if key.Type == tui.Rune && unicode.IsGraphic(key.Char) {986 appendAction(actRune)987 } else {988 errorExit("unable to put non-printable character: " + pair[0])989 }990 default:991 t := isExecuteAction(specLower)992 if t == actIgnore {993 if specIndex == 0 && specLower == "" {
698 unmodified lines