Ranger: various enhancements

master
Pierre Neidhardt 2013-11-12 17:03:57 +01:00
parent 2b24f6d467
commit d0bbbfee27
3 changed files with 11 additions and 6 deletions

View File

@ -98,7 +98,7 @@ map ! console shell -w
# For the nostalgics: Midnight Commander bindings
map <F4> bulkrename
map <F5> console shell -w file "%f"
map <F5> shell -w file %s
map <F6> console touch
map <F7> console mkcd
@ -117,9 +117,9 @@ map Q quit
map DD shell trash-put -- %s
## Extraction using atools.
map exs shell aunpack -e %s
map exg shell aunpack -e %s -X "$HOME/games/"
map exh extracthere
map ex shell -w aunpack -e %s
map eXg shell -w aunpack -e %s -X "$HOME/games/"
map eXh extracthere
## Git
map ega shell -w git add %f %s

View File

@ -161,14 +161,15 @@ ext pdf, has evince, X, flag f = evince -- "$@"
ext pdf, has okular, X, flag f = okular -- "$@"
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
ext docx?, has docx2txt.pl, terminal = docx2txt.pl "$@" - | "$PAGER"
ext docx?, has catdoc, terminal = catdoc "$@" | "$PAGER"
ext djvu, has zathura, X, flag f = zathura -- "$@"
ext djvu, has evince, X, flag f = evince -- "$@"

View File

@ -76,6 +76,10 @@ case "$extension" in
try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;;
doc)
try antiword "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
docx)
try docx2txt.pl "$path" - && { dump | trim | fmt -s -w $width; exit 0; }
try catdoc "$path" && { dump | trim | fmt -s -w $width; exit 0; }
exit 1;;
rtf)
try unrtf --text "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
odt)