summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-28 19:23:40 +0200
committerhut <hut@lavabit.com>2010-04-28 19:23:40 +0200
commitbb5bfad4426eac02d0d855dd7f6ccf8ed5cc84f9 (patch)
tree45d52d9aa36963c9bf9d63cb5a37eb7d7ff2bff7
parentccb56d06a555efee9490f60029e50d9c060ec176 (diff)
downloadranger-bb5bfad4426eac02d0d855dd7f6ccf8ed5cc84f9.tar.gz
help.console: updated
-rw-r--r--ranger/help/console.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/ranger/help/console.py b/ranger/help/console.py
index fa02eae1..e1aa2d2a 100644
--- a/ranger/help/console.py
+++ b/ranger/help/console.py
@@ -166,11 +166,17 @@ The Open Console allows you to execute shell commands:
 Like in similar filemanagers there are some macros.  Use them in
 commands and they will be replaced with a list of files.
 	%f	the highlighted file
-	%s	the selected files
+	%d	the path of the current directory
+	%s	the selected files in the current directory
 	%t	all tagged files in the current directory
-	%c	all currently copied/cut files
-Example: Yank a file (type yy), move to a different file and use:
-!p!diff %c %f
+	%c	the full paths of the currently copied/cut files
+
+%c is the only macro which ranges out of the current directory. So you may
+"abuse" the copying function for other purposes, like diffing two files which
+are in different directories:
+
+	Yank the file A (type yy), move to the file B and use:
+	!p!diff %c %f
 
 There is a special syntax for more control: