open dir of video file on alt+enter

This commit is contained in:
2023-11-03 14:53:41 +01:00
parent 69d50cf8f8
commit d93782c907
2 changed files with 9 additions and 1 deletions

7
.local/bin/tools/open_at_video Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if echo $1 | grep -qv '^/'; then
absolute_path_file="$(pwd)/$1"
else
absolute_path_file="$1"
fi
$TERMINAL $FILE "${absolute_path_file%/*}"