fish: Rename __fzf-selector to __fzf-select
parent
be25cdea74
commit
929e0ad0e1
|
@ -4,14 +4,14 @@ bind \e\ct fzf-file-widget
|
||||||
bind \ec capitalize-word
|
bind \ec capitalize-word
|
||||||
bind \eC fzf-cd-widget
|
bind \eC fzf-cd-widget
|
||||||
|
|
||||||
function __fzf-selector -d 'fzf commandline and print selection back to commandline. Awesome!'
|
function __fzf-select -d 'fzf commandline and print selection back to commandline. Awesome!'
|
||||||
set -l cmd (commandline)
|
set -l cmd (commandline)
|
||||||
[ $cmd ]; or return
|
[ $cmd ]; or return
|
||||||
eval $cmd | eval (__fzfcmd) -m --tiebreak=index --toggle-sort=ctrl-r | string join ' ' | read -l result
|
eval $cmd | eval (__fzfcmd) -m --tiebreak=index --toggle-sort=ctrl-r | string join ' ' | read -l result
|
||||||
[ "$result" ]; and commandline -- $result
|
[ "$result" ]; and commandline -- $result
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
bind \e\cm __fzf-selector
|
bind \e\cm __fzf-select
|
||||||
|
|
||||||
## DONE: Report missing (commandline) upstream.
|
## DONE: Report missing (commandline) upstream.
|
||||||
## TODO: Report use of 'read'.
|
## TODO: Report use of 'read'.
|
||||||
|
|
Loading…
Reference in New Issue