mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 08:12:29 +01:00
Fix some completion issues. Make async search suggestion completions somewhat more useable.
This commit is contained in:
@@ -325,15 +325,15 @@ var Config = Module("config", ConfigBase, {
|
||||
searchRunning = context;
|
||||
};
|
||||
|
||||
completion.addUrlCompleter("l",
|
||||
"Firefox location bar entries (bookmarks and history sorted in an intelligent way)",
|
||||
completion.location);
|
||||
|
||||
completion.sidebar = function sidebar(context) {
|
||||
let menu = document.getElementById("viewSidebarMenu");
|
||||
context.title = ["Sidebar Panel"];
|
||||
context.completions = Array.map(menu.childNodes, function (n) [n.getAttribute("label"), ""]);
|
||||
};
|
||||
|
||||
completion.addUrlCompleter("l",
|
||||
"Firefox location bar entries (bookmarks and history sorted in an intelligent way)",
|
||||
completion.location);
|
||||
},
|
||||
events: function (dactyl, modules, window) {
|
||||
modules.events.listen(window, "SidebarFocused", function (event) {
|
||||
|
||||
Reference in New Issue
Block a user