
我有一個帶有大量標籤的書籤集合,透過標籤進行搜尋比透過 url、標題或歷史記錄進行搜尋更相關。有沒有辦法讓標籤優先,這樣當我在網址列中輸入時,我首先得到匹配的標籤?
答案1
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
另請參閱 browser.urlbar.default.behavior 以自訂網址列上的正常自動完成 (AwesomeBar) 搜尋行為。正常是搜尋文字字串,但可以更改為需要單字邊界。
這至少可以讓您透過標籤進行搜索,而不是公開搜索所有內容。使用* tag
將按名稱和標籤搜尋書籤,儘管結果的順序似乎並不重要+ tag
。