From 7c2755bcd67968f9646ac3b79432bf45da349246 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Wed, 25 Jan 2012 17:58:06 +0100 Subject: sort history by last visit time and raise number of history items to be searched --- background_page.html | 3 +-- fuzzyMode.js | 2 +- 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') -- cgit v1.2.3