summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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:
 
href='#n19'>19 20 21 22 23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114