1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 16:25:45 +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

@@ -1653,18 +1653,7 @@ function Marks() //{{{
},
{
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)];
}
completer: function (context) completion.mark(context)
});
commands.add(["ma[rk]"],
@@ -1710,6 +1699,8 @@ function Marks() //{{{
return {
get all() getSortedMarks(),
/**
* Add a named mark for the current buffer, at its current position.
* If mark matches [A-Z], it's considered a URL mark, and will jump to