mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 04:32:26 +01:00
add 'errorbells'
This commit is contained in:
1
NEWS
1
NEWS
@@ -11,6 +11,7 @@
|
|||||||
special versions for the old behavior
|
special versions for the old behavior
|
||||||
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
||||||
VimperatorLeave respectively
|
VimperatorLeave respectively
|
||||||
|
* add 'errorbells'
|
||||||
* add shell command completion for :!
|
* add shell command completion for :!
|
||||||
* add :map <silent> to prevent a mapping from being echoed
|
* add :map <silent> to prevent a mapping from being echoed
|
||||||
* add guioptions=nN to number tabs
|
* add guioptions=nN to number tabs
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ const liberator = (function () //{{{
|
|||||||
// Only general options are added here, which are valid for all vimperator like extensions
|
// Only general options are added here, which are valid for all vimperator like extensions
|
||||||
function addOptions()
|
function addOptions()
|
||||||
{
|
{
|
||||||
|
options.add(["errorbells", "eb"],
|
||||||
|
"Ring the bell when an error message is displayed",
|
||||||
|
"boolean", false);
|
||||||
|
|
||||||
const tabopts = [
|
const tabopts = [
|
||||||
["n", "Tab number", null, ".hl-TabNumber"],
|
["n", "Tab number", null, ".hl-TabNumber"],
|
||||||
["N", "Tab number over icon", null, ".hl-TabIconNumber"],
|
["N", "Tab number over icon", null, ".hl-TabIconNumber"],
|
||||||
@@ -606,6 +610,7 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
beep: function ()
|
beep: function ()
|
||||||
{
|
{
|
||||||
|
// FIXME: popups clear the command-line
|
||||||
if (options["visualbell"])
|
if (options["visualbell"])
|
||||||
{
|
{
|
||||||
// flash the visual bell
|
// flash the visual bell
|
||||||
@@ -825,6 +830,9 @@ const liberator = (function () //{{{
|
|||||||
else if (str instanceof Error)
|
else if (str instanceof Error)
|
||||||
str = str.fileName + ":" + str.lineNumber + ": " + str;
|
str = str.fileName + ":" + str.lineNumber + ": " + str;
|
||||||
|
|
||||||
|
if (options["errorbells"])
|
||||||
|
liberator.beep();
|
||||||
|
|
||||||
commandline.echo(str, commandline.HL_ERRORMSG, flags);
|
commandline.echo(str, commandline.HL_ERRORMSG, flags);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -840,7 +848,7 @@ const liberator = (function () //{{{
|
|||||||
commandline.echo(str, commandline.HL_INFOMSG, flags);
|
commandline.echo(str, commandline.HL_INFOMSG, flags);
|
||||||
},
|
},
|
||||||
|
|
||||||
// return true, if this VIM-like extension has a certain feature
|
// return true, if this liberator extension has a certain feature
|
||||||
has: function (feature)
|
has: function (feature)
|
||||||
{
|
{
|
||||||
var features = config.features || [];
|
var features = config.features || [];
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ section:Options[option-index]
|
|||||||
||'defsearch'|| Set the default search engine +
|
||'defsearch'|| Set the default search engine +
|
||||||
||'disabledcssheets'|| Set disabled CSS stylesheets +
|
||'disabledcssheets'|| Set disabled CSS stylesheets +
|
||||||
||'editor'|| Set the external text editor +
|
||'editor'|| Set the external text editor +
|
||||||
|
||'errorbells'|| Ring the bell when an error message is displayed +
|
||||||
||'eventignore'|| List of autocommand event names which should be ignored +
|
||'eventignore'|| List of autocommand event names which should be ignored +
|
||||||
||'extendedhinttags'|| XPath string of hintable elements activated by ';' +
|
||'extendedhinttags'|| XPath string of hintable elements activated by ';' +
|
||||||
||'fileencoding'|| set the charactor encoding for the current page +
|
||'fileencoding'|| set the charactor encoding for the current page +
|
||||||
|
|||||||
@@ -282,6 +282,13 @@ The XPath string of hintable elements activated by [m];[m].
|
|||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
|
|\'noeb'| |\'noerrorbells'| |\'eb'| |\'errorbells'|
|
||||||
|
||'errorbells' 'eb'|| boolean (default: off)
|
||||||
|
____
|
||||||
|
Ring the bell when an error message is displayed.
|
||||||
|
____
|
||||||
|
|
||||||
|
|
||||||
|\'ei'| |\'eventignore'|
|
|\'ei'| |\'eventignore'|
|
||||||
||'eventignore'|| stringlist (default: "")
|
||'eventignore'|| stringlist (default: "")
|
||||||
____
|
____
|
||||||
|
|||||||
Reference in New Issue
Block a user