summary refs log tree commit diff stats
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
parent8c295f64ffcdfed6196bd359f2636a0cfa366052 (diff)
downloadranger-7270687e19a790d539dc40465d58aa4c6bb3aead.tar.gz
doc/cheatsheet.svg: added text about commands
-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>