about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLeo Vivier <leo.vivier+dev@gmail.com>2019-07-25 22:16:41 +0200
committertoonn <toonn@toonn.io>2019-08-02 21:22:53 +0200
commite733caa892b4ac28f33ca67997e2686d08108367 (patch)
treec715051150cc6353bd78ac6c224969582d9c90f3
parent634256d7a975e133a9775672b37dbaf3b2895b53 (diff)
downloadranger-e733caa892b4ac28f33ca67997e2686d08108367.tar.gz
Rephrase & Make
-rw-r--r--doc/ranger.111
-rw-r--r--doc/ranger.pod11
2 files changed, 8 insertions, 14 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index 10a5e765..c5bef68f 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -433,13 +433,10 @@ the end of the line automatically.
 .PP
 To write a literal %, you need to escape it by writing %%.
 .PP
-For adding a space character after a chained command, you also need to escape
-% by writing %% instead:
- chain command1 %%space; command2
-.PP
-This is because the chain command is a macro-expanding command itself. In the
-previous example, chain expands %%space to \f(CW%space\fR, which is then expanded to
-the space character by command1.
+Note that macros are expanded twice when using chain.  For example, to insert
+a space character in a chained command, you would write %%space. This is
+because the chain command is a macro-expanding command itself.
+ chain command1; command2%%space
 .SS "\s-1BOOKMARKS\s0"
 .IX Subsection "BOOKMARKS"
 Type \fBm<key>\fR to bookmark the current directory. You can re-enter this
diff --git a/doc/ranger.pod b/doc/ranger.pod
index fc385334..e178bf04 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -328,13 +328,10 @@ the end of the line automatically.
 
 To write a literal %, you need to escape it by writing %%.
 
-For adding a space character after a chained command, you also need to escape
-% by writing %% instead:
- chain command1 %%space; command2
-
-This is because the chain command is a macro-expanding command itself. In the
-previous example, chain expands %%space to %space, which is then expanded to
-the space character by command1.
+Note that macros are expanded twice when using chain.  For example, to insert
+a space character in a chained command, you would write %%space. This is
+because the chain command is a macro-expanding command itself.
+ chain command1; command2%%space
 
 =head2 BOOKMARKS