mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:07:58 +01:00
Filter :u completions based on text and description.
--HG-- branch : xslt
This commit is contained in:
@@ -880,10 +880,10 @@ function History() //{{{
|
|||||||
let sh = history.session;
|
let sh = history.session;
|
||||||
|
|
||||||
context.anchored = false;
|
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.compare = CompletionContext.Sort.unsorted;
|
||||||
context.filters = [CompletionContext.Filter.textDescription];
|
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,
|
count: true,
|
||||||
literal: 0
|
literal: 0
|
||||||
@@ -922,10 +922,10 @@ function History() //{{{
|
|||||||
let sh = history.session;
|
let sh = history.session;
|
||||||
|
|
||||||
context.anchored = false;
|
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.compare = CompletionContext.Sort.unsorted;
|
||||||
context.filters = [CompletionContext.Filter.textDescription];
|
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,
|
count: true,
|
||||||
literal: 0
|
literal: 0
|
||||||
|
|||||||
@@ -670,7 +670,8 @@ function Tabs() //{{{
|
|||||||
{
|
{
|
||||||
context.anchored = false;
|
context.anchored = false;
|
||||||
context.compare = CompletionContext.Sort.unsorted;
|
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);
|
context.completions = Iterator(tabs.closedTabs);
|
||||||
},
|
},
|
||||||
count: true,
|
count: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user