aboutsummaryrefslogtreecommitdiffstats
path: root/home/fast-p/README.md
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-04 18:05:00 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-04 20:39:41 +0200
commit4d7fbc33a139d6484ae86c45b570b2c99fc737ef (patch)
tree46c5788b8ed0eaf6f6581b3b7a87d633d842a8dd /home/fast-p/README.md
parent7ab57a27c9648b3a8e12f755e03fc84eb50291b4 (diff)
downloadnixos-4d7fbc33a139d6484ae86c45b570b2c99fc737ef.tar.zst
Test
Diffstat (limited to 'home/fast-p/README.md')
-rw-r--r--home/fast-p/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/fast-p/README.md b/home/fast-p/README.md
new file mode 100644
index 0000000..344c387
--- /dev/null
+++ b/home/fast-p/README.md
@@ -0,0 +1,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
+}