如何将 Firefox 地址栏建议的优先级更改为标签?

Jus*_*nas 8 firefox tags address-bar

我有一个大量标记的书签集合,通过标签搜索它比通过 url、标题或历史记录更相关。有没有办法让标签优先,所以当我在地址栏中输入时,我会先得到匹配的标签?

Rob*_*Rob 13

http://kb.mozillazine.org/Location_Bar_search

您可以使用可自定义的字符来限制下拉列表中显示的结果类型。在地址栏中包含以空格分隔的任何位置的字符,以限制显示的结果。字符如下:

Preference names in about:config    default key     action
browser.urlbar.match.title  #   Returns results that match the text in the title.
browser.urlbar.match.url    @   Returns results that match the text in the URL.
browser.urlbar.restrict.bookmark    *   Returns only results that are from the bookmarks.
browser.urlbar.restrict.history     ^   Returns only results that are from the browser’s history.
browser.urlbar.restrict.tag     +   Returns only results that have been tagged.
browser.urlbar.restrict.typed   ~   Returns only results that have been typed.
browser.urlbar.restrict.openpage    %   Returns only open tabs (visible tabs, not active tab), available in Firefox 4 (SeaMonkey 2.1) and later
Run Code Online (Sandbox Code Playgroud)

另请参阅 browser.urlbar.default.behavior 以自定义位置栏中的正常自动完成 (AwesomeBar) 搜索行为。正常是搜索文本字符串,但可以更改为需要单词边界。

这将使您至少可以按标签进行搜索,而不是公开搜索所有内容。使用* tag将按名称和标签搜索书签,尽管结果的顺序似乎无关紧要。+ tag将列出标签的所有结果。