1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 10:05:47 +01:00

Add a "tabUndo" config feature.

Songbird doesn't support tab undo.
This commit is contained in:
Doug Kearns
2009-06-06 03:12:52 +10:00
parent 56814ed072
commit 29daa12f8e
2 changed files with 14 additions and 7 deletions

View File

@@ -286,10 +286,14 @@ function Tabs() //{{{
function (count) { tabs.switchTo(null, null, count, true); },
{ flags: Mappings.flags.COUNT });
mappings.add([modes.NORMAL], ["u"],
"Undo closing of a tab",
function (count) { commands.get("undo").execute("", false, count); },
{ flags: Mappings.flags.COUNT });
// TODO: feature dependencies - implies "session"?
if (liberator.has("tabUndo"))
{
mappings.add([modes.NORMAL], ["u"],
"Undo closing of a tab",
function (count) { commands.get("undo").execute("", false, count); },
{ flags: Mappings.flags.COUNT });
}
mappings.add([modes.NORMAL], ["<C-^>", "<C-6>"],
"Select the alternate tab or the [count]th tab",
@@ -607,8 +611,7 @@ function Tabs() //{{{
});
}
/* Why not xulmus? */
if (liberator.has("session") && config.name != "Xulmus")
if (liberator.has("tabUndo"))
{
commands.add(["u[ndo]"],
"Undo closing of a tab",
@@ -654,6 +657,10 @@ function Tabs() //{{{
},
{ argCount: "0" });
}
if (liberator.has("session"))
{
commands.add(["wqa[ll]", "wq", "xa[ll]"],
"Save the session and quit",
function () { liberator.quit(true); },

View File

@@ -32,7 +32,7 @@ const config = { //{{{
hostApplication: "Firefox",
/*** optional options, there are checked for existence and a fallback provided ***/
features: ["bookmarks", "hints", "history", "marks", "quickmarks", "session", "tabs", "windows"],
features: ["bookmarks", "hints", "history", "marks", "quickmarks", "session", "tabs", "tabUndo", "windows"],
defaults: {
guioptions: "rb",
showtabline: 2,