diff options
author | hut <hut@lavabit.com> | 2010-12-22 03:24:43 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-12-22 03:26:06 +0100 |
commit | c30e310547d5edbaff6b6e4f3fbfdf21d2580e51 (patch) | |
tree | 4a93eb95b1922c553e95fd111ff71918da923645 /ranger | |
parent | f597489c7f5093c0df6c5bbddcc48bf5b1a8a35c (diff) | |
download | ranger-c30e310547d5edbaff6b6e4f3fbfdf21d2580e51.tar.gz |
help.movement: Added documentation for scope.sh
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/help/movement.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ranger/help/movement.py b/ranger/help/movement.py index fce01183..8a828e57 100644 --- a/ranger/help/movement.py +++ b/ranger/help/movement.py @@ -24,6 +24,7 @@ 1.6. Tabs 1.7. Mouse usage 1.8. Misc keys +1.9. Previews ============================================================================== @@ -206,5 +207,26 @@ Clicking into the preview window will usually run the file. |2?| ============================================================================== +1.9. Previews + +By default, only text files are previewed, but you can enable external +preview scripts by creating ~/.config/ranger/scope.sh (see preview_script +option.) This script will then be executed each time you attempt to +preview a file. + +Fetch the default scope.sh (from ranger/data/scope.sh) by running + ranger --copy-config=scope + +This default script contains more documentation and calls to the +programs "lynx" and "elinks" for html, "highlight" for text/code, +"img2txt" for images, "atool" for archives, "pdftotext" for PDFs and +"mediainfo" for video and audio files. + +Install these programs (just the ones you need) and scope.sh will +automatically use them. Make sure to also have the options +"use_preview_script" and "preview_files" turned on. + + +============================================================================== """ # vim:tw=78:sw=4:sts=8:ts=8:ft=help |