aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
AgeCommit message (Collapse)Author
2015-06-03Fix marks (incl. global marks)...Stephen Blott
Fixes #1712: - Make global marks work. - Add mode indicator. - Don't fail for global marks on background page if mark is not set. - Give HUD warning for global marks if global mark is not set. (The diff is big but, which the exception of infrastructure refactoring, the main change is to not exit on <Shift>, thereby fixing #1712).
2015-06-03Only offer suggestions from the current custom search engine.Stephen Blott
When the user changes custom search engine during a single vomnibar activation, we should only offer suggestions which match the current search engine (not the previous one). We now do this not just by checking that the suggestion is a custom search suggestion, but by checking that the actual search URL matches.
2015-06-02De-duplicate Google Maps URLs in vomnibar.Stephen Blott
In Google Maps, we get a new history entry for every pan and every zoom. This removes such duplicates.
2015-06-01Re-work unified settings.Stephen Blott
This is a minor re-working of #1705 from @mrmr1993. The main changes are: - Simplify initialisation logic. - Always initialise Settings immediately and automatically (ie. don't initialise Settings separately and manually in the background, content scripts, options and tests). - Get rid of addEventListener (it's only being used for on "load"). - Add Settings.use() in its place.
2015-05-31Remove code supporting the former settings port from the frontendmrmr1993
2015-05-31Tweak Google Maps URL.Stephen Blott
Conflicts: misc/completion_engines/completion_engines.md
2015-05-31Fix completion engine regular expressions.Stephen Blott
We need to use "\\." to get a literal ".".
2015-05-31Merge pull request #1675 from smblott-github/map-space-keyStephen Blott
Allowing mapping <space>.
2015-05-31Merge pull request #1700 from smblott-github/help-page-vomnibar-commandsStephen Blott
Move Vomnibar commands to own category on help page.
2015-05-31Merge pull request #1697 from smblott-github/vomnibar-map-with-prepopulated-textStephen Blott
Direct keyboard access to custom-search engines via keyword flag
2015-05-30Search completion; refactor regexp parsing (simplification).Stephen Blott
2015-05-30Search completion; simplify completion-engine definitions.Stephen Blott
2015-05-30Search completion; remove unused code.Stephen Blott
This removes a couple of lines which should have been removed previously.
2015-05-30Search completion; add support for Google Maps completion.Stephen Blott
2015-05-30Move Vomnibar commands to own category on help page.Stephen Blott
The help page gets pretty lopsided when advanced commands are shown. This balances things out a bit by creating a new category for Vomnibar commands in the right-hand column.
2015-05-30Use the term "options" instead of "flags" for command options.Stephen Blott
"Flags" implies binary toggles. The term "options" seems more consistent with what's actually going on here.
2015-05-29Move search-engine parsing to Utils.Stephen Blott
This will allow us to use the same search-engine parsing code in the background page and in content scripts.
2015-05-29Move settings.coffee from background_scripts/ to lib/mrmr1993
2015-05-29Only perform settings migration in the background pagemrmr1993
2015-05-29Move registration of postUpdateHooks to the corresponding source filesmrmr1993
This completely decouples settings.coffee from all other background source files, so that it can (eventually) also be used in the frontend.
2015-05-29Remove all direct calls to Sync, stop exporting itmrmr1993
This stops Sync from being referred to from anywhere except settings.coffee and settings_test.coffee.
2015-05-29Move Sync.storeAndPropagate to Settings.storeAndPropagatemrmr1993
This function does nothing related to Sync, and only affects Settings.
2015-05-29Combine sync.coffee with settings.coffeemrmr1993
2015-05-29Pass command's registry entry to content script.Stephen Blott
2015-05-29Rework parsing of custom key mappings.Stephen Blott
Most of this is just a tidy up of code that's been around for a long time. The only difference, however, is that now a key mapping can include extra data ("extras") after the name of the command. For example, map s vomnibar.activate keyword=g Here, and extra property "extras" is added to the command registry: extras: ["keyword=g"] This is a first step towards direct vomnibar activation for custom search.
2015-05-29Merge branch 'completion-on-custom-search-only' into ↵Stephen Blott
completion-on-custom-search-only-merge Conflicts: background_scripts/completion.coffee
2015-05-28Custom-only: fix long-standing race condition.Stephen Blott
In omni mode, the vomnibar suggestions are updated asynchronously. Therefore, the contents of the primary custom search-engine suggestion may be behind the actual contents of the comnibar input. So, we reconstruct the custom search-engine query on "enter". (This fixes a long-standing race condition.)
2015-05-28Custom-only: remove now unnecessary optimisation.Stephen Blott
This optimisation is now unnecessary, because we will *always* show at least one completion suggestion in top spot.
2015-05-28Custom-only: ensure top-ranking completion is always in top slot.Stephen Blott
This ensures that <Tab> can always be used to complete the top-ranking completion.
2015-05-28Custom-only: remove omniSearchWeightOption.Stephen Blott
This option is no longer needed, since we don't do search completion except for custom searches.
2015-05-28Custom-only: strip non-custom search code.Stephen Blott
2015-05-27Remove unintentionally pushed console.log()s.Stephen Blott
2015-05-27Consistent highlighting of search suggestions.Stephen Blott
Also suppress highlighting of matching text in previous suggestions. (It looks odd to have highlighting in some suggestions but not others, with no apparent difference to the user.)
2015-05-27Fix significant typo.Stephen Blott
Fix incorrect property name from 764d70312f292882abe4940adf9fee3d6e834327.
2015-05-27Merge pull request #1690 from smblott-github/do-not-deduplicate-tabsStephen Blott
Two errors fixed...
2015-05-27Simplify index calculation.Stephen Blott
2015-05-27Do not de-duplicate tabs vomnibar entries.Stephen Blott
2015-05-27Go directly to next/previous tab.Stephen Blott
This makes nextTab and previousTab go directly to the relevant tab, without visiting intervening tabs -- all of which avoids a nasty flicker for 5J or 5K.
2015-05-27Custom-only: fix comment.Stephen Blott
2015-05-27Custom-only: verify match on query terms alone.Stephen Blott
2015-05-27Custom-only: single-line completions for custom search engines.Stephen Blott
2015-05-27Custom-only: always filter for the custom search engine.Stephen Blott
2015-05-27Custom-only: disable default search completion.Stephen Blott
2015-05-26Change vomnibar insert-text indicator.Stephen Blott
Use a rightwards hooked arrow instead of a small greater-than sign, which according to @philc, renders as a large greater-than sign on Macs, See #1651.
2015-05-21Search completion; must return an array from this filter.Stephen Blott
2015-05-20Allowing mapping <space>.Stephen Blott
Fixes #544. Copy of #655.
2015-05-20Search completion; tweak appearance of historical search queries (descriptions).Stephen Blott
2015-05-19Search completion; minor code review.Stephen Blott
2015-05-19Add insertText visual indicator.Stephen Blott
Conflicts: background_scripts/completion.coffee
2015-05-19Search completion; tweak appearance of historical search queries.Stephen Blott