fisherman/zとpecoを組み合わせて使っていたのですが、このPRでz -l
の結果を標準出力に渡さなくなった模様。あまりお行儀よくないかもしれませんがfisherman/zがためている履歴を直接見るようにしてみました。
function __peco_z
set -l query (commandline)
if test -n $query
set flags --query "$query"
end
cat $Z_DATA | awk 'BEGIN{FS="|"} { print $3,$1 }' | sort -nr | awk '{ print $2 }' | peco $flags | read foo
if [ $foo ]
cd $foo
commandline -r ''
commandline -f repaint
end
end
function fish_user_key_bindings
# お好みのキーバインドで
bind \cq '__peco_z'
end