diff options
author | hut <hut@lepus.uberspace.de> | 2015-05-07 18:13:39 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-05-07 18:13:39 +0200 |
commit | 7270687e19a790d539dc40465d58aa4c6bb3aead (patch) | |
tree | 763b615339acd869424d18757a4aded5a450972c | |
parent | 8c295f64ffcdfed6196bd359f2636a0cfa366052 (diff) | |
download | ranger-7270687e19a790d539dc40465d58aa4c6bb3aead.tar.gz |
doc/cheatsheet.svg: added text about commands
-rw-r--r-- | doc/cheatsheet.svg | 94 |
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 [<flags>] <command><tspan + style="font-weight:normal" + id="tspan4899"> calls the given <command> 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. <flags> can be "-f" to fork the process or "-p" 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: ":shell -f inkscape %f" or ":shell sudo cp %c ./"</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 <new> <old></tspan> creates the command <new> that calls <old>. 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: ":alias <tspan + style="fill:#ff0000" + id="tspan5100">touch</tspan><tspan + style="fill:#0000ff" + id="tspan5108"> shell touch</tspan>" will allow you to type ":<tspan + style="fill:#ff0000" + id="tspan5114">touch</tspan> FILE",</tspan><tspan + sodipodi:role="line" + x="434.66431" + y="996.48706" + style="font-size:12.5px" + id="tspan5116">which will be translated to ":<tspan + style="fill:#0000ff" + id="tspan5118">shell touch</tspan> FILE".</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 <key> <command></tspan> makes the <key> run <command> 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 "pmap" to define keys in the pager and "unmap" and "punmap"</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> |