From 4683c964fc31f0c554fc01275a359ad96a8b71bb Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 19 Apr 2015 02:57:20 +0200 Subject: cheatsheet: added three new sections --- doc/cheatsheet.svg | 665 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 558 insertions(+), 107 deletions(-) (limited to 'doc') diff --git a/doc/cheatsheet.svg b/doc/cheatsheet.svg index c31aaa80..c9625b8c 100644 --- a/doc/cheatsheet.svg +++ b/doc/cheatsheet.svg @@ -7,11 +7,12 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="1200" - height="500" - viewBox="0 0 1200 500" + width="1130" + height="800" + viewBox="0 0 1130 800" id="svg2" version="1.1" inkscape:version="0.91 r13725" @@ -28,21 +29,21 @@ inkscape:pageopacity="1" inkscape:pageshadow="2" inkscape:zoom="1.4142136" - inkscape:cx="327.1198" - inkscape:cy="312.05244" + inkscape:cx="794.15228" + inkscape:cy="355.81559" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" units="px" - inkscape:snap-bbox="true" + inkscape:snap-bbox="false" inkscape:bbox-paths="false" inkscape:bbox-nodes="true" inkscape:snap-text-baseline="true" inkscape:snap-bbox-edge-midpoints="false" inkscape:snap-nodes="false" inkscape:snap-others="true" - inkscape:window-width="1596" - inkscape:window-height="882" + inkscape:window-width="1600" + inkscape:window-height="886" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="0" @@ -63,7 +64,7 @@ image/svg+xml - + @@ -71,69 +72,69 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(0,-552.36216)"> + transform="translate(0,-252.36216)"> + x="15.000001" + y="382.36218" /> + x="15.000001" + y="377.36218" /> + y="423.11218" /> + transform="translate(160,-354.99998)"> + transform="translate(75.000001,-354.99998)"> + transform="translate(10.000001,-289.99999)"> + transform="translate(-71.999999,-334.49998)"> + transform="translate(-167,-334.49998)"> next tab + transform="translate(-81.999999,-384.49998)"> + transform="translate(-167,-414.49997)"> + transform="translate(265,-289.99999)"> + transform="translate(350,-289.99999)"> yank + sodipodi:role="line">yank (3) + transform="translate(435,-289.99999)"> ^U move uphalf page + transform="translate(520,-289.99999)"> + transform="translate(605,-289.99999)"> + transform="translate(690,-289.99999)"> paste + sodipodi:role="line">paste (3) + transform="translate(775,-289.99999)"> + transform="translate(860,-289.99999)"> + transform="translate(3.000001,-384.49998)"> + transform="translate(88.000001,-384.49998)"> + transform="translate(173,-384.49998)"> + transform="translate(258,-384.49998)"> + transform="translate(343,-384.49998)"> + transform="translate(428,-384.49998)"> + transform="translate(513,-384.49998)"> + transform="translate(598,-384.49998)"> + transform="translate(683,-384.49998)"> + transform="translate(768,-384.49998)"> chmod + sodipodi:role="line">chmod (2) + transform="translate(853,-384.49998)"> chmod + id="tspan4438-4-3-9-7-0-6">chmod (2) chmod + sodipodi:role="line">chmod (2) + transform="translate(-61.999999,-264.49999)"> + transform="translate(23.000001,-264.49999)"> + transform="translate(85.000001,-284.99999)"> cut & more + sodipodi:role="line">cut (3) + transform="translate(170,-284.99999)"> + transform="translate(275,-219.99999)"> :cd ... (3) + y="690.36218" + x="194" + sodipodi:role="line">:cd ... (4) + transform="translate(340,-284.99999)"> + transform="translate(445,-219.99999)"> + transform="translate(530,-219.99999)"> + transform="translate(595,-284.99999)"> + transform="translate(700,-219.99999)"> + transform="translate(785,-219.99999)"> + transform="translate(-167,-264.49993)"> + transform="translate(-167,-194.49993)"> + transform="translate(-51.999999,-194.49999)"> + transform="translate(33.000001,-194.49999)"> + transform="translate(10.000001,-249.99997)"> + transform="translate(203,-194.49999)"> + transform="translate(265,-214.99999)"> + transform="translate(10.000001,-249.99997)"> + transform="translate(458,-194.49999)"> draw fileschange (4)differently + id="tspan5884">linemode + transform="translate(543,-194.49999)"> + transform="translate(628,-194.49999)"> + transform="translate(710,-149.99998)"> + transform="translate(-81.999999,-414.49997)"> + transform="translate(88.000001,-414.49997)"> + transform="translate(173,-414.49997)"> + transform="translate(258,-414.49997)"> + transform="translate(343,-414.49997)"> + transform="translate(428,-414.49997)"> + transform="translate(513,-414.49997)"> + transform="translate(683,-414.49997)"> + transform="translate(3.000001,-414.49997)"> + transform="translate(598,-414.49997)"> + transform="translate(768,-414.49997)"> + transform="translate(853,-414.49997)"> F12 + ranger cheatsheet + + http://ranger.nongnu.org + + git clone + + https://github.com/hut/ranger + + + Macros can be used in commands. They are like globalvariables which are matched to the current situation. + %f%d%s%t%c%any%rangerdir%space + The base name of the current fileThe path of the current directoryThe names of the currently selected filesThe names of all tagged files in this directoryThe paths of the currently copied filesThe key used in a key binding with "<any>"Example: map x<any> shell -w echo %anyThe path to the ranger python moduleJust a space, to avoid typing trailing spaces + Example: map yp shell echo %d/%f | xsel -iThey can be escaped by replacing % with %%. + + (1) numbers can be used as a quantifier in various commands, for example 5j will move thecursor down 5 by lines, 3<space> selects 3 files, 4<TAB> moves you to the 4th tab.(2) the keys -, + and = change the permissions of files. See "man chmod". [+-][augo][rwxXst] (e.g. +gw means "add write permissions to the group) [+-][rwxXst] (e.g. -x means "remove execute permissions from everybody") <octal>= (e.g. 777= means "give full permissions to everybody")(3) yank, copy, paste: To copy files, select them with the cursor (or <space>, in case ofmultiple files) → type dd (to cut) or yy (to copy) → move to the destination → type pp.Type da (or ya) to add files to the copy buffer, allowing you to copy from multiple directories.(4) M<key> changes the "linemode" - the way files are drawn. Mf draws just the file name,Mp draws permissions, Mi draws file type information, Mt draws metadata, as defined withthe :meta command. Add linemodes like /usr/share/doc/ranger/examples/plugin_linemode.py + + Config files: run "ranger --copy-config=all" tocopy the default config files to ~/.config/ranger/. + rc.conf: A list of commands that are executed when rangerstarts. Options, key bindings and aliases are found here.Pro tip: Adding "export RANGER_LOAD_DEFAULT_RC=FALSE" toyour shell rc will skip loading the default rc.conf before your own.commands.py: A python script containing custom commandsrifle.conf: Rules for rifle, the file opener. Each line looks like list of conditions = commandWhen ranger opens a file, it tests those conditions. The firstcommand where all conditions are true will be executed.scope.sh: The script that generates file previews.Plugins can be put in the plugins/ subdirectory, colorschemesin colorschemes/. See /usr/share/doc/ranger/examples. -- cgit 1.4.1-2-gfad0