From: Daniel Carl Date: Tue, 18 Jul 2017 20:44:06 +0000 (+0200) Subject: Add bookmark completion for :bmr. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=385879c0acd2e34db06a9e9a8796074a638cc683;p=vimb.git Add bookmark completion for :bmr. --- diff --git a/doc/vimb.1 b/doc/vimb.1 index 2bec4af..a26b0c4 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -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 diff --git a/src/ex.c b/src/ex.c index bed8ac9..894f249 100644 --- 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);