Ranger: various enhancements
parent
2b24f6d467
commit
d0bbbfee27
|
@ -98,7 +98,7 @@ map ! console shell -w
|
||||||
|
|
||||||
# For the nostalgics: Midnight Commander bindings
|
# For the nostalgics: Midnight Commander bindings
|
||||||
map <F4> bulkrename
|
map <F4> bulkrename
|
||||||
map <F5> console shell -w file "%f"
|
map <F5> shell -w file %s
|
||||||
map <F6> console touch
|
map <F6> console touch
|
||||||
map <F7> console mkcd
|
map <F7> console mkcd
|
||||||
|
|
||||||
|
@ -117,9 +117,9 @@ map Q quit
|
||||||
map DD shell trash-put -- %s
|
map DD shell trash-put -- %s
|
||||||
|
|
||||||
## Extraction using atools.
|
## Extraction using atools.
|
||||||
map exs shell aunpack -e %s
|
map ex shell -w aunpack -e %s
|
||||||
map exg shell aunpack -e %s -X "$HOME/games/"
|
map eXg shell -w aunpack -e %s -X "$HOME/games/"
|
||||||
map exh extracthere
|
map eXh extracthere
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
map ega shell -w git add %f %s
|
map ega shell -w git add %f %s
|
||||||
|
|
|
@ -161,14 +161,15 @@ ext pdf, has evince, X, flag f = evince -- "$@"
|
||||||
ext pdf, has okular, X, flag f = okular -- "$@"
|
ext pdf, has okular, X, flag f = okular -- "$@"
|
||||||
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
|
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 gnumeric, X, flag f = gnumeric -- "$@"
|
||||||
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
|
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 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 soffice, X, flag f = soffice "$@"
|
||||||
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
|
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 zathura, X, flag f = zathura -- "$@"
|
||||||
ext djvu, has evince, X, flag f = evince -- "$@"
|
ext djvu, has evince, X, flag f = evince -- "$@"
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,10 @@ case "$extension" in
|
||||||
try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;;
|
try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;;
|
||||||
doc)
|
doc)
|
||||||
try antiword "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
|
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)
|
rtf)
|
||||||
try unrtf --text "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
|
try unrtf --text "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
|
||||||
odt)
|
odt)
|
||||||
|
|
Loading…
Reference in New Issue