aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Baumstark2012-01-25 17:58:06 +0100
committerNiklas Baumstark2012-04-10 23:58:08 +0200
commit7c2755bcd67968f9646ac3b79432bf45da349246 (patch)
tree2514245a1058e387a0b78cd8744ec7b54d8764a7
parent76b981c5a3195eac12054afe2534645cd7610d30 (diff)
downloadvimium-7c2755bcd67968f9646ac3b79432bf45da349246.tar.bz2
sort history by last visit time and raise number of history items to be searched
-rw-r--r--background_page.html3
-rw-r--r--fuzzyMode.js2
2 files changed, 2 insertions, 3 deletions
diff --git a/background_page.html b/background_page.html
index e248043c..b6b72406 100644
--- a/background_page.html
+++ b/background_page.html
@@ -322,8 +322,7 @@
}, function(history) {
// sorting in ascending order, so we can push new items to the end later
history.sort(function(a, b) {
- // visitCount may be undefined
- return (a.visitCount || 0) - (b.visitCount || 0);
+ return (a.lastVisitTime|| 0) - (b.lastVisitTime || 0);
});
cachedHistory = history;
callback(cachedHistory);
diff --git a/fuzzyMode.js b/fuzzyMode.js
index 29268505..cbefcde4 100644
--- a/fuzzyMode.js
+++ b/fuzzyMode.js
@@ -12,7 +12,7 @@ var fuzzyMode = (function() {
'?' : [ 'search', function(query) { return utils.createSearchUrl(query) } ],
});
else if (name === 'history')
- return new completion.FuzzyHistoryCompleter(1500);
+ return new completion.FuzzyHistoryCompleter(2000);
else if (name === 'bookmarks')
return new completion.FuzzyBookmarkCompleter();
else if (name === 'tabs')