dotfiles/fish/.config/fish/functions/dotg.fish
Sanchayan Maity 7e4193fc82
Revert "fish: functions: Open dot graphs by default in xdot"
This reverts commit a827d25ac4.

xdot has been giving us problem with GStreamer dot graphs. May be
it is a bug with GStreamer but let us just use vimiv henceforth.
2022-12-30 13:26:21 +05:30

15 lines
412 B
Fish

function dotg --description 'Generate gstreamer dot graph for selected file'
if count $argv >/dev/null
set dotpath "$argv"
else
set dotpath "$GST_DEBUG_DUMP_DOT_DIR"
end
find $dotpath -maxdepth 1 -regextype posix-extended -regex ".*\.(dot)" | fzf | read -l result
if test -n "$result"
dot -Tsvg "$result" -O
mv "$result".svg ~/Pictures/gstreamer
end
end