1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 20:17:59 +01:00

Filter :u completions based on text and description.

--HG--
branch : xslt
This commit is contained in:
Kris Maglione
2009-10-26 17:19:08 -04:00
parent 66b2656cb0
commit 77beb82f45
2 changed files with 6 additions and 5 deletions

View File

@@ -880,10 +880,10 @@ function History() //{{{
let sh = history.session;
context.anchored = false;
context.completions = sh.slice(0, sh.index).reverse();
context.keys = { text: function (item) (sh.index - item.index) + ": " + item.URI.spec, description: "title", icon: "icon" };
context.compare = CompletionContext.Sort.unsorted;
context.filters = [CompletionContext.Filter.textDescription];
context.completions = sh.slice(0, sh.index).reverse();
context.keys = { text: function (item) (sh.index - item.index) + ": " + item.URI.spec, description: "title", icon: "icon" };
},
count: true,
literal: 0
@@ -922,10 +922,10 @@ function History() //{{{
let sh = history.session;
context.anchored = false;
context.completions = sh.slice(sh.index + 1);
context.keys = { text: function (item) (item.index - sh.index) + ": " + item.URI.spec, description: "title", icon: "icon" };
context.compare = CompletionContext.Sort.unsorted;
context.filters = [CompletionContext.Filter.textDescription];
context.completions = sh.slice(sh.index + 1);
context.keys = { text: function (item) (item.index - sh.index) + ": " + item.URI.spec, description: "title", icon: "icon" };
},
count: true,
literal: 0

View File

@@ -670,7 +670,8 @@ function Tabs() //{{{
{
context.anchored = false;
context.compare = CompletionContext.Sort.unsorted;
context.keys = { text: function ([i, item]) (i + 1) + ": " + item.state.entries[item.state.index - 1].url, description: "[1].title", icon: "[1].image" };
context.filters = [CompletionContext.Filter.textDescription];
conext.keys = { text: function ([i, isem]) (i + 1) + ": " + item.state.entries[item.state.index - 1].url, description: "[1].title", icon: "[1].image" };
context.completions = Iterator(tabs.closedTabs);
},
count: true,