From d3887a46e9546887101f5d83a6bf4b8880044c02 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 30 Apr 2010 04:53:02 +0530 Subject: [PATCH] some more doc updates --- These are some documentation updates I wrote up, mostly based on direct observation. Please accept after checking to see if they look ok. I notice the "I" command is not implemented. I didn't have the smarts to *implement* it so I documented that it is not implemented :) ranger/help/console.py | 13 +++++++------ ranger/help/movement.py | 12 ++++++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ranger/help/console.py b/ranger/help/console.py index 6efc642..1b78b21 100644 --- a/ranger/help/console.py +++ b/ranger/help/console.py @@ -167,7 +167,8 @@ Like in similar filemanagers there are some macros. Use them in commands and they will be replaced with a list of files. %f the highlighted file %d the path of the current directory - %s the selected files in the current directory + %s the selected files in the current directory. If no files are + selected, it defaults to the same as %f %t all tagged files in the current directory %c the full paths of the currently copied/cut files @@ -187,11 +188,11 @@ There is a special syntax for more control: Those two can be combinated: address@hidden will open the selection with a detached mplayer - (again, this is equivalent to !d!mplayer %s) + (again, this is equivalent to !d!mplayer %s) -This keys open the console with a predefined text: - @ "!@" Good for things like "@mount" - # "!p!" For commands with output. +These keys open the console with a predefined text: + @ "!@" Suffixes %s. Good for things like "@mount" + # "!p!" Pipes output through a pager. For commands with output. Note: A plain "!p!" will be translated to "!p!cat %f" For a list of other flags than "d", check chapter 2.5 of the documentation @@ -224,7 +225,7 @@ open with: 1 open it with the default handler in mode 1 open with: d open it detached with the default handler open with: p open it as usual, but pipe the output to "less" open with: totem 1 Ds open in totem in mode 1, will not detach the - process (flag D) but discard the output (flag s) + process (flag D) but discard the output (flag s) ============================================================================== diff --git a/ranger/help/movement.py b/ranger/help/movement.py index 8b52ce8..82a13dc 100644 --- a/ranger/help/movement.py +++ b/ranger/help/movement.py @@ -97,7 +97,7 @@ of the file you're pointing at. V remove all marks By "tagging" files, you can highlight them and mark them to be -special in whatever context you want. +special in whatever context you want. Tags are persistent across sessions. t tag/untag the selection T untag the selection @@ -124,10 +124,10 @@ visible files. Pressing "n" will move you to the next occurance, "N" to the previous one. You can search for more than just strings: - ct search tagged files - cc cycle through all files by their ctime (last modification) + cc cycle through all files by their ctime (last inode change) cm cycle by mime type, connecting similar files cs cycle by size, large items first + ct search tagged files ============================================================================== @@ -148,7 +148,9 @@ be reversed. 1.5. Bookmarks Type "m" to bookmark the current directory. You can re-enter this -directory by typing "`". can be any letter or digit. +directory by typing "`". can be any letter or digit. Unlike vim, +both lowercase and uppercase bookmarks are persistent. + Each time you jump to a bookmark, the special bookmark at key ` will be set to the last directory. So typing "``" gets you back to where you were before. @@ -166,6 +168,7 @@ In Ranger, tabs are very simple though and only store the directory path. gn, ^N Create a new tab g Open a tab. N has to be a number from 0 to 9. If the tab doesn't exist yet, it will be created. + On most terminals, Alt-1, Alt-2, etc., also work. gc, ^W Close the current tab. The last tab cannot be closed. @@ -189,6 +192,7 @@ Clicking into the preview window will usually run the file. |2?| cw Open the console with ":rename " A Open the console with ":rename " I Same as A, put the cursor at the beginning of the filename + (not yet implemented) ============================================================================== -- 1.7.1