1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 20:55:46 +01:00

Fix menuItem completer, use it for :emenu

This commit is contained in:
Kris Maglione
2009-01-07 17:56:53 -05:00
parent 0aeee25e65
commit d9418ff43b
2 changed files with 38 additions and 40 deletions

View File

@@ -1614,14 +1614,16 @@ function Completion() //{{{
// FIXME: Line/Column doesn't make sense with %
context.title = ["Mark", "Line Column File"];
context.keys = {
text: 0,
description: function ([,m]) percent(m.position.y) + "% " + percent(m.position.x) + "% " + m.location
};
context.keys.description = function ([,m]) percent(m.position.y) + "% " + percent(m.position.x) + "% " + m.location;
context.completions = marks.all;
},
menuItem: function menuItem(filter) commands.get("emenu").completer(filter), // XXX
menuItem: function menuItem(context)
{
context.title = ["Menu Path", "Label"];
context.keys = { text: "fullMenuPath", description: "label" };
context.completions = liberator.menuItems;
},
option: function option(context, scope)
{