mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -05:00
8 lines
325 B
Fish
8 lines
325 B
Fish
|
function fzf-select -d 'fzf commandline job and print unescaped selection back to commandline'
|
||
|
set -l cmd (commandline -j)
|
||
|
[ "$cmd" ]; or return
|
||
|
eval $cmd | eval (__fzfcmd) -m --tiebreak=index --select-1 --exit-0 | string join ' ' | read -l result
|
||
|
[ "$result" ]; and commandline -j -- $result
|
||
|
commandline -f repaint
|
||
|
end
|