1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:47:58 +01:00

remove preload option

This commit is contained in:
Martin Stubenschrott
2009-04-30 08:47:48 +02:00
parent 324597c8a7
commit cb74c7f40c
10 changed files with 11 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ Continuous donations:
* Daniel Bainton (web hosting) * Daniel Bainton (web hosting)
2009: 2009:
* Pixel G
* Joel Rosario * Joel Rosario
* Alvaro Novo * Alvaro Novo
* Robert Heckel * Robert Heckel

View File

@@ -1,9 +1,13 @@
2009-XX-XX: 2009-XX-XX:
* version 2.1 (probably) * version 2.1
* massively speed up :open completions
* TabMixPlus (and other tab extensions) should work much better now
together with vimperator unless you :set guioptions+=[nN]
* remove 'preload' option. You can fake it by some custom javascript in your init file
* add 'encoding' * add 'encoding'
* add 'hintinputs' * add 'hintinputs'
* add :silent * add :silent
* add $MY_VIMPERATORRC * add $MY_VIMPERATORRC // TODO: I still don't like this --mst
* add ' and " local marks * add ' and " local marks
* add "w" and "W" Normal mode mappings for symmetry with o/O and t/T * add "w" and "W" Normal mode mappings for symmetry with o/O and t/T
* add :messclear * add :messclear

View File

@@ -133,6 +133,8 @@ function Bookmarks() //{{{
return root; return root;
} }
// since we don't use a threaded bookmark loading (by set preload)
// anymore, is this loading synchronization still needed? --mst
let loading = false; let loading = false;
this.load = function load() this.load = function load()
{ {
@@ -247,15 +249,6 @@ function Bookmarks() //{{{
var cache = storage.newObject("bookmark-cache", Cache, false); var cache = storage.newObject("bookmark-cache", Cache, false);
storage.addObserver("bookmark-cache", bookmarkObserver, window); storage.addObserver("bookmark-cache", bookmarkObserver, window);
liberator.registerObserver("enter", function () {
if (options["preload"])
{
// Forces a load, if not already loaded but wait 10sec
// so most tabs should be restored and the CPU should be idle again usually
setTimeout(function () { liberator.callFunctionInThread(null, function () cache.bookmarks); }, 10000);
}
});
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// OPTIONS ///////////////////////////////////////////////// ////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
@@ -272,10 +265,6 @@ function Bookmarks() //{{{
validator: Option.validateCompleter validator: Option.validateCompleter
}); });
options.add(["preload"],
"Speed up first time history/bookmark completion",
"boolean", true);
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS //////////////////////////////////////////////// ////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{

View File

@@ -57,7 +57,7 @@ syn match vimperatorOption "\<\%(no\|inv\)\=\%(errorbells\|eb\|exrc\|ex\|focusco
\ contained nextgroup=vimperatorSetMod \ contained nextgroup=vimperatorSetMod
syn match vimperatorOption "\<\%(no\|inv\)\=\%(incsearch\|is\|insertmode\|im\|hlsearch\|hls\|linksearch\|lks\)\>!\=" syn match vimperatorOption "\<\%(no\|inv\)\=\%(incsearch\|is\|insertmode\|im\|hlsearch\|hls\|linksearch\|lks\)\>!\="
\ contained nextgroup=vimperatorSetMod \ contained nextgroup=vimperatorSetMod
syn match vimperatorOption "\<\%(no\|inv\)\=\%(loadplugins\|lpl\|more\|online\|preload\|showmode\|smd\|smartcase\|scs\)\>!\=" syn match vimperatorOption "\<\%(no\|inv\)\=\%(loadplugins\|lpl\|more\|online\|showmode\|smd\|smartcase\|scs\)\>!\="
\ contained nextgroup=vimperatorSetMod \ contained nextgroup=vimperatorSetMod
syn match vimperatorOption "\<\%(no\|inv\)\=\%(online\|visualbell\|vb\|usermode\|um\)\>!\=" syn match vimperatorOption "\<\%(no\|inv\)\=\%(online\|visualbell\|vb\|usermode\|um\)\>!\="
\ contained nextgroup=vimperatorSetMod \ contained nextgroup=vimperatorSetMod

View File

@@ -296,7 +296,6 @@ section:Options[option-index]
||'online'|| Set the \'work offline' option + ||'online'|| Set the \'work offline' option +
||'pageinfo'|| Desired info on [c]:pa[geinfo][c] + ||'pageinfo'|| Desired info on [c]:pa[geinfo][c] +
||'popups'|| Where to show requested popup windows + ||'popups'|| Where to show requested popup windows +
||'preload'|| Speed up first time history/bookmark completion +
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence + ||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
||'runtimepath'|| List of directories searched for runtime files + ||'runtimepath'|| List of directories searched for runtime files +
||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands + ||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands +

