From c1d85c1b87da5bbcf1aa41ffcc9ad832ab479554 Mon Sep 17 00:00:00 2001 From: Sighery Date: Sat, 5 Oct 2019 19:48:14 +0200 Subject: Add Space and navigation keys to the cheatsheet Add to the cheatsheet the functionality of Space and some navigation keys: Insert, Home, End, Page Up and Page Down. --- doc/cheatsheet.svg | 1773 ++++++++++++++++++++++++++-------------------------- 1 file changed, 894 insertions(+), 879 deletions(-) diff --git a/doc/cheatsheet.svg b/doc/cheatsheet.svg index 3794a2da..ac5cb4af 100644 --- a/doc/cheatsheet.svg +++ b/doc/cheatsheet.svg @@ -10,15 +10,15 @@ 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="1130" - height="800" - viewBox="0 0 1130 800" + width="1126" + height="830.00006" + viewBox="0 0 1126 830.00006" id="svg2" version="1.1" - inkscape:version="0.91 r13725" + inkscape:version="0.92.4 5da689c313, 2019-01-14" sodipodi:docname="cheatsheet.svg" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + inkscape:export-xdpi="150" + inkscape:export-ydpi="150"> + inkscape:snap-global="true" + showguides="false" + fit-margin-top="5" + fit-margin-left="5" + fit-margin-right="5" + fit-margin-bottom="5" + inkscape:pagecheckerboard="false" + height="730px"> + enabled="true" + originx="-0.47216608" + originy="89.065153" /> @@ -64,7 +73,7 @@ image/svg+xml - + @@ -72,66 +81,67 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(0,-252.36216)"> + transform="translate(1.0000019,-252.36215)">   + id="tspan3405-6-6" + style="font-size:12.5px;line-height:1.25">  + id="tspan3500-1" + style="font-size:12.5px;line-height:1.25">  + y="382.36218" + style="font-size:12.5px;line-height:1.25">  + y="377.36218" + style="font-size:12.5px;line-height:1.25">  + y="423.11218" + style="font-size:12.5px;line-height:1.25">  @@ -154,11 +164,10 @@ id="rect4230-1" style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-opacity:1" /> R reload thisdirectory r ^R resetranger @@ -267,11 +271,10 @@ id="rect4230-1-8" style="fill:#f2f2f2;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-opacity:1" /> E edit W show log w show back- Q quit q TAB prev. tab tab ~ ` open ! :shell 1 ESC T t Y y yank (3) U u ^U move uphalf page @@ -924,11 +893,10 @@ id="rect4230-1-8-4-2-4" style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-opacity:1" /> I i inspect file :rename O o P p paste (3) { [ move up in } traverse sub-directories ] move down @ :shell %s 2 # :shell -p 3 $ 4 % 5 ^ 6 & 7 * 8 ( 9 ) 0 _ - chmod (2) + chmod (2) = chmod (2) A :rename(append) a :rename (skip S open shell s + style="fill:#f2f2f2;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> + style="fill:#ff7f2a;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> D d cut (3) (4) move downhalf page + style="fill:#f2f2f2;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> F f :find + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.00621521;stroke-opacity:1" /> ^F move down1 page + id="tspan6144-1">one page G go to top g + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.02158463;stroke-opacity:1" /> + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.02158463;stroke-opacity:1" /> H back inhistory h go up 1directory + style="fill:#ffcc00;fill-opacity:1;stroke:#000000;stroke-width:1.02158463;stroke-opacity:1" /> ^H toggle + transform="translate(447,-219.99999)"> J move downhalf page j K move uphalf page k L forward inhistory l enter dir/ ^L : console ; ' openbookmarks " tag files with Z ZZ/ZQ = quit z toggle X C c select files incertain order abort task + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:89.99999762%;font-family:sans-serif;-inkscape-font-specification:'Sans, Normal';text-align:start;writing-mode:lr-tb;text-anchor:start">abort task V visual mode v invert B ^B move up1 page + id="tspan7901">one page N searchprevious n ^N new tab + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:91.00000262%;font-family:sans-serif;-inkscape-font-specification:'Sans, Normal';text-align:start;writing-mode:lr-tb;text-anchor:start">new tab M change (5)linemode m save < > + style="fill:#ffcc00;fill-opacity:1;stroke:#ff0000;stroke-width:3;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> ? show help / F1 F3 F4 F5 F6 F7 F8 F10 F12 https://ranger.github.io + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'Sans, Normal';text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#0000ff">https://ranger.github.io git clone + style="font-size:15px;line-height:1.25;font-family:sans-serif">git clone + transform="translate(243.52783,-306.06512)"> https://github.com/ranger/ranger + style="font-size:15px;line-height:1.25;font-family:sans-serif">https://github.com/ranger/ranger MacrosMacros can be used in commands. They are likeglobal variables with dynamic content: %f%f%d%d%s%s%t%t%c%c%any%any %rangerdir%rangerdir%space + style="font-size:12.5px;line-height:1.25;font-family:sans-serif">%space The base name of the current fileThe base name of the current fileThe path of the current directoryThe path of the current directoryThe names of the currently selected filesThe names of the currently selected filesThe names of all tagged files in this directoryThe names of all tagged files in this directoryThe paths of the currently copied filesThe paths of the currently copied filesThe key used in a key binding with "<any>"The key used in a key binding with "<any>"Example: Example: map x<any> shell -w echo %anyThe path to the ranger python moduleThe path to the ranger python moduleJust a space, to avoid typing trailing spaces + style="font-size:12.5px;line-height:1.25;font-family:sans-serif">Just 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 movethe cursor 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 folders.(4) d also starts the keybindings dc (calculate size of the content of a directory), du/dU(calculate directory size with the "du" program), dD (open the console with ":delete")(5) 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 definedwith the :meta command. You can add custom linemodes as described in/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. #ranger on irc.freenode.net Commands can be typed in by pressing : or added to ~/.config/ranger/rc.conf to apply then wheneverCommands can be typed in by pressing : or added to ~/.config/ranger/rc.conf to apply then wheneverranger starts. All commands are listed in the man page. Some important ones: :shell [<flags>] <command> calls the given <command> with the shell specified in the environmentvariable $SHELL. <flags> can be "-f" to fork the process or "-p" to pipe the output to a pager. Macros like%f and %s are especially useful here. Example: ":shell -f inkscape %f" or ":shell sudo cp %c ./":alias <new> <old> creates the command <new> that calls <old>. The neat thing is that you can passarguments to the next command. Example: ":alias touch shell touch" will allow you to type ":touch FILE",which will be translated to ":shell touch FILE".:map <key> <command> makes the <key> run <command> when pressed. This is the typical way todefine key bindings in rc.conf. There is also "pmap" to define keys in the pager and "unmap" and "punmap"to remove key bindings. + + + INSERT + :touch + + + + SPACE + mark + + + move tofirst element + + move tolast element + + move downone page + + move upone page + HOME + END + PAGE UP + PAGE DOWN -- cgit 1.4.1-2-gfad0