2021-12-10 11:09:44 +01:00
|
|
|
function dotg --description 'Generate gstreamer dot graph for selected file'
|
2022-04-03 05:56:07 +02:00
|
|
|
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
|
2022-11-05 10:07:37 +01:00
|
|
|
xdot $result &
|
2022-04-03 05:56:07 +02:00
|
|
|
end
|
2021-12-10 11:09:44 +01:00
|
|
|
end
|