1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:12:28 +01:00

Fix some zi/zo issues.

This commit is contained in:
Kris Maglione
2009-03-30 01:16:39 -04:00
parent a8f41faf4e
commit 7e068d4f9e
7 changed files with 40 additions and 71 deletions

View File

@@ -109,14 +109,17 @@ function Tabs() //{{{
// hide tabs initially
if (config.name == "Vimperator")
getBrowser().mStrip.getElementsByClassName("tabbrowser-tabs")[0].collapsed = true;
/*
if (config.name == "Xulmus")
getBrowser()._strip.getElementsByClassName(
*/
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
options.add(["showtabline", "stal"],
"Control when to show the tab bar of opened web pages",
"number", config.optionDefaults['stal'],
"number", config.name == "Vimperator" ? 2 : 0,
{
setter: function (value)
{
@@ -148,7 +151,7 @@ function Tabs() //{{{
validator: Option.validateCompleter
});
if (config.hasTabbrowser)
if (config.name == "Vimperator" || config.name == "Xulmus")
{
options.add(["activate", "act"],
"Define when tabs are automatically activated",
@@ -238,7 +241,7 @@ function Tabs() //{{{
function (count) { tabs.select("-" + (count < 1 ? 1 : count), true); },
{ flags: Mappings.flags.COUNT });
if (config.hasTabbrowser)
if (config.name == "Vimperator" || config.name == "Xulmus")
{
mappings.add([modes.NORMAL], ["b"],
"Open a prompt to switch buffers",
@@ -449,7 +452,7 @@ function Tabs() //{{{
function () { tabs.select(0, false); },
{ argCount: "0" });
if (config.hasTabbrowser)
if (config.name == "Vimperator" || config.name == "Xulmus")
{
// TODO: "Zero count" if 0 specified as arg, multiple args and count ranges?
commands.add(["b[uffer]"],
@@ -584,7 +587,6 @@ function Tabs() //{{{
});
}
/* Why not xulmus? */
if (liberator.has("session") && config.name != "Xulmus")
{
// TODO: extract common functionality of "undoall"