mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 16:55:46 +01:00
Fix menuItem completer, use it for :emenu
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user