diff --git a/TODO b/TODO index 8dd54326..d79e120d 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,5 @@ -
 Priority list:
-1-9 as in Vim (9=required for next release, 5=would be nice, 1=probably not)
+1-9 as in Vim (9 = required for next release, 5 = would be nice, 1 = probably not)
 
 BUGS:
 - add window resize support to hints
@@ -23,6 +22,7 @@ BUGS:
 - :set! browser.urlbar.clickSelectsAll=true -> clicking in the location bar unfocuses it immediately
 - http://apcmag.com/why_os_x_106_snow_leopard_should_leave_powerpc_in_the_cold.htm - scrolls the wrong
   window with j/k (the green slashdot thing for me).
+- http://cgiirc.blitzed.org?chan=%23debug is unusable after login in
 
 (recent CVS regressions):
 - A cached "awesomebar completion" result is still displayed, after the user removes "l" from the 'cpt' and
@@ -34,6 +34,7 @@ BUGS:
   :b a  changes the (Untitled) title to "about:blank"
 - visual caret mode is broken
 - Tabbing between form elems triggers NORMAL mode
+- :bmarks, :hs output and 'cpt'=bh completions are broken
 
 FEATURES:
 9 adaptive timeout for auto-completions, :set completions can be updated more often than
@@ -87,4 +88,3 @@ FEATURES:
 
 RANDOM IDEAS:
 * hide scrollbars: (window.content.document.body.style.overflow = "hidden" has problems with the mouse wheel)
-
diff --git a/content/completion.js b/content/completion.js index 95512bed..7c40c5e8 100644 --- a/content/completion.js +++ b/content/completion.js @@ -58,6 +58,11 @@ function Completion() //{{{ var completionCache = []; var historyTimer = new util.Timer(50, 100, function histTimer() { + // don't set all completions again every time the timer fires, even + // though items might not have changed + if (historyCache.length == historyResult.matchCount) + return; + let comp = []; for (let i in util.range(0, historyResult.matchCount)) comp.push([historyResult.getValueAt(i), @@ -66,8 +71,9 @@ function Completion() //{{{ //let foo = ["", "IGNORED", "FAILURE", "NOMATCH", "SUCCESS", "NOMATCH_ONGOING", "SUCCESS_ONGOING"]; + // TODO: we need to have a "completionCacheAfter" to allow cpt=slf historyCache = comp; - commandline.setCompletions({ get completions() { return completionCache.concat(historyCache); } }); + commandline.setCompletions({ get items() { return completionCache.concat(historyCache); } }); }); function Javascript() @@ -807,7 +813,7 @@ function Completion() //{{{ { return { start: 0, - get completions() { return bookmarks.get(filter) }, + get items() { return bookmarks.get(filter) }, createRow: function (item)