diff options
| author | Stephen Blott | 2012-11-11 22:15:10 +0000 |
|---|---|---|
| committer | Stephen Blott | 2012-11-11 22:15:10 +0000 |
| commit | c44f0217fbfc4df1ac6bffea4a07abe3930e634e (patch) | |
| tree | 62355310973ab50f8d5f88d002e4dc57fe7622d6 /background_scripts/completion.coffee | |
| parent | cf757fc841c6b97a8341472bd15bdc95c527babc (diff) | |
| download | vimium-c44f0217fbfc4df1ac6bffea4a07abe3930e634e.tar.bz2 | |
Changes in responce to philc's recommendations.
See: https://github.com/philc/vimium/pull/715
Diffstat (limited to 'background_scripts/completion.coffee')
| -rw-r--r-- | background_scripts/completion.coffee | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 08c33430..13e700d8 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -169,7 +169,11 @@ class HistoryCompleter # The domain completer is designed to match a single-word query which looks like it is a domain. This supports # the user experience where they quickly type a partial domain, hit tab -> enter, and expect to arrive there. class DomainCompleter - domains: null # A map of domain -> { entry: <historyEntry>, referenceCount: <count> } + # A map of domain -> { entry: <historyEntry>, referenceCount: <count> } + # - `entry` is the most recently accessed page in the History within this domain. + # - `referenceCount` is a count of the number of History entries within this domain. + # If `referenceCount` goes to zero, the domain entry can and should be deleted. + domains: null filter: (queryTerms, onComplete) -> return onComplete([]) if queryTerms.length > 1 |
