From 7270687e19a790d539dc40465d58aa4c6bb3aead Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 7 May 2015 18:13:39 +0200 Subject: doc/cheatsheet.svg: added text about commands --- doc/cheatsheet.svg | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) 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">#ranger on irc.freenode.net + + Commands 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. -- cgit 1.4.1-2-gfad0