aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-05-13Search completion; rework handling when no selection.Stephen Blott
This makes the behaviour consistent between custom and non-custom searches when there is no selection in the vomnibar (omni-mode only). Approach: - When there is no selection in the vomnibar, we *always* send the query to to background completer (that is, both for default searches and for custom searches) and ask the completer to provide only the primary suggestion. The primary suggestion is just what you get if you append the query terms to the search URL (default or custom). We then immediately open the first response. The round trip for default searches isn't strictly necessary. However, this uniform approach disentangles some nasty logic in the vomnibar when we're trying to handle several cases (default or custom search, with or without prompted text, with or without any suggestions at all). The extra round trip simplifies the logic to such a great extend that it's worth it.
2015-05-13Search completion; minor changes.Stephen Blott
2015-05-13Minor fixes for #1658.Stephen Blott
- Mis-named: "handler" -> "name". - We need to reset the HUD's innerHTML on hide to avoid a flicker when HUD later becomes visible again (but with new text). - There is no longer a need to hide the HUD in order to avoid mathing the text in the HUD itself.
2015-05-13Remove unused styles for the HUDmrmr1993
2015-05-13Move the HUD to an iframe, managed by UIComponentmrmr1993
2015-05-12Rework some aspects of search engine completion.Stephen Blott
- We arrange that: - for custom search engines, or - for other searches where there is at least one match that match is at the top of the list (relevancy 1). This top suggestion will the suggestion which will be used to popuplated the promted text in the vomnibar. If we arrange that it's at the top of the list, then it is also the text that we get in the vomnibar if we hit <Tab>. This leaves us in the position where: - If the user wants just the text they've typed, then they hit <Enter>. - If they want all of the text in the input (including the prompted text), then they hit <Tab>, <Enter>. This is a very natural UX. It feels like <Tab> is filling in the prompted text, although all it's really doing is choosing a suggestion (the first one), as it always has done. There is one small catch. We need to avoid a clash with the domain completer, which also likes to force its suggestion to the top of the list. There's a test for that case. Basically, we can apply this trick if it's a custom search, or if the user has finished typing the first query term.
2015-05-12Prevent immediate re-completionStephen Blott
This prevents an immediate re-completion after the user has repositioned the cursor with the arrow keys (which is an odd UX).
2015-05-12Merge pull request #1657 from smblott-github/vomnibar-action-on-enterStephen Blott
Vomnibar action on enter
2015-05-12Fix bad UX for <Enter> with prompted text.Stephen Blott
The existing behaviour is poor UX. Also, add <Alt-Enter> binding. This is a poor choice. We'll need to think about this.
2015-05-12In vomnibar, <Enter> excludes prompted text.Stephen Blott
This changes the behaviour of <Enter> in the vomnibar when a prompted text is present (i.e. text from a suggestion which the user has not yet typed. Now, that text is no longer included in the query launched with <Enter>. After a little experience, I'd say that's a pretty bad UX. This also adds a <Ctrl-Enter> binding to launch the query with the prompted text included.
2015-05-12Merge pull request #1655 from smblott-github/completion-filtersStephen Blott
Tweak vomnibar for custom search.
2015-05-12Tweak vomnibar for custom search.Stephen Blott
This applies only to custom searches for which we have a completion engine. Status quo: Exclusively offer suggestions generated by this completer. This PR: Also include other suggestions (e.g. history) if their URL and query match this custom search engine.
2015-05-12Fix HUD on options page (temporary fix, v2).Stephen Blott
Alternative to 7004420e178416cc680416091a23dd804fb9370c.
2015-05-12Fix HUD on options page (temporary fix).Stephen Blott
Following on from #1652, vimium was failing to initialize correctly on the options page. Specifically, installListeners() was running before initializeOnDomReady(), hence before HUD.init(). installListeners() runs new GrabBackFocus(), which hides the HUD, which is not yet initialized - so it fails. This is a temporary fix. Could you take a look, @mrmr1993? Perhaps there is a race condition which only arises on the options page. It may be enough to just have HUD.hide() silently pass if @tween is not yet set.
2015-05-12Search completion; simplify engine definitions.Stephen Blott
2015-05-12Update "Release Notes" in README.Stephen Blott
2015-05-12Merge pull request #1652 from mrmr1993/separate-hud-from-frontendStephen Blott
Separate the hud from frontend code and rewrite tween to be more generic
2015-05-11Search completion; fix typos and small bugs.Stephen Blott
Bugs: - The serch-engine completer wasn't being configured correctly for the case when we don't have a completion engine. - Handle Control-Shift-Left/Right in vomnibar. Also: better comments.
2015-05-11Move all HUD .style declarations into vimium.cssmrmr1993
2015-05-11Make HUD less intertwined with Tween, rewrite Tween as more genericmrmr1993
2015-05-11Change HUD. to @ for improved readabilitymrmr1993
2015-05-11Move the HUD to its own filemrmr1993
2015-05-11Search completion; fix relevancy calculation.Stephen Blott
2015-05-11Merge branch 'search-engine-completion-v5'Stephen Blott
2015-05-11Search completion; better left/right controls.Stephen Blott
2015-05-11Search completion; add weigthing option.Stephen Blott
2015-05-11Search completion; add bindings for Ctrl-Left/Right.Stephen Blott
2015-05-11Search completion; pre-merge tweaks.Stephen Blott
2015-05-11Merge branch 'search-engine-completion-v2' into search-engine-completion-v5Stephen Blott
Conflicts: background_scripts/completion.coffee
2015-05-11Search completion; fix synchronization issue.Stephen Blott
2015-05-11Search completion; more efficient filtering.Stephen Blott
2015-05-11Search completion; disable on redundant whitespace.Stephen Blott
2015-05-11Merge branch 'search-engine-completion-v2' into search-engine-completion-v5Stephen Blott
2015-05-11Search completion; disable on redundant whitespace.Stephen Blott
2015-05-11Domain completer should not complete with trailing whitespace.Stephen Blott
2015-05-11Merge pull request #1649 from mrmr1993/css-import-for-shadow-dom-stylesStephen Blott
Use css @import rather than XMLHttpRequest for shadow DOM external style
2015-05-11Merge branch 'search-engine-completion-v2' into search-engine-completion-v5Stephen Blott
2015-05-11Search completion; tweak selection color.Stephen Blott
2015-05-11Use css @import rather than XMLHttpRequest for shadow DOM external stylemrmr1993
2015-05-10Merge pull request #1648 from mrmr1993/better-borderWasStephen Blott
Use classes for border flashes
2015-05-10Fallback to raw element instead of shadow DOM for PhantomJSmrmr1993
2015-05-10Search completion; alternative vomnibar completion.Stephen Blott
2015-05-10Search completion; alternative vomnibar completion.Stephen Blott
2015-05-10Search completion; minor changes to comments.Stephen Blott
2015-05-10Search completion; refactor search-engine detection.Stephen Blott
2015-05-10Merge branch 'search-engine-completion-v2' of ↵Stephen Blott
github.com:smblott-github/vimium into search-engine-completion-v2 Conflicts: pages/vomnibar.coffee
2015-05-10Search completion; and even more minor tweaks.Stephen Blott
2015-05-10Search completion; and even more minor tweaks.Stephen Blott
2015-05-10Search completion; fix for multiple spaces in input.Stephen Blott
2015-05-10Search completion; even more minor tweaks.Stephen Blott