]> Sergey Matveev's repositories - schwabrak.git/blobdiff - cd
I use print everywhere here
[schwabrak.git] / cd
diff --git a/cd b/cd
index 09cc64fb43f863bf99be65a1ee6f181b1541cd177adbd0f5a9fce2d6d8db65a8..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