From: Oleg Broytman Date: Wed, 7 May 2014 12:03:19 +0000 (+0400) Subject: Replace spaces in the filename and set as the title X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=91bd0a0154f0f50291d4ad7bdaaa2dcb75b8c553;p=dotfiles.git Replace spaces in the filename and set as the title By default xli cut filename up to the first space or dot. --- diff --git a/.mc/menu b/.mc/menu index 2a1f447..9ea9698 100644 --- 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)$