blob: 344c387d374160d86c2072d0d12b38aaddd4040c (
plain) (
blame)
1
2
3
4
5
|
Should be run as nushell function
def p [] {
^fd -e pdf | ^fast-p | ^fzf --read0 --reverse -e -d "\t" --preview-window "down:80%" --preview 'v=$(echo {q} | tr " " "|"); echo -e {1}"\n"{2} | grep -E "^|$v" -i --color=always;' | ^cut -z -f 1 -d "\t" | ^tr -d '\n' | ^xargs -r --null xdg-open > /dev/null err> /dev/null
}
|