1
0
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:
Kris Maglione
2009-01-07 17:38:57 -05:00
parent 1f2bf969d1
commit 0aeee25e65
3 changed files with 17 additions and 13 deletions

View File

@@ -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)