mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:32:28 +01:00
Add standard 'mark' completer. Fix x/y transposition in :delm completion
This commit is contained in:
@@ -1608,6 +1608,19 @@ function Completion() //{{{
|
||||
context.completions = [item for (item in events.getMacros())];
|
||||
},
|
||||
|
||||
mark: function mark(context)
|
||||
{
|
||||
function percent(i) Math.round(i * 100);
|
||||
|
||||
// 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.completions = marks.all;
|
||||
},
|
||||
|
||||
menuItem: function menuItem(filter) commands.get("emenu").completer(filter), // XXX
|
||||
|
||||
option: function option(context, scope)
|
||||
|
||||
Reference in New Issue
Block a user