Documented new 'b' command semantics. - sam - An updated version of the sam tex… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 3ee8f386ebc7f68c1c2b27c20ffed8b973bf812b | |
parent ddafc188b6e492d1908ae84e4c2ba02c26464c0b | |
Author: Rob King <[email protected]> | |
Date: Thu, 26 May 2016 12:05:45 -0500 | |
Documented new 'b' command semantics. | |
Diffstat: | |
doc/sam.1 | 11 ++++++++--- | |
1 file changed, 8 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/doc/sam.1 b/doc/sam.1 | |
@@ -429,14 +429,19 @@ Set the current file to the first window on file | |
if | |
.Nm | |
has such a file in its menu. | |
-If no such file is present, the first file that has | |
+If no such file is present, | |
.Ar name | |
-as a prefix is used. | |
+is compared against the | |
+.Xr basename 3 | |
+of each menu file, and the first match is made current. | |
+Finally, if no such file is present, the first menu file that contains | |
+.Ar name | |
+as a substring is selected. | |
The name may be expressed | |
.Sy "<shell-command" | |
in which case the file names are taken as words | |
.Pq "in the shell sense" | |
-generated by the shell command. | |
+generated by the shell command and no fuzzy matching is performed. | |
.It * Sy "B file-list" | |
Same as | |
.Sy b "," |