View File

@@ -600,18 +600,6 @@ Note: This option does not change the popup blocker of Firefox in any way.
____ ____
|\'nopreload'| |\'preload'|
||'preload' 'nopreload'|| boolean (default: on)
____
Speed up first time history/bookmark completion.
History access can be quite slow for a large history. Vimperator
maintains a cache to speed it up significantly on subsequent access. In
order to also speed up first time access, it is cached at startup if
this option is set (recommended).
____
|\'previouspattern'| |\'previouspattern'|
||'previouspattern'|| stringlist ||'previouspattern'|| stringlist
____ ____

View File

@@ -247,15 +247,6 @@ function Bookmarks() //{{{
var cache = storage.newObject("bookmark-cache", Cache, false); var cache = storage.newObject("bookmark-cache", Cache, false);
storage.addObserver("bookmark-cache", bookmarkObserver, window); storage.addObserver("bookmark-cache", bookmarkObserver, window);
liberator.registerObserver("enter", function () {
if (options["preload"])
{
// Forces a load, if not already loaded but wait 10sec
// so most tabs should be restored and the CPU should be idle again usually
setTimeout(function () { liberator.callFunctionInThread(null, function () cache.bookmarks); }, 10000);
}
});
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// OPTIONS ///////////////////////////////////////////////// ////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
@@ -272,10 +263,6 @@ function Bookmarks() //{{{
validator: Option.validateCompleter validator: Option.validateCompleter
}); });
options.add(["preload"],
"Speed up first time history/bookmark completion",
"boolean", true);
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS //////////////////////////////////////////////// ////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{

View File

@@ -59,7 +59,7 @@ syn match xulmusOption "\<\%(no\|inv\)\=\%(errorbells\|eb\|exrc\|ex\|focusconten
\ contained nextgroup=xulmusSetMod \ contained nextgroup=xulmusSetMod
syn match xulmusOption "\<\%(no\|inv\)\=\%(incsearch\|is\|insertmode\|im\|hlsearch\|hls\|linksearch\|lks\)\>!\=" syn match xulmusOption "\<\%(no\|inv\)\=\%(incsearch\|is\|insertmode\|im\|hlsearch\|hls\|linksearch\|lks\)\>!\="
\ contained nextgroup=xulmusSetMod \ contained nextgroup=xulmusSetMod
syn match xulmusOption "\<\%(no\|inv\)\=\%(loadplugins\|lpl\|more\|online\|preload\|showmode\|smd\|smartcase\|scs\)\>!\=" syn match xulmusOption "\<\%(no\|inv\)\=\%(loadplugins\|lpl\|more\|online\|showmode\|smd\|smartcase\|scs\)\>!\="
\ contained nextgroup=xulmusSetMod \ contained nextgroup=xulmusSetMod
syn match xulmusOption "\<\%(no\|inv\)\=\%(online\|visualbell\|vb\|usermode\|um\)\>!\=" syn match xulmusOption "\<\%(no\|inv\)\=\%(online\|visualbell\|vb\|usermode\|um\)\>!\="
\ contained nextgroup=xulmusSetMod \ contained nextgroup=xulmusSetMod

View File

@@ -338,7 +338,6 @@ section:Options[option-index]
||'online'|| Set the \'work offline' option + ||'online'|| Set the \'work offline' option +
||'pageinfo'|| Desired info on [c]:pa[geinfo][c] + ||'pageinfo'|| Desired info on [c]:pa[geinfo][c] +
||'popups'|| Where to show requested popup windows + ||'popups'|| Where to show requested popup windows +
||'preload'|| Speed up first time history/bookmark completion +
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence + ||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
||'repeat'|| Set the playback repeat mode + ||'repeat'|| Set the playback repeat mode +
||'runtimepath'|| List of directories searched for runtime files + ||'runtimepath'|| List of directories searched for runtime files +

View File

@@ -572,18 +572,6 @@ Note: This option does not change the popup blocker of Songbird in any way.
____ ____
|\'nopreload'| |\'preload'|
||'preload' 'nopreload'|| boolean (default: on)
____
Speed up first time history/bookmark completion
History access can be quite slow for a large history. Xulmus maintains a
cache to speed it up significantly on subsequent access. In order to
also speed up first time access, it is cached at startup if this option
is set (recommended).
____
|\'previouspattern'| |\'previouspattern'|
||'previouspattern'|| stringlist ||'previouspattern'|| stringlist
____ ____