mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:57:58 +01:00
add a new 'visualbellstyle' option
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,6 +1,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2007-XX-XX:
|
2007-XX-XX:
|
||||||
* version 0.5.2
|
* version 0.5.2
|
||||||
|
* added 'visualbellstyle' for styling/hiding the visual bell
|
||||||
* :buffer partial_string works now as in vim, and with ! even better
|
* :buffer partial_string works now as in vim, and with ! even better
|
||||||
* merge the existing status bar with the standard FF status bar so that
|
* merge the existing status bar with the standard FF status bar so that
|
||||||
security information and extension buttons are included
|
security information and extension buttons are included
|
||||||
|
|||||||
@@ -172,10 +172,6 @@ statusbarpanel {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vimperator-visualbell {
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.status_insecure, .status_insecure * {
|
.status_insecure, .status_insecure * {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ function Options() //{{{
|
|||||||
"<li><b>b</b>: Bookmarks</li>" +
|
"<li><b>b</b>: Bookmarks</li>" +
|
||||||
"<li><b>h</b>: History</li></ul>" +
|
"<li><b>h</b>: History</li></ul>" +
|
||||||
"The order is important, so <code class=\"command\">:set complete=bs</code> would list bookmarks first, and then any available quick searches.<br/>" +
|
"The order is important, so <code class=\"command\">:set complete=bs</code> would list bookmarks first, and then any available quick searches.<br/>" +
|
||||||
"Add 'sort' to the <code class=\"option\">'wildoptions'</code> option if you want all entries sorted.",
|
"Add <code class=\"option\">'sort'</code> to the <code class=\"option\">'wildoptions'</code> option if you want all entries sorted.",
|
||||||
default_value: "sfbh",
|
default_value: "sfbh",
|
||||||
validator: function (value) { if (/[^sfbh]/.test(value)) return false; else return true; }
|
validator: function (value) { if (/[^sfbh]/.test(value)) return false; else return true; }
|
||||||
}
|
}
|
||||||
@@ -595,6 +595,14 @@ function Options() //{{{
|
|||||||
default_value: false
|
default_value: false
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
addOption(new Option(["visualbellstyle"], "string",
|
||||||
|
{
|
||||||
|
short_help: "CSS specification of the visual bell",
|
||||||
|
help: "To hide the visual bell use a value of \"display: none;\".",
|
||||||
|
setter: function(value) { if (!value) value = "display: none;"; Options.setPref("visualbellstyle", value); },
|
||||||
|
default_value: "background-color: black; color: black;"
|
||||||
|
}
|
||||||
|
));
|
||||||
addOption(new Option(["wildmode", "wim"], "stringlist",
|
addOption(new Option(["wildmode", "wim"], "stringlist",
|
||||||
{
|
{
|
||||||
short_help: "Define how command line completion works",
|
short_help: "Define how command line completion works",
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ const vimperator = (function() //{{{
|
|||||||
var vbell = document.getElementById("vimperator-visualbell");
|
var vbell = document.getElementById("vimperator-visualbell");
|
||||||
var box = getBrowser().mPanelContainer.boxObject;
|
var box = getBrowser().mPanelContainer.boxObject;
|
||||||
|
|
||||||
|
vbell.style.cssText = vimperator.options["visualbellstyle"];
|
||||||
vbell.style.position = "fixed";
|
vbell.style.position = "fixed";
|
||||||
vbell.style.height = box.height + "px";
|
vbell.style.height = box.height + "px";
|
||||||
vbell.style.width = box.width + "px";
|
vbell.style.width = box.width + "px";
|
||||||
|
|||||||
Reference in New Issue
Block a user