mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:17:58 +01:00
move global source() command to a vimperator slot
This commit is contained in:
@@ -649,7 +649,7 @@ function Commands() //{{{
|
||||
}
|
||||
));
|
||||
addDefaultCommand(new Command(["so[urce]"],
|
||||
source,
|
||||
function(args) { vimperator.source(args); },
|
||||
{
|
||||
usage: ["so[urce][!] {file}"],
|
||||
short_help: "Read Ex commands from {file}",
|
||||
@@ -1723,7 +1723,7 @@ function set(args, special)
|
||||
}
|
||||
}
|
||||
|
||||
function source(filename, silent)
|
||||
Vimperator.prototype.source = function(filename, silent)
|
||||
{
|
||||
if (!filename)
|
||||
return;
|
||||
|
||||
@@ -126,7 +126,7 @@ function init() //{{{
|
||||
// Finally, read a ~/.vimperatorrc
|
||||
// Make sourcing asynchronous, otherwise commands that open new tabs won't work
|
||||
setTimeout(function() {
|
||||
source("~/.vimperatorrc", true);
|
||||
vimperator.source("~/.vimperatorrc", true);
|
||||
vimperator.log("~/.vimperatorrc sourced", 1);
|
||||
}, 50);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user