diff options
author | Stanislav Arnaudov <stanislav.arnaudov@iosb.fraunhofer.de> | 2019-03-18 14:41:40 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-05-18 15:30:04 +0200 |
commit | 0b068fe4e8c07f802751c198b072d41940fcdeca (patch) | |
tree | 67d5130712852022496d671afc4703a356670d74 /doc | |
parent | 7028e133adbf4fdd0b7179c9c0b4b3349375c154 (diff) | |
download | ranger-0b068fe4e8c07f802751c198b072d41940fcdeca.tar.gz |
Documenting the use of <any>, %any and %any_path
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ranger.pod | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/ranger.pod b/doc/ranger.pod index d182f3af..cc55d6ac 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -302,6 +302,20 @@ The macro %space expands to a space character. You can use it to add spaces to the end of a command when needed, while preventing editors to strip spaces off the end of the line automatically. +The macros %any and %any_path can be used when binding keys to +commands. The macro %any will exapnd to the key pressed in the place of +<any>. The macro %any_path will exapnd to the path of the bookmark which +is mapped to the key that is pressed in the place of <any>. For example: + + map c<any> echo %any + +can be used to echo the key that was pressd after "c". + + map c<any> echo %any_path + +can be used to echo the path of the booksmark that is set to the key +pressed after "c". + To write a literal %, you need to escape it by writing %%. =head2 BOOKMARKS |