Add bookmark completion for :bmr.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 18 Jul 2017 20:44:06 +0000 (22:44 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 18 Jul 2017 20:44:06 +0000 (22:44 +0200)
doc/vimb.1
src/ex.c

index 2bec4af..a26b0c4 100644 (file)
@@ -789,9 +789,8 @@ will complete only URIs that contain the words foo and bar.
 .B bookmarks
 The bookmark completion is similar to the history completion, but does match
 only the tags of the bookmarks.
-The bookmark completion is started by `:open \fB!\fP`
-or `:tabopen \fB!\fP` and does a prefix search for all given words in
-the bookmark tags.
+The bookmark completion is started by `:open \fB!\fP`, `:tabopen \fB!\fP` or
+`:bmr ` and does a prefix search for all given words in the bookmark tags.
 .sp
 Example:
 .RS
@@ -800,6 +799,8 @@ Example:
 will match all bookmarks that have tags starting with "foo" and "ba".
 If the bookmark does not have any tags set, the URL is split on `.' and `/'
 into tags.
+.IP ":bmr tag"
+will match all bookmarks that have tags starting with "tag".
 .PD
 .RE
 .TP
index bed8ac9..894f249 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -1205,6 +1205,10 @@ static gboolean complete(Client *c, short direction)
                     found = bookmark_fill_tag_completion(store, token);
                     break;
 
+                case EX_BMR:
+                    found = bookmark_fill_completion(store, token);
+                    break;
+
                 case EX_SCR: /* Fallthrough */
                 case EX_SCD:
                     found = shortcut_fill_completion(c, store, token);