mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 11:15:47 +01:00
More cleanup. Fix some Teledactyl bugginess.
This commit is contained in:
@@ -20,7 +20,7 @@ var CommandWidgets = Class("CommandWidgets", {
|
||||
eventTarget: commandline
|
||||
},
|
||||
append: <e4x xmlns={XUL} xmlns:dactyl={NS}>
|
||||
<vbox id={config.commandContainer}>
|
||||
<vbox id={config.ids.commandContainer}>
|
||||
<vbox class="dactyl-container" hidden="false" collapsed="true">
|
||||
<iframe class="dactyl-completions" id="dactyl-completions-dactyl-commandline" src="dactyl://content/buffer.xhtml"
|
||||
contextmenu="dactyl-contextmenu"
|
||||
|
||||
@@ -1377,7 +1377,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
options.add(["guioptions", "go"],
|
||||
"Show or hide certain GUI elements like the menu or toolbar",
|
||||
"charlist", config.defaults.guioptions || "", {
|
||||
"charlist", "", {
|
||||
|
||||
// FIXME: cleanup
|
||||
cleanupValue: config.cleanups.guioptions ||
|
||||
@@ -1406,7 +1406,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
options.add(["titlestring"],
|
||||
"The string shown at the end of the window title",
|
||||
"string", config.defaults.titlestring || config.host,
|
||||
"string", config.host,
|
||||
{
|
||||
setter: function (value) {
|
||||
let win = document.documentElement;
|
||||
|
||||
@@ -67,7 +67,7 @@ var MOW = Module("mow", {
|
||||
</menupopup>
|
||||
</popupset>
|
||||
</window>
|
||||
<vbox id={config.commandContainer}>
|
||||
<vbox id={config.ids.commandContainer}>
|
||||
<vbox class="dactyl-container" id="dactyl-multiline-output-container" hidden="false" collapsed="true">
|
||||
<iframe id="dactyl-multiline-output" src="dactyl://content/buffer.xhtml"
|
||||
flex="1" hidden="false" collapsed="false" contextmenu="dactyl-contextmenu"
|
||||
|
||||
@@ -23,7 +23,7 @@ var Tabs = Module("tabs", {
|
||||
|
||||
// hide tabs initially to prevent flickering when 'stal' would hide them
|
||||
// on startup
|
||||
if (config.hasTabbrowser)
|
||||
if (config.has("tabbrowser"))
|
||||
config.tabStrip.collapsed = true;
|
||||
|
||||
this.tabStyle = styles.system.add("tab-strip-hiding", config.styleableChrome,
|
||||
@@ -762,7 +762,7 @@ var Tabs = Module("tabs", {
|
||||
function () { tabs.select(0, false); },
|
||||
{ argCount: "0" });
|
||||
|
||||
if (config.hasTabbrowser) {
|
||||
if (config.has("tabbrowser")) {
|
||||
commands.add(["b[uffer]"],
|
||||
"Switch to a buffer",
|
||||
function (args) { tabs.switchTo(args[0], args.bang, args.count); }, {
|
||||
@@ -1014,7 +1014,7 @@ var Tabs = Module("tabs", {
|
||||
function ({ count }) { tabs.select("-" + (count || 1), true); },
|
||||
{ count: true });
|
||||
|
||||
if (config.hasTabbrowser) {
|
||||
if (config.has("tabbrowser")) {
|
||||
mappings.add([modes.NORMAL], ["b"],
|
||||
"Open a prompt to switch buffers",
|
||||
function ({ count }) {
|
||||
@@ -1071,7 +1071,7 @@ var Tabs = Module("tabs", {
|
||||
options: function () {
|
||||
options.add(["showtabline", "stal"],
|
||||
"Define when the tab bar is visible",
|
||||
"string", config.defaults["showtabline"],
|
||||
"string", true,
|
||||
{
|
||||
setter: function (value) {
|
||||
if (value === "never")
|
||||
@@ -1099,7 +1099,7 @@ var Tabs = Module("tabs", {
|
||||
}
|
||||
});
|
||||
|
||||
if (config.hasTabbrowser) {
|
||||
if (config.has("tabbrowser")) {
|
||||
let activateGroups = [
|
||||
["all", "Activate everything"],
|
||||
["addons", ":addo[ns] command"],
|
||||
|
||||
Reference in New Issue
Block a user