commit ae48c60

hovercats  ·  2023-02-24 02:52:28 +0000 UTC
parent 330ad9d
dmpv: fix issues with spaces in filenames
1 files changed,  +4, -2
+4, -2
 1@@ -10,7 +10,9 @@ cd $DIR
 2 
 3 switch($1) {
 4 case -d
 5-	rm -rf `{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
 6+	sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
 7+	rm -rf $"sel
 8 case *
 9-  mpv `{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Play:'}
10+	sel=`{find . -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Play:'}
11+	mpv $"sel
12 }