Projects STRLCPY fzf Commits 673c5d88
🤬
  • Add 'put' action for putting the character to the prompt

    fzf --bind 'space:preview(date)+put'
    
    Close #2456
  • Loading...
  • Junegunn Choi committed 3 years ago
    673c5d88
    1 parent f799b568
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    man/man1/fzf.1
    skipped 859 lines
    860 860   \fBpreview-top\fR
    861 861   \fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)
    862 862   \fBprint-query\fR (print query and exit)
     863 + \fBput\fR (put the character to the prompt)
    863 864   \fBrefresh-preview\fR
    864 865   \fBreload(...)\fR (see below for the details)
    865 866   \fBreplace-query\fR (replace query string with the current selection)
    skipped 136 lines
  • ■ ■ ■ ■ ■ ■
    src/options.go
    skipped 980 lines
    981 981   appendAction(actEnableSearch)
    982 982   case "disable-search":
    983 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 + }
    984 990   default:
    985 991   t := isExecuteAction(specLower)
    986 992   if t == actIgnore {
    skipped 700 lines
Please wait...
Page is in error, reload to recover