From e1be59cafa367004fe0474c0279f6212d4661768 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 8 Feb 2023 10:35:20 +0530 Subject: [PATCH] fish: functions/dotg: Allow scrolling half a page up or down Allow scrolling half a page up or down by binding keys to page up or down actions. --- fish/.config/fish/functions/dotg.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/dotg.fish b/fish/.config/fish/functions/dotg.fish index 146456d..858204d 100644 --- a/fish/.config/fish/functions/dotg.fish +++ b/fish/.config/fish/functions/dotg.fish @@ -5,7 +5,7 @@ function dotg --description 'Generate gstreamer dot graph for selected file' set dotpath "$GST_DEBUG_DUMP_DOT_DIR" end - find /tmp/gst-dot -maxdepth 1 -regextype posix-extended -regex ".*\.(dot)" -printf '%T@ %p\n' | sort -k 1 -n -r | fzf | awk -F' ' '{print $2}' | read -l result + find /tmp/gst-dot -maxdepth 1 -regextype posix-extended -regex ".*\.(dot)" -printf '%T@ %p\n' | sort -k 1 -n -r | fzf --bind "ctrl-d:half-page-down,ctrl-u:half-page-up" | awk -F' ' '{print $2}' | read -l result if test -n "$result" dot -Tsvg "$result" -O