]> git.phdru.name Git - dotfiles.git/commitdiff
Replace spaces in the filename and set as the title
authorOleg Broytman <phd@phdru.name>
Wed, 7 May 2014 12:03:19 +0000 (16:03 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 7 May 2014 12:03:19 +0000 (16:03 +0400)
By default xli cut filename up to the first space or dot.

.mc/menu

index 2a1f44729744c8145473bea2dd0e45a93bbe13d1..9ea9698aec21de582fb7404f3ca9b37a728a1765 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -76,11 +76,11 @@ x  xls2csv
 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
 = t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$
 i  View image(s) scaled
-   xli -zoom auto %s &
+   xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s &
 
 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
 I  View image(s) full size
-   xli %s &
+   xli -title "`echo %s | sed 's/ /_/g'`" %s &
 
 + t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ | t t
 = t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$