1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:07:59 +01:00

Added expected completion for :delmarks (as discussed on IRC, because expected, it's a bugfix, not a feature)

This commit is contained in:
Ted Pavlic
2009-01-07 16:06:33 -05:00
parent d2a96e4475
commit 7bb208020c

View File

@@ -1651,7 +1651,21 @@ function Marks() //{{{
marks.remove(args, special); marks.remove(args, special);
}, },
{ bang: true }); {
bang: true,
completer: function (context)
{
let marks = getSortedMarks();
function markinfo( m )
{
return Math.round(m.position.x * 100) + "% " + Math.round(m.position.y * 100) + "% " + m.location;
}
context.title = ["Mark", "Line/Column/File"];
context.completions = [[mark[0], markinfo(mark[1])] for each (mark in marks)];
}
});
commands.add(["ma[rk]"], commands.add(["ma[rk]"],
"Mark current location within the web page", "Mark current location within the web page",