]> Sergey Matveev's repositories - schwabrak.git/commitdiff
Preview scrolling bindings
authorSergey Matveev <stargrave@stargrave.org>
Tue, 21 May 2024 20:47:51 +0000 (23:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 21 May 2024 20:47:51 +0000 (23:47 +0300)
cd

diff --git a/cd b/cd
index 375ea032fb0ac7e6fa3213aa8cf1b0faa760d7b297cd17fe6333dbe7479ba7e0..0f945871b4ce0db063739ef7913b8d3c161955bac8f940451f0eeba4a93a0e8b 100755 (executable)
--- a/cd
+++ b/cd
@@ -3,5 +3,12 @@
 root=$0:h:a
 . $root/lib.zsh.rc
 
-$root/list $@ | fzf --ansi --tac --preview="$root/show {1}" | cut -f2 | read d
+opts=(
+    --bind=ctrl-e:preview-page-down
+    --bind=ctrl-y:preview-page-up
+    --ansi
+    --tac
+    --preview="$root/show {1}"
+)
+$root/list $@ | fzf $opts | cut -f2 | read d
 print issues/$d