[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gcmd-dev] archive browser plugin
From: |
Micha |
Subject: |
[gcmd-dev] archive browser plugin |
Date: |
Wed, 22 Mar 2006 03:32:48 +0100 |
User-agent: |
Alpenglühn 7.2 |
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.
°
/\/
- [gcmd-dev] archive browser plugin,
Micha <=
Re: [gcmd-dev] Python plugins (was: archive browser plugin), Piotr Eljasiak, 2006/03/27
Re: [gcmd-dev] Umime, Magnus Stålnacke, 2006/03/27