summary refs log tree commit diff stats
path: root/doc/ranger.1
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ranger.1')
-rw-r--r--doc/ranger.1374
1 files changed, 225 insertions, 149 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index cfdbd455..7bf542fd 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RANGER 1"
-.TH RANGER 1 "ranger-1.5.5" "08/10/2012" "ranger manual"
+.TH RANGER 1 "ranger-1.5.5" "12/03/2012" "ranger manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -185,7 +185,7 @@ Open ranger with \fItargetfile\fR selected.
 .IX Item "--copy-config=file"
 Create copies of the default configuration files in your local configuration
 directory.  Existing ones will not be overwritten.  Possible values: \fIall\fR,
-\&\fIrc\fR, \fIapps\fR, \fIcommands\fR, \fIoptions\fR, \fIscope\fR.
+\&\fIrc\fR, \fIcommands\fR, \fIscope\fR.
 .IP "\fB\-\-list\-unused\-keys\fR" 14
 .IX Item "--list-unused-keys"
 List common keys which are not bound to any action in the \*(L"browser\*(R" context.
@@ -220,6 +220,8 @@ Print the version and exit.
 Print a list of options and exit.
 .SH "CONCEPTS"
 .IX Header "CONCEPTS"
+This part explains how certain parts of ranger work and how they can be used
+efficiently.
 .SS "\s-1TAGS\s0"
 .IX Subsection "TAGS"
 Tags are single characters which are displayed left of a filename.  You can use
@@ -272,7 +274,7 @@ are in different directories:
 .Ve
 .PP
 Macros for file paths are generally shell-escaped so they can be used in the
-:shell command.
+\&\f(CW\*(C`shell\*(C'\fR command.
 .SS "\s-1BOOKMARKS\s0"
 .IX Subsection "BOOKMARKS"
 Type \fBm<key>\fR to bookmark the current directory. You can re-enter this
@@ -285,40 +287,81 @@ to the last directory. So typing \*(L"``\*(R" gets you back to where you were be
 Bookmarks are selectable when tabbing in the :cd command.
 .PP
 Note: The bookmarks ' (Apostrophe) and ` (Backtick) are the same.
+.SS "\s-1RIFLE\s0"
+.IX Subsection "RIFLE"
+Rifle is the file opener of ranger.  It can be used as a standalone program or
+a python module.  It is located at \fIranger/ext/rifle.py\fR.  In contrast to
+other, more simple file openers, rifle can automatically find installed
+programs so it can be used effectively out of the box on a variety of systems.
+.PP
+It's configured in \fIrifle.conf\fR through a list of conditions and commands.
+For each line the conditions are checked and if they are met, the respective
+command is taken into consideration.  By default, simply the first matching
+rule is used.  In ranger, you can list and choose rules by typing \*(L"r\*(R" or simply
+by typing \*(L"<rulenumber><enter>\*(R".  If you use rifle standalone, you can list all
+rules with the \*(L"\-l\*(R" option and pick a rule with \*(L"\-p <number>\*(R".
+.PP
+The rules, along with further documentation, are contained in
+\&\fIranger/config/rifle.conf\fR.
 .SS "\s-1FLAGS\s0"
 .IX Subsection "FLAGS"
 Flags give you a way to modify the behavior of the spawned process.  They are
-used in the commands :open_with (key \*(L"r\*(R") and :shell (key \*(L"!\*(R").
+used in the commands \f(CW\*(C`:open_with\*(C'\fR (key \*(L"r\*(R") and \f(CW\*(C`:shell\*(C'\fR (key \*(L"!\*(R").
 .PP
-.Vb 7
-\& s   Silent mode.  Output will be discarded.
-\& d   Detach the process.  (Run in background)
-\& p   Redirect output to the pager
-\& w   Wait for an Enter\-press when the process is done
+.Vb 4
+\& f   Fork the process.  (Run in background)
 \& c   Run the current file only, instead of the selection
 \& r   Run application with root privilege (requires sudo)
 \& t   Run application in a new terminal window
 .Ve
 .PP
-By default, all the flags are off unless specified otherwise in the \fIapps.py\fR
-configuration file.  You can specify as many flags as you want.  An uppercase
-flag negates the effect: \*(L"ddcccDs\*(R" is equivalent to \*(L"cs\*(R".
-.PP
-The \*(L"t\*(R" flag looks for the environment variable \s-1TERMCMD\s0, and uses it as the
-terminal command, if it's not set it'll use xterm.
-.PP
-Examples: \f(CW\*(C`:open_with p\*(C'\fR will pipe the output of that process into
-the pager.  \f(CW\*(C`:shell \-w df\*(C'\fR will run \*(L"df\*(R" and wait for you to press Enter before
-switching back to ranger.
-.SS "\s-1MODES\s0"
-.IX Subsection "MODES"
-By specifying a mode (a positive integer), you can tell ranger what to do with
-a file when running it. You can specify which mode to use by typing <mode>l or
-<mode><Enter> or :open_with <mode>.  The default mode is 0.
-.PP
-Examples: \f(CW\*(C`l\*(C'\fR (mode zero) to list the contents of an archive, \f(CW\*(C`1l\*(C'\fR (mode one)
-to extract an archive.  See the \fIapps.py\fR configuration file for all programs
-and modes.
+There are some additional flags that can currently be used only in the \f(CW\*(C`shell\*(C'\fR
+command: (for example \f(CW\*(C`:shell \-w df\*(C'\fR)
+.PP
+.Vb 3
+\& p   Redirect output to the pager
+\& s   Silent mode.  Output will be discarded.
+\& w   Wait for an Enter\-press when the process is done
+.Ve
+.PP
+By default, all the flags are off unless specified otherwise in the
+\&\fIrifle.conf\fR configuration file.  You can specify as many flags as you want.
+An uppercase flag negates the effect: \*(L"ffcccFsf\*(R" is equivalent to \*(L"cs\*(R".
+.PP
+The terminal program name for the \*(L"t\*(R" flag is taken from the environment
+variable \f(CW$TERMCMD\fR.  If it doesn't exist, it tries to extract it from \f(CW$TERM\fR and
+uses \*(L"xterm\*(R" as a fallback if that fails.
+.PP
+Examples: \f(CW\*(C`:open_with c\*(C'\fR will open the file that you currently point at, even
+if you have selected other files.  \f(CW\*(C`:shell \-w df\*(C'\fR will run \*(L"df\*(R" and wait for
+you to press Enter before switching back to ranger.
+.SS "\s-1PLUGINS\s0"
+.IX Subsection "PLUGINS"
+ranger's plugin system consists of python files which are located in
+\&\fI~/.config/ranger/plugins/\fR and are imported in alphabetical order when
+starting ranger.  A plugin changes rangers behavior by overwriting or extending
+a function that ranger uses.  This allows you to change pretty much every part
+of ranger, but there is no guarantee that things will continue to work in
+future versions as the source code evolves.
+.PP
+There are some hooks that are specifically made for the use in plugins.  They
+are functions that start with hook_ and can be found throughout the code.
+.PP
+.Vb 1
+\& grep \*(Aqdef hook_\*(Aq \-r /path/to/rangers/source
+.Ve
+.PP
+Also try:
+.PP
+.Vb 1
+\& pydoc ranger.api
+.Ve
+.PP
+Note that you should \s-1NOT\s0 simply overwrite a function unless you know what
+you're doing.  Instead, save the existing function and call it from your new
+one.  This way, multiple plugins can use the same hook.  There are several
+sample plugins in the \fIexamples/\fR directory, including a hello-world plugin
+that describes this procedure.
 .SH "KEY BINDINGS"
 .IX Header "KEY BINDINGS"
 Key bindings are defined in the file \fIranger/config/rc.conf\fR.  Check this
@@ -472,40 +515,60 @@ directory, by clicking on the preview.
 Enter a directory or run a file.
 .IP "Scroll Wheel" 4
 .IX Item "Scroll Wheel"
-Scrolls up or down.  You can point at the column of the parent directory to
-switch directories.
+Scrolls up or down.  You can point at the column of the parent directory while
+scrolling to switch directories.
 .SH "SETTINGS"
 .IX Header "SETTINGS"
 This section lists all built-in settings of ranger.  The valid types for the
 value are in [brackets].  The hotkey to toggle the setting is in <brokets>, if
 a hotkey exists.
 .PP
-Settings can be changed in the file \fI~/.config/ranger/options.py\fR or on the
+Settings can be changed in the file \fI~/.config/ranger/rc.conf\fR or on the
 fly with the command \fB:set option value\fR.  Examples:
- :set column_ratios (1,2,3)
- :set show_hidden=True
+.PP
+.Vb 2
+\& set column_ratios 1,2,3
+\& set show_hidden true
+.Ve
+.PP
+The different types of settings and an example for each type:
+.PP
+.Vb 7
+\& setting type   | example values
+\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\& bool           | true, false
+\& integer        | 1, 23, 1337
+\& string         | foo, hello world
+\& list           | 1,2,3,4
+\& none           | none
+.Ve
+.PP
+You can view a list of all settings and their current values by pressing \*(L"3?\*(R"
+in ranger.
 .IP "autosave_bookmarks [bool]" 4
 .IX Item "autosave_bookmarks [bool]"
 Save bookmarks (used with mX and `X) instantly?  This helps to synchronize
 bookmarks between multiple ranger instances but leads to *slight* performance
 loss.  When false, bookmarks are saved when ranger is exited.
+.IP "autoupdate_cumulative_size [bool]" 4
+.IX Item "autoupdate_cumulative_size [bool]"
+You can display the \*(L"real\*(R" cumulative size of directories by using the command
+:get_cumulative_size or typing \*(L"dc\*(R".  The size is expensive to calculate and
+will not be updated automatically.  You can choose to update it automatically
+though by turning on this option.
 .IP "collapse_preview [bool] <zc>" 4
 .IX Item "collapse_preview [bool] <zc>"
 When no preview is visible, should the last column be squeezed to make use of
 the whitespace?
-.IP "colorscheme_overlay [function, None]" 4
-.IX Item "colorscheme_overlay [function, None]"
-An overlay function for colorschemes.  See the default options.py for an
-explanation and an example.
 .IP "colorscheme [string]" 4
 .IX Item "colorscheme [string]"
 Which colorscheme to use?  These colorschemes are available by default:
-\&\fBdefault\fR, \fBdefault88\fR, \fBtexas\fR, \fBjungle\fR, \fBsnow\fR. Snow is monochrome,
-texas and default88 use 88 colors.
-.IP "column_ratios [tuple, list]" 4
-.IX Item "column_ratios [tuple, list]"
+\&\fBdefault\fR, \fBjungle\fR, \fBsnow\fR.  Snow is a monochrome scheme, jungle replaces
+blue directories with green ones for better visibility on certain terminals.
+.IP "column_ratios [list]" 4
+.IX Item "column_ratios [list]"
 How many columns are there, and what are their relative widths?  For example, a
-value of (1, 1, 1) would mean 3 even sized columns. (1, 1, 1, 1, 4) means 5 columns
+value of 1,1,1 would mean 3 evenly sized columns. 1,1,1,1,4 means 5 columns
 with the preview column being as large as the other columns combined.
 .IP "dirname_in_tabs [bool]" 4
 .IX Item "dirname_in_tabs [bool]"
@@ -519,25 +582,32 @@ Display the file size in the status bar?
 .IP "display_tags_in_all_columns [bool]" 4
 .IX Item "display_tags_in_all_columns [bool]"
 Display tags in all columns?
-.IP "draw_bookmark_borders [bool]" 4
-.IX Item "draw_bookmark_borders [bool]"
-Draw borders around the bookmark window?
 .IP "draw_borders [bool]" 4
 .IX Item "draw_borders [bool]"
 Draw borders around columns?
+.IP "draw_progress_bar_in_statusbar [bool]" 4
+.IX Item "draw_progress_bar_in_statusbar [bool]"
+Draw a progress bar in the status bar which displays the average state of all
+currently running tasks which support progress bars?
 .IP "flushinput [bool] <zi>" 4
 .IX Item "flushinput [bool] <zi>"
 Flush the input after each key hit?  One advantage is that when scrolling down
 with \*(L"j\*(R", ranger stops scrolling instantly when you release the key.  One
 disadvantage is that when you type commands blindly, some keys might get lost.
-.IP "hidden_filter [regexp]" 4
-.IX Item "hidden_filter [regexp]"
-A regular expression pattern for files which should be hidden.
-.IP "max_console_history_size [integer, None]" 4
-.IX Item "max_console_history_size [integer, None]"
-How many console commands should be kept in history?
-.IP "max_history_size [integer, None]" 4
-.IX Item "max_history_size [integer, None]"
+.IP "hidden_filter [string]" 4
+.IX Item "hidden_filter [string]"
+A regular expression pattern for files which should be hidden.  For example,
+this pattern will hide all files that start with a dot or end with a tilde.
+.Sp
+.Vb 1
+\& set hidden_filter ^\e.|~$
+.Ve
+.IP "max_console_history_size [integer, none]" 4
+.IX Item "max_console_history_size [integer, none]"
+How many console commands should be kept in history?  \*(L"none\*(R" will disable the
+limit.
+.IP "max_history_size [integer, none]" 4
+.IX Item "max_history_size [integer, none]"
 How many directory changes should be kept in history?
 .IP "mouse_enabled [bool] <zm>" 4
 .IX Item "mouse_enabled [bool] <zm>"
@@ -553,8 +623,8 @@ Preview directories in the preview column?
 .IP "preview_files [bool] <zp>" 4
 .IX Item "preview_files [bool] <zp>"
 Preview files in the preview column?
-.IP "preview_script [string, None]" 4
-.IX Item "preview_script [string, None]"
+.IP "preview_script [string, none]" 4
+.IX Item "preview_script [string, none]"
 Which script should handle generating previews?  If the file doesn't exist, or
 use_preview_script is off, ranger will handle previews itself by just printing
 the content.
@@ -587,7 +657,7 @@ its \s-1ASCII\s0 value is higher.
 Sort directories first?
 .IP "sort_reverse [bool] <or>" 4
 .IX Item "sort_reverse [bool] <or>"
-Sort reversed?
+Reverse the order of files?
 .IP "sort [string] <oa>, <ob>, <oc>, <om>, <on>, <ot>, <os>" 4
 .IX Item "sort [string] <oa>, <ob>, <oc>, <om>, <on>, <ot>, <os>"
 Which sorting mechanism should be used?  Choose one of \fBatime\fR, \fBbasename\fR,
@@ -614,10 +684,61 @@ Enable this if key combinations with the Alt Key don't work for you.
 .IX Header "COMMANDS"
 You can enter the commands in the console which is opened by pressing \*(L":\*(R".
 .PP
+You can always get a list of the currently existing commands by typing \*(L"2?\*(R" in
+ranger.  For your convenience, this is a list of the \*(L"public\*(R" commands including their parameters, excluding descriptions:
+.PP
+.Vb 10
+\& alias [newcommand] [oldcommand]
+\& bulkrename
+\& cd [directory]
+\& chain command1[; command2[; command3...]]
+\& chmod octal_number
+\& cmap key command
+\& console [\-pSTARTPOSITION] command
+\& copycmap key newkey [newkey2...]
+\& copymap key newkey [newkey2...]
+\& copypmap key newkey [newkey2...]
+\& copytmap key newkey [newkey2...]
+\& cunmap keys...
+\& delete [confirmation]
+\& edit [filename]
+\& eval [\-q] python_code
+\& filter [string]
+\& find pattern
+\& grep pattern
+\& load_copy_buffer
+\& map key command
+\& mark pattern
+\& mkdir dirname
+\& open_with [application] [flags] [mode]
+\& pmap key command
+\& punmap keys...
+\& quit
+\& quit!
+\& relink newpath
+\& rename newname
+\& save_copy_buffer
+\& search pattern
+\& search_inc pattern
+\& set option value
+\& shell [\-FLAGS] command
+\& terminal
+\& tmap key command
+\& touch filename
+\& tunmap keys...
+\& unmap keys...
+\& unmark pattern
+.Ve
+.PP
 There are additional commands which are directly translated to python
 functions, one for every method in the ranger.core.actions.Actions class.
 They are not documented here, since they are mostly for key bindings, not to be
 typed in by a user.  Read the source if you are interested in them.
+.PP
+These are the public commands including their descriptions:
+.IP "alias [\fInewcommand\fR] [\fIoldcommand\fR]" 2
+.IX Item "alias [newcommand] [oldcommand]"
+Copies the oldcommand as newcommand.
 .IP "bulkrename" 2
 .IX Item "bulkrename"
 This command opens a list of selected files in an external editor.  After you
@@ -632,7 +753,7 @@ The cd command changes the directory.  The command \f(CW\*(C`:cd \-\*(C'\fR is e
 typing ``.
 .IP "chain \fIcommand1\fR[; \fIcommand2\fR[; \fIcommand3\fR...]]" 2
 .IX Item "chain command1[; command2[; command3...]]"
-Combines multiple commands into one, separated by columns.
+Combines multiple commands into one, separated by semicolons.
 .IP "chmod \fIoctal_number\fR" 2
 .IX Item "chmod octal_number"
 Sets the permissions of the selection to the octal number.
@@ -671,8 +792,8 @@ See \f(CW\*(C`copymap\*(C'\fR
 .IP "copytmap \fIkey\fR \fInewkey\fR [\fInewkey2\fR ...]" 2
 .IX Item "copytmap key newkey [newkey2 ...]"
 See \f(CW\*(C`copymap\*(C'\fR
-.IP "cunmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "cunmap key command"
+.IP "cunmap [\fIkeys...\fR]" 2
+.IX Item "cunmap [keys...]"
 Removes key mappings of the console. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "delete [\fIconfirmation\fR]" 2
 .IX Item "delete [confirmation]"
@@ -697,7 +818,8 @@ Examples:
  :eval p(\*(L"Hello World!\*(R")
 .IP "filter [\fIstring\fR]" 2
 .IX Item "filter [string]"
-Displays only the files which contain the \fIstring\fR in their basename.
+Displays only the files which contain the \fIstring\fR in their basename.  Running
+this command without any parameter will reset the fitler.
 .IP "find \fIpattern\fR" 2
 .IX Item "find pattern"
 Search files in the current directory that match the given (case-insensitive)
@@ -735,8 +857,8 @@ in their own sections.
 .IP "pmap \fIkey\fR \fIcommand\fR" 2
 .IX Item "pmap key command"
 Binds keys for the pager. Works like the \f(CW\*(C`map\*(C'\fR command.
-.IP "punmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "punmap key command"
+.IP "punmap [\fIkeys ...\fR]" 2
+.IX Item "punmap [keys ...]"
 Removes key mappings of the pager. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "quit" 2
 .IX Item "quit"
@@ -745,13 +867,14 @@ Like quit!, but closes only this tab if multiple tabs are open.
 .IX Item "quit!"
 Quit ranger.  The current directory will be bookmarked as ' so you can re-enter
 it by typing `` or '' the next time you start ranger.
+.IP "relink \fInewpath\fR" 2
+.IX Item "relink newpath"
+Change the link destination of the current symlink file to <newpath>. First
+<tab> will load the original link.
 .IP "rename \fInewname\fR" 2
 .IX Item "rename newname"
 Rename the current file.  If a file with that name already exists, the renaming
 will fail.  Also try the key binding A for appending something to a file name.
-.IP "relink \fInewpath\fR" 2
-.IX Item "relink newpath"
-Change the link destination of the current symlink file to <newpath>. First <tab> will load the original link.
 .IP "save_copy_buffer" 2
 .IX Item "save_copy_buffer"
 Save the copy buffer from \fI~/.config/ranger/copy_buffer\fR.  This can be used to
@@ -765,21 +888,20 @@ regular expression pattern.
 Search files in the current directory that match the given (case insensitive)
 regular expression pattern.  This command gets you to matching files as you
 type.
-.IP "set \fIoption\fR=\fIvalue\fR" 2
-.IX Item "set option=value"
+.IP "set \fIoption\fR \fIvalue\fR" 2
+.IX Item "set option value"
 Assigns a new value to an option.  Valid options are listed in the settings
 section.  Use tab completion to get the current value of an option, though this
 doesn't work for functions and regular expressions. Valid values are:
 .Sp
-.Vb 8
-\& None           None
-\& bool           True or False
-\& integer        0 or 1 or \-1 or 2 etc.
-\& list           [1, 2, 3]
-\& tuple          1, 2, 3 or (1, 2, 3)
-\& function       lambda <arguments>: <expression>
-\& regexp         regexp(\*(Aq<pattern>\*(Aq)
-\& string         Anything
+.Vb 7
+\& setting type   | example values
+\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\& bool           | true, false
+\& integer        | 1, 23, 1337
+\& string         | foo, hello world
+\& list           | 1,2,3,4
+\& none           | none
 .Ve
 .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2
 .IX Item "shell [-flags] command"
@@ -787,14 +909,14 @@ Run a shell command.  \fIflags\fR are discussed in their own section.
 .IP "terminal" 2
 .IX Item "terminal"
 Spawns the \fIx\-terminal-emulator\fR starting in the current directory.
-.IP "touch \fIfilename\fR" 2
-.IX Item "touch filename"
-Creates an empty file with the name \fIfilename\fR, unless it already exists.
 .IP "tmap \fIkey\fR \fIcommand\fR" 2
 .IX Item "tmap key command"
 Binds keys for the taskview. Works like the \f(CW\*(C`map\*(C'\fR command.
-.IP "tunmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "tunmap key command"
+.IP "touch \fIfilename\fR" 2
+.IX Item "touch filename"
+Creates an empty file with the name \fIfilename\fR, unless it already exists.
+.IP "tunmap [\fIkeys ...\fR]" 2
+.IX Item "tunmap [keys ...]"
 Removes key mappings of the taskview. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "unmap [\fIkeys\fR ...]" 2
 .IX Item "unmap [keys ...]"
@@ -807,45 +929,40 @@ Unmark all files matching a regular expression pattern.
 .IX Header "FILES"
 ranger reads several configuration files which are located in
 \&\fI\f(CI$HOME\fI/.config/ranger\fR or \fI\f(CI$XDG_CONFIG_HOME\fI/ranger\fR if \f(CW$XDG_CONFIG_HOME\fR is
-defined.  The configuration is done mostly in python.  When removing a
-configuration file, remove its compiled version too.  (Python automatically
-compiles modules.  Since python3 they are saved in the _\|_pycache_\|_ directory,
-earlier versions store them with the .pyc extension in the same directory.)
-.PP
-Use the \-\-copy\-config option to obtain the default configuration files.  They
-include further documentation and it's too much to put here.
+defined.  You can use the \-\-copy\-config option to obtain the default
+configuration files.  Each of the files contains further documentation.
 .PP
 You don't need to copy the whole file though, most configuration files are
-overlaid on top of the defaults (\fIoptions.py\fR, \fIcommand.py\fR, \fIrc.conf\fR) or
-can be sub-classed (\fIapps.py\fR, \fIcolorschemes\fR).
+overlaid on top of the defaults (\fIcommands.py\fR, \fIrc.conf\fR) or can be
+sub-classed (\fIcolorschemes\fR).
 .PP
 When starting ranger with the \fB\-\-clean\fR option, it will not access or create
 any of these files.
 .SS "\s-1CONFIGURATION\s0"
 .IX Subsection "CONFIGURATION"
-.IP "apps.py" 10
-.IX Item "apps.py"
-Controls which applications are used to open files.
-.IP "commands.py" 10
-.IX Item "commands.py"
-Defines commands which can be used by typing \*(L":\*(R".
 .IP "rc.conf" 10
 .IX Item "rc.conf"
 Contains a list of commands which are executed on startup.  Mostly key bindings
-are defined here.
-.IP "options.py" 10
-.IX Item "options.py"
-Sets a handful of basic options.
+and settings are defined here.
+.IP "commands.py" 10
+.IX Item "commands.py"
+A python module that defines commands which can be used in ranger's console by
+typing \*(L":\*(R" or in the rc.conf file.
+.IP "rifle.conf" 10
+.IX Item "rifle.conf"
+This is the configuration file for the built-in file launcher called \*(L"rifle\*(R".
 .IP "scope.sh" 10
 .IX Item "scope.sh"
 This is a script that handles file previews.  When the options
-\&\fIuse_preview_script\fR and \fIpreview_files\fR or, respectively,
-\&\fIpreview_directories\fR are set, the program specified in the option
-\&\fIpreview_script\fR is run and its output and/or exit code determines rangers
-reaction.
+\&\fIuse_preview_script\fR and \fIpreview_files\fR are set, the program specified in
+the option \fIpreview_script\fR is run and its output and/or exit code determines
+rangers reaction.
 .IP "colorschemes/" 10
 .IX Item "colorschemes/"
 Colorschemes can be placed here.
+.IP "plugins/" 10
+.IX Item "plugins/"
+Plugins can be placed here.
 .SS "\s-1STORAGE\s0"
 .IX Subsection "STORAGE"
 .IP "bookmarks" 10
@@ -874,7 +991,7 @@ with T.  To assign a named tag, type "<tagname>.
 These environment variables have an effect on ranger:
 .IP "\s-1RANGER_LEVEL\s0" 8
 .IX Item "RANGER_LEVEL"
-Ranger sets this environment variable to \*(L"1\*(R" or increments it if it already
+ranger sets this environment variable to \*(L"1\*(R" or increments it if it already
 exists.  External programs can determine whether they were spawned from ranger
 by checking for this variable.
 .IP "\s-1EDITOR\s0" 8
@@ -904,50 +1021,9 @@ Using PYTHONOPTIMIZE=2 (like python \-OO) will additionally discard any
 docstrings.  Using this will disable the <F1> key on commands.
 .SH "EXAMPLES"
 .IX Header "EXAMPLES"
-.SS "\s-1BASH:\s0 Display that the shell spawned from ranger:"
-.IX Subsection "BASH: Display that the shell spawned from ranger:"
-By putting this in ~/.bashrc, \*(L"(in ranger) \*(R" will be displayed next to your
-prompt to notify you that the shell spawned from ranger.
-.PP
-.Vb 1
-\& [ \-n "$RANGER_LEVEL" ] && PS1="$PS1"\*(Aq(in ranger) \*(Aq
-.Ve
-.SS "\s-1VIM:\s0 File Chooser"
-.IX Subsection "VIM: File Chooser"
-This is a vim function which allows you to use ranger to select a file for
-opening in your current vim session.
-.PP
-.Vb 9
-\& fun! RangerChooser()
-\&   exec "silent !ranger \-\-choosefile=/tmp/chosenfile " . expand("%:p:h")
-\&   if filereadable(\*(Aq/tmp/chosenfile\*(Aq)
-\&     exec \*(Aqedit \*(Aq . system(\*(Aqcat /tmp/chosenfile\*(Aq)
-\&     call system(\*(Aqrm /tmp/chosenfile\*(Aq)
-\&   endif
-\&   redraw!
-\& endfun
-\& map ,r :call RangerChooser()<CR>
-.Ve
-.SS "Bash: cd to last path after exit"
-.IX Subsection "Bash: cd to last path after exit"
-This is a bash function (for \fI~/.bashrc\fR) to change the directory to the last
-visited one after ranger quits.  You can always type \f(CW\*(C`cd \-\*(C'\fR to go back to the
-original one.
-.PP
-.Vb 9
-\& function ranger\-cd {
-\&   tempfile=\*(Aq/tmp/chosendir\*(Aq
-\&   /usr/bin/ranger \-\-choosedir="$tempfile" "${@:\-$(pwd)}"
-\&   test \-f "$tempfile" &&
-\&   if [ "$(cat \-\- "$tempfile")" != "$(echo \-n \`pwd\`)" ]; then
-\&     cd \-\- "$(cat "$tempfile")"
-\&   fi
-\&   rm \-f \-\- "$tempfile"
-\& }
-\&
-\& # This binds Ctrl\-O to ranger\-cd:
-\& bind \*(Aq"\eC\-o":"ranger\-cd\eC\-m"\*(Aq
-.Ve
+There are various examples on how to extend ranger with plugins or combine
+ranger with other programs.  These can be found in the \fIexamples/\fR directory
+that is provided along with the source code.
 .SH "LICENSE"
 .IX Header "LICENSE"
 \&\s-1GNU\s0 General Public License 3 or (at your option) any later version.