From c30e310547d5edbaff6b6e4f3fbfdf21d2580e51 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 22 Dec 2010 03:24:43 +0100 Subject: help.movement: Added documentation for scope.sh --- ranger/help/movement.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 ============================================================================== @@ -205,6 +206,27 @@ Clicking into the preview window will usually run the file. |2?| yd Copy the directory name of the file (with xsel) +============================================================================== +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 -- cgit 1.4.1-2-gfad0