1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 03:57:58 +01:00

allow :marks to take an argument and sort its output properly

This commit is contained in:
Doug Kearns
2007-07-02 07:40:42 +00:00
parent cfa515f62e
commit 3372fee9e9
2 changed files with 115 additions and 64 deletions

View File

@@ -515,7 +515,13 @@ function Commands() //{{{
));
addDefaultCommand(new Command(["marks"],
function(args) {
vimperator.marks.list(args)
if (args.length > 1 && !/[a-zA-Z]/.test(args))
{
vimperator.echoerr("E283: No marks matching \"" + args + "\"");
return;
}
var filter = args.replace(/[^a-zA-Z]/g, '');
vimperator.marks.list(filter)
},
{
usage: ["marks {arg}"],