summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-05-07 18:13:39 +0200
committerhut <hut@lepus.uberspace.de>2015-05-07 18:13:39 +0200
commit7270687e19a790d539dc40465d58aa4c6bb3aead (patch)
tree763b615339acd869424d18757a4aded5a450972c /doc
parent8c295f64ffcdfed6196bd359f2636a0cfa366052 (diff)
downloadranger-7270687e19a790d539dc40465d58aa4c6bb3aead.tar.gz
doc/cheatsheet.svg: added text about commands
Diffstat (limited to 'doc')
-rw-r--r--doc/cheatsheet.svg94
1 files changed, 94 insertions, 0 deletions
diff --git a/doc/cheatsheet.svg b/doc/cheatsheet.svg
index 157d42d8..352ed33e 100644
--- a/doc/cheatsheet.svg
+++ b/doc/cheatsheet.svg
@@ -4528,5 +4528,99 @@
          style="font-size:15px"><tspan
    style="font-weight:bold"
    id="tspan5683">#ranger</tspan> on irc.freenode.net</tspan></text>
+    <rect
+       style="fill:#e6e6e6;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect5634-3"
+       width="689"
+       height="173.99998"
+       x="430.5"
+       y="872.86224"
+       rx="2.1094199e-15"
+       ry="1.0269601e-15" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:125%;font-family:Sans;-inkscape-font-specification:'Sans, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="434.37744"
+       y="886.85925"
+       id="text5541-2"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         x="434.37744"
+         y="886.85925"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4932"><tspan
+   id="tspan4923"
+   style="font-weight:bold;font-size:12.5px">Commands</tspan> can be typed in by pressing : or added to ~/.config/ranger/rc.conf to apply then whenever</tspan><tspan
+         sodipodi:role="line"
+         x="434.37744"
+         y="902.48425"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4931">ranger starts. All commands are listed in the man page. Some important ones:</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:125%;font-family:Sans;-inkscape-font-specification:'Sans, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="434.66431"
+       y="918.36206"
+       id="text5776-0"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="918.36206"
+         style="font-weight:bold;font-size:12.5px"
+         id="tspan5864-8">:shell [&lt;flags&gt;] &lt;command&gt;<tspan
+   style="font-weight:normal"
+   id="tspan4899"> calls the given &lt;command&gt; with the shell specified in the environment</tspan></tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="933.98706"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4907">variable $SHELL. &lt;flags&gt; can be &quot;-f&quot; to fork the process or &quot;-p&quot; to pipe the output to a pager. Macros like</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="949.61206"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4905">%f and %s are especially useful here. Example: &quot;:shell -f inkscape %f&quot; or &quot;:shell sudo cp %c ./&quot;</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="965.23706"
+         style="font-size:12.5px"
+         id="tspan4895"><tspan
+   style="font-weight:bold"
+   id="tspan4897">:alias &lt;new&gt; &lt;old&gt;</tspan> creates the command &lt;new&gt; that calls &lt;old&gt;. The neat thing is that you can pass</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="980.86206"
+         style="font-size:12.5px"
+         id="tspan4935">arguments to the next command. Example: &quot;:alias <tspan
+   style="fill:#ff0000"
+   id="tspan5100">touch</tspan><tspan
+   style="fill:#0000ff"
+   id="tspan5108"> shell touch</tspan>&quot; will allow you to type &quot;:<tspan
+   style="fill:#ff0000"
+   id="tspan5114">touch</tspan> FILE&quot;,</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="996.48706"
+         style="font-size:12.5px"
+         id="tspan5116">which will be translated to &quot;:<tspan
+   style="fill:#0000ff"
+   id="tspan5118">shell touch</tspan> FILE&quot;.</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1012.1121"
+         style="font-size:12.5px"
+         id="tspan4915"><tspan
+   style="font-weight:bold"
+   id="tspan4933">:map &lt;key&gt; &lt;command&gt;</tspan> makes the &lt;key&gt; run &lt;command&gt; when pressed. This is the typical way to</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1027.7371"
+         style="font-size:12.5px"
+         id="tspan4917">define key bindings in rc.conf. There is also &quot;pmap&quot; to define keys in the pager and &quot;unmap&quot; and &quot;punmap&quot;</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1043.3621"
+         style="font-size:12.5px"
+         id="tspan4924">to remove key bindings.</tspan></text>
   </g>
 </svg>
ace.de> 2014-12-10 23:40:31 +0100 committer hut <hut@lepus.uberspace.de> 2014-12-10 23:41:09 +0100 HACKING.md: use markdown list in "Starting Points" subsection' href='/akspecs/ranger/commit/HACKING.md?h=v1.9.0b6&id=8ab348a8da554956071741221e23a25844f395e0'>8ab348a8 ^
03ed2a43 ^

1881922f ^

8ab348a8 ^
03ed2a43 ^


1881922f ^

f8f6f7f9 ^
6deb64e6 ^


f8f6f7f9 ^

03ed2a43 ^




6deb64e6 ^
03ed2a43 ^

f8f6f7f9 ^
f8f6f7f9 ^
6deb64e6 ^

f8f6f7f9 ^
03ed2a43 ^
c5f776ed ^
03ed2a43 ^

6deb64e6 ^
03ed2a43 ^

f8f6f7f9 ^
6deb64e6 ^
b071cb85 ^

6deb64e6 ^
c5f776ed ^
03ed2a43 ^
f8f6f7f9 ^
f8f6f7f9 ^
b071cb85 ^

f8f6f7f9 ^
c5f776ed ^
6deb64e6 ^



f8f6f7f9 ^
03ed2a43 ^
3652cb61 ^

c4e793c2 ^


03ed2a43 ^
c5f776ed ^
c4e793c2 ^

3652cb61 ^



















































































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194