1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 18:44:10 +01:00

Add :tabreattach.

The name is not very convincing.
This commit is contained in:
Doug Kearns
2009-09-28 17:49:24 +10:00
parent e8ab304cbc
commit 4a0e9bfd84
7 changed files with 65 additions and 0 deletions

View File

@@ -897,6 +897,11 @@ const liberator = (function () //{{{
context.keys = { text: function (item) item.getAttribute("toolbarname"), description: function () "" };
context.completions = buffer.evaluateXPath("./*[@toolbarname]", document, toolbox);
};
completion.window = function window(context) {
context.title = ["Window", "Title"]
context.completions = [[i, win.document.title] for ([i, win] in Iterator(liberator.windows))];
};
});
/////////////////////////////////////////////////////////////////////////////}}}