mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:47:58 +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:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user