1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-27 17:45:46 +01:00

add 'eventignore' option

This commit is contained in:
Doug Kearns
2008-08-28 13:15:47 +00:00
parent 61d29dc6be
commit 3a468168c7
4 changed files with 28 additions and 8 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
<pre> <pre>
2008-08-16: 2008-08-16:
* version 2.0 (probably) * version 2.0 (probably)
* add 'eventignore' option
* add :tabdetach command * add :tabdetach command
* new ;b extended hint mode (thanks Daniel Schaffrath) * new ;b extended hint mode (thanks Daniel Schaffrath)
* many bug fixes * many bug fixes

View File

@@ -46,6 +46,10 @@ liberator.AutoCommands = function () //{{{
////////////////////// OPTIONS ///////////////////////////////////////////////// ////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
liberator.options.add(["eventignore", "ei"],
"List of autocommand event names which should be ignored",
"stringlist", "");
liberator.options.add(["focuscontent", "fc"], liberator.options.add(["focuscontent", "fc"],
"Try to stay in normal mode after loading a web page", "Try to stay in normal mode after loading a web page",
"boolean", false); "boolean", false);
@@ -220,6 +224,13 @@ liberator.AutoCommands = function () //{{{
trigger: function (auEvent, url) trigger: function (auEvent, url)
{ {
if (liberator.options["eventignore"].split(",").some(function (event) {
return event == "all" || event == auEvent;
}))
{
return;
}
if (autoCommands[auEvent]) if (autoCommands[auEvent])
{ {
for (var i = 0; i < autoCommands[auEvent].length; i++) for (var i = 0; i < autoCommands[auEvent].length; i++)

View File

@@ -245,6 +245,14 @@ The XPath string of hintable elements activated by [m];[m].
____ ____
|\'ei'| |\'eventignore'|
||'eventignore'|| stringlist (default: "")
____
A list of autocommand event names which should be ignored. If the list contains
the value "all" then all events are ignored.
____
|\'nofc'| |\'nofocuscontent'| |\'fc'| |\'focuscontent'| |\'nofc'| |\'nofocuscontent'| |\'fc'| |\'focuscontent'|
||'focuscontent' 'fc'|| boolean (default: off) ||'focuscontent' 'fc'|| boolean (default: off)
____ ____

View File

@@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: VIMperator configuration file " Language: VIMperator configuration file
" Maintainer: Doug Kearns <dougkearns@gmail.com> " Maintainer: Doug Kearns <dougkearns@gmail.com>
" Latest Revision: 2008 August 19 " Last Change: 2008 Aug 28
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
@@ -40,13 +40,13 @@ syn match vimperatorCommandWrapper "\%(^\s*:\=\)\@<=\%(!\|\h\w*\>\)" contains=vi
syn region vimperatorSet matchgroup=vimperatorCommand start="\%(^\s*:\=\)\@<=\<set\=\>" end="$" keepend oneline contains=vimperatorOption syn region vimperatorSet matchgroup=vimperatorCommand start="\%(^\s*:\=\)\@<=\<set\=\>" end="$" keepend oneline contains=vimperatorOption
syn keyword vimperatorOption activate act activelinkfgcolor alfc activelinkbgcolor albc complete cpt defsearch ds editor syn keyword vimperatorOption activate act activelinkfgcolor alfc activelinkbgcolor albc complete cpt defsearch ds editor
\ extendedhinttags eht focuscontent fc nofocuscontent nofc fullscreen fs nofullscreen nofs guioptions go hintmatching hm \ extendedhinttags eht eventignore ei focuscontent fc nofocuscontent nofc fullscreen fs nofullscreen nofs guioptions go
\ hintstyle hs hinttags ht hinttimeout hto history hi hlsearch hls nohlsearch nohls hlsearchstyle hlss incsearch is \ hintmatching hm hintstyle hs hinttags ht hinttimeout hto history hi hlsearch hls nohlsearch nohls hlsearchstyle hlss
\ noincsearch nois ignorecase ic noignorecase noic insertmode im noinsertmode noim laststatus ls linkbgcolor lbc linkfgcolor \ incsearch is noincsearch nois ignorecase ic noignorecase noic insertmode im noinsertmode noim laststatus ls linkbgcolor lbc
\ lfc linksearch lks nolinksearch nolks more newtab nextpattern nomore pageinfo pa popups pps preload nopreload previewheight \ linkfgcolor lfc linksearch lks nolinksearch nolks more newtab nextpattern nomore pageinfo pa popups pps preload nopreload
\ pvh previouspattern online noonline scroll scr shell sh shellcmdflag shcf showmode smd noshowmode nosmd showstatuslinks ssli \ previewheight pvh previouspattern online noonline scroll scr shell sh shellcmdflag shcf showmode smd noshowmode nosmd
\ showtabline stal smartcase scs nosmartcase noscs suggestengines titlestring usermode um nousermode noum urlseparator verbose \ showstatuslinks ssli showtabline stal smartcase scs nosmartcase noscs suggestengines titlestring usermode um nousermode noum
\ vbs visualbell vb novisualbell novb visualbellstyle wildmode wim wildoptions wop wordseparators wsp \ urlseparator verbose vbs visualbell vb novisualbell novb visualbellstyle wildmode wim wildoptions wop wordseparators wsp
\ contained \ contained
syn region vimperatorJavascript start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=" end="$" contains=@javascriptTop keepend oneline syn region vimperatorJavascript start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=" end="$" contains=@javascriptTop keepend oneline