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:
@@ -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}"],
|
||||
|
||||
Reference in New Issue
Block a user