mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 17:27:59 +01:00
Open the firstrun page in a new tab.
This commit is contained in:
@@ -2015,9 +2015,12 @@ const Dactyl = Module("dactyl", {
|
||||
// first time intro message
|
||||
const firstTime = "extensions." + config.name + ".firsttime";
|
||||
if (prefs.get(firstTime, true)) {
|
||||
util.timeout(function () {
|
||||
dactyl.help();
|
||||
prefs.set(firstTime, false);
|
||||
dactyl.timeout(function () {
|
||||
this.withSavedValues(["forceNewTab"], function () {
|
||||
this.forceNewTab = true;
|
||||
this.help();
|
||||
prefs.set(firstTime, false);
|
||||
});
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -573,14 +573,10 @@ const Tabs = Module("tabs", {
|
||||
commands.add(["tab"],
|
||||
"Execute a command and tell it to output in a new tab",
|
||||
function (args) {
|
||||
try {
|
||||
var force = dactyl.forceNewTab;
|
||||
dactyl.forceNewTab = true;
|
||||
dactyl.execute(args[0] || "", null, true);
|
||||
}
|
||||
finally {
|
||||
dactyl.forceNewTab = force;
|
||||
}
|
||||
dactyl.withSavedValues(["forceNewTab"], function () {
|
||||
this.forceNewTab = true;
|
||||
this.execute(args[0] || "", null, true);
|
||||
});
|
||||
}, {
|
||||
argCount: "+",
|
||||
completer: function (context) completion.ex(context),
|
||||
|
||||
Reference in New Issue
Block a user