mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-26 17:28:46 -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
|