archive browser plugin





Folks, as a sidenote, you can view (but not browse) 
compressed archives and also get some info about 
most kind of files (including jpg) with a rightclick by
inserting the command:
xterm -bg black -fg darkred -e less
into the gnome-commander context menu.

The trick works only, if the user-profile (like .profile) 
exports the environment variables
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s

which would be done (better) by 

[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"


Looks like a cool trick ? Nope.

Just configure xterm -e mcview instead, and you got it all, 
only just better (for example, it shows exif data by default).

Cool trick ? Nope !

Hack a script called gnome-commander-tools (or ask me for mine)
and insert a line


case $choice in

      mcvfs) mode=$1; file=$2; xterm -e mc $file"#"$mode"/" ;;

esac
 

Now you setup another context menu entry calling:
gnome-commander-tools mcvfs utar

and there you have the full featured tar{.bz2} browser !
And you just have switched the filemanager (at least, temporarily) too :)
However, that's ok. mc is just unbeatable.



   °
 /\/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]