From 4c0614fd6055fbe7e98db1fc61e21b0049140c57 Mon Sep 17 00:00:00 2001 From: Toon Nolten Date: Fri, 20 Sep 2019 23:52:11 +0200 Subject: Give cmap and cunmap and friends similar treatment No longer will searching the docs say "Look elsewhere for the information you were hoping to find." All these sections did was clutter search results. I took the liberty to reorder all the "taskview or pager" entries because for some reason they weren't alphabetic. --- doc/ranger.1 | 30 ++++++------------------------ doc/ranger.pod | 34 +++++----------------------------- 2 files changed, 11 insertions(+), 53 deletions(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index c9f56403..39cb6fca 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.9.2" "2019-09-18" "ranger manual" +.TH RANGER 1 "ranger-1.9.2" "2019-09-20" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -1251,9 +1251,6 @@ example, \fB+ar\fR allows reading for everyone, \-ow forbids others to write and 777= allows everything. .Sp See also: man 1 chmod -.IP "cmap \fIkey\fR \fIcommand\fR" 2 -.IX Item "cmap key command" -Binds keys for the console. Works like the \f(CW\*(C`map\*(C'\fR command. .IP "console [\-p\fIN\fR] \fIcommand\fR" 2 .IX Item "console [-pN] command" Opens the console with the command already typed in. The cursor is placed at @@ -1265,11 +1262,8 @@ deep copy, so if you change the new binding (or parts of it) later, the old one is not modified. For example, \fIcopymap j down\fR will make the key sequence \&\*(L"down\*(R" move the cursor down one item. .Sp -To copy key bindings of the console, taskview or pager use \*(L"copycmap\*(R", -\&\*(L"copytmap\*(R" or \*(L"copypmap\*(R" respectively. -.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. +To copy key bindings of the console, pager or taskview use \*(L"copycmap\*(R", +\&\*(L"copypmap\*(R" or \*(L"copytmap\*(R" respectively. .IP "default_linemode [\fIpath=regexp\fR | \fItag=tags\fR] \fIlinemodename\fR" 2 .IX Item "default_linemode [path=regexp | tag=tags] linemodename" Sets the default linemode. See \fIlinemode\fR command. @@ -1383,8 +1377,8 @@ when typing the key, like 5j, it will be passed to the command as the attribute \&\*(L"self.quantifier\*(R". .Sp The keys you bind with this command are accessible in the file browser only, -not in the console, task view or pager. To bind keys there, use the commands -\&\*(L"cmap\*(R", \*(L"tmap\*(R" or \*(L"pmap\*(R". +not in the console, pager or taskview. To bind keys there, use the commands +\&\*(L"cmap\*(R", \*(L"pmap\*(R" or \*(L"tmap\*(R". .IP "mark \fIpattern\fR" 2 .IX Item "mark pattern" Mark all files matching the regular expression pattern. @@ -1418,16 +1412,10 @@ of applications is generated by the external file opener \*(L"rifle\*(R" and can displayed when pressing \*(L"r\*(R" in ranger. .Sp Note that if you specify an application, the mode is ignored. -.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 "prompt_metadata [\fIkeys ...\fR]" 2 .IX Item "prompt_metadata [keys ...]" Prompt the user to input metadata with the \f(CW\*(C`meta\*(C'\fR command for multiple keys in a row. -.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" Closes the current tab, if there's only one tab. Otherwise quits if there are no tasks in progress. @@ -1554,9 +1542,6 @@ Scroll the file preview by \fIvalue\fR lines. .IP "terminal" 2 .IX Item "terminal" Spawns the \fIx\-terminal-emulator\fR starting in the current directory. -.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 "touch \fIfilename\fR" 2 .IX Item "touch filename" Creates an empty file with the name \fIfilename\fR, unless it already exists. @@ -1569,13 +1554,10 @@ is automatically reopened, allowing for fast travel. To close the console, press \s-1ESC\s0 or execute a file. .Sp This command is based on the \fIscout\fR command and supports all of its options. -.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 ...]" Removes the given key mappings in the \*(L"browser\*(R" context. To unmap key bindings -in the console, taskview, or pager use \*(L"cunmap\*(R", \*(L"tunmap\*(R" or \*(L"punmap\*(R". +in the console, pager, or taskview use \*(L"cunmap\*(R", \*(L"punmap\*(R" or \*(L"tunmap\*(R". .IP "unmark \fIpattern\fR" 2 .IX Item "unmark pattern" Unmark all files matching a regular expression pattern. diff --git a/doc/ranger.pod b/doc/ranger.pod index f6dd6592..dfb9386a 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -1308,10 +1308,6 @@ example, B<+ar> allows reading for everyone, -ow forbids others to write and See also: man 1 chmod -=item cmap I I - -Binds keys for the console. Works like the C command. - =item console [-pI] I Opens the console with the command already typed in. The cursor is placed at @@ -1324,12 +1320,8 @@ deep copy, so if you change the new binding (or parts of it) later, the old one is not modified. For example, I will make the key sequence "down" move the cursor down one item. -To copy key bindings of the console, taskview or pager use "copycmap", -"copytmap" or "copypmap" respectively. - -=item cunmap [I] - -Removes key mappings of the console. Works like the C command. +To copy key bindings of the console, pager or taskview use "copycmap", +"copypmap" or "copytmap" respectively. =item default_linemode [I | I] I @@ -1456,8 +1448,8 @@ when typing the key, like 5j, it will be passed to the command as the attribute "self.quantifier". The keys you bind with this command are accessible in the file browser only, -not in the console, task view or pager. To bind keys there, use the commands -"cmap", "tmap" or "pmap". +not in the console, pager or taskview. To bind keys there, use the commands +"cmap", "pmap" or "tmap". =item mark I @@ -1495,19 +1487,11 @@ displayed when pressing "r" in ranger. Note that if you specify an application, the mode is ignored. -=item pmap I I - -Binds keys for the pager. Works like the C command. - =item prompt_metadata [I] Prompt the user to input metadata with the C command for multiple keys in a row. -=item punmap [I] - -Removes key mappings of the pager. Works like the C command. - =item quit Closes the current tab, if there's only one tab. Otherwise quits if there are no tasks in progress. @@ -1646,10 +1630,6 @@ Scroll the file preview by I lines. Spawns the I starting in the current directory. -=item tmap I I - -Binds keys for the taskview. Works like the C command. - =item touch I Creates an empty file with the name I, unless it already exists. @@ -1664,14 +1644,10 @@ To close the console, press ESC or execute a file. This command is based on the I command and supports all of its options. -=item tunmap [I] - -Removes key mappings of the taskview. Works like the C command. - =item unmap [I ...] Removes the given key mappings in the "browser" context. To unmap key bindings -in the console, taskview, or pager use "cunmap", "tunmap" or "punmap". +in the console, pager, or taskview use "cunmap", "punmap" or "tunmap". =item unmark I -- cgit 1.4.1-2-gfad0