aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-06-09Tweak comments re. keydown versus keypress.Stephen Blott
2015-06-09Only look up linkHintNumbers once.Stephen Blott
2015-06-09Alphabet hints, use keydown for defaults.Stephen Blott
See #1722. When Settings.get("linkHintCharacters") is its default value, this preserves the legacy behaviour of using the keyChar from keydown events for link-hint matching. This admits users using either Latin or non-Latin characters for link hints.
2015-06-08Remove "experimental" comment.Stephen Blott
I think we can safely remove this comment now, @mrmr1993. This is working out very nicely.
2015-06-08Make hint filters classes.Stephen Blott
2015-06-08Refactor to keydown, as required.Stephen Blott
2015-06-07Note keypress bahaviour for link hints in README.Stephen Blott
2015-06-07Exit link-hint mode on click or scroll.Stephen Blott
Exit on click because, if the user is clicking stuff, then they're probably no longer interested in selecting links. Exit on scroll because, if the user is scrolling, then the link hints can all go out of the viewport.
2015-06-07On completion-engines page, put example first.Stephen Blott
On that page, we have regular expressions (which are not new-user friendly) and an example (which is new-user friendly). So the example should come before the regular expressions.
2015-06-07Speed up vomnibar load.Stephen Blott
With #1697, the vomnibar used with a custom-search keyword is not initially empty (it shows the primary suggestion for the custom search engine, even if the query is empty). The way things were structured previously, the user nevertheless had to wait until the history cache (which was not actually required) had been fetched before the vomnibar was updated. This commit just flips things around a bit such that, - onComplete() is called immediately if the history is not actually required, and - the history cache is primed before it is needed, so it will (hopefully) be available before the user's next keystroke. This avoids a noticable delay, particularly on start up and with a large history. (This is part of a sequence of vomnibar UX tweaks.)
2015-06-06Merge branch 'rework-completions'Stephen Blott
Conflicts: background_scripts/completion.coffee background_scripts/completion_engines.coffee
2015-06-06Merge pull request #1715 from smblott-github/help-page-long-bindingsStephen Blott
On the help page, use separate row for very-long bindings.
2015-06-06Re-work completions: only offer actual search URL matches.Stephen Blott
When filter suggestions from other completers, most notably the history completer, we only keep suggestions which match the current searchUrl and completer. Here, we also *replace* the URL of the suggestion. With duplicate elimination, multiple history entries (e.g. those generated with various "Search Tools" settings on Google) will be collapsed to one. This matters because, with custom search engines, we don't show the URL, so the user can't see differences in the URL. Without this, the user can be presented with a list of apparently identical completions.
2015-06-06Re-work completions: extend engine wrapper to handle prefixes.Stephen Blott
This commit contains the bulk og the material changes for which the previous commits established the basis. 1) Add a general framework for detecting query prefixes in search URLs, adding them to query sent to the completion engine, and stripping them from the resulting suggestions. This allows the user to have a search engine... j: http://www.google.com/search?q=javascript+%s Javascript and have the prefix "javascript" included (automatically) in queries sent to completion engines, which results in substantially better suggestions. 2) Re-work completion for Google Maps in a simpler form.
2015-06-06Re-work completions: add engine wrapper.Stephen Blott
2015-06-06Re-work completions: initial refactor.Stephen Blott
The original completion-engine interface was based on three functions. With some experience, it seems there is a pattern involving explicit regular expressions which is used by all actual engine implementations. This is a refactoring to make those regular expressions explicit (and required), and is a first step towards adding additional fucntionality. This also simplifies the completion cache key (use JSON instead of some weird hash).
2015-06-05Tweak README release notes.Stephen Blott
2015-06-05Merge pull request #1716 from smblott-github/global-marksStephen Blott
Improved global marks
2015-06-05Global marks; always treat ` and ' as local marks.Stephen Blott
On some keyboards (who knows?) "`" or "'" could be shift keys. In this case, with the previous implementation, these would be treated as global marks and `` would be unusable. This commit fixes that problem.
2015-06-05Global marks; global marks are always recorded for the top frame only.Stephen Blott
With global marks, we may later create a new tab when the mark is used. When doing so, we should always be using the URL and scroll position of the top frame within the tab. For example, if a global mark is created from within the Hangouts frame of Google's Inbox and the mark is later used, then we should create a new tab for Inbox's URL and scroll position, not for the Hangout's URL and scroll position.
2015-06-05Global marks; fix indentation.Stephen Blott
2015-06-05Use keypress (instead of keydown) for link hint characters.Stephen Blott
This should make link hints usable on non-Latin keyboards (e.g. Russian keyboards). Fixes #1387. (Maybe - because it's not clear from the discussion there exactly what users want.)
2015-06-05Fix event suppression for Marks keyboard events.Stephen Blott
2015-06-04Fix issue with Google-Maps completion failing.Stephen Blott
2015-06-04Unwind passing key and registry entry for marks.Stephen Blott
As suggested by @mrmr1993 in #1716.
2015-06-04Use only ' and ` for jumping to previous position.Stephen Blott
As suggested by @mrmr1993 in #1716.
2015-06-04Global marks; only handle messages in main frame.Stephen Blott
On sites with several frames (e.g. Facebook), if we allow all of the frames to handle the setScrollPosition and showHudForDuration messages, then the focus ends up in an arbitrary frame. And, on Facebook, say, Vimium ends up broken until the focus is returned to the main frame. So, we only handle these messages in the main frame.
2015-06-04Global marks; focus and only scroll in the main frame.Stephen Blott
2015-06-04Global marks; prefer to re-use a tab in the current window.Stephen Blott
2015-06-04Global marks; use chrome.tabs.query.Stephen Blott
(As suggested by @mrmr1993 in #1716.)
2015-06-04Merge branch 'fix-marks-and-add-jump-back-to-previous-position' into ↵Stephen Blott
global-marks
2015-06-04Exit marks modes on escape.Stephen Blott
2015-06-04Global marks; better comments and fix typo.Stephen Blott
2015-06-04Global marks; move marks to chrome.storage.sync.Stephen Blott
2015-06-04Global marks; add note to release notes in README.Stephen Blott
2015-06-04Global marks; better comments and minor refactoring.Stephen Blott
2015-06-04Global marks; create a new tab, if necessary.Stephen Blott
2015-06-04Global marks; find another (existing) tab if tabId has been removed.Stephen Blott
2015-06-04Global marks; move marks to chrome.storage.Stephen Blott
2015-06-04README; tweak release notes.Stephen Blott
2015-06-04Help page, use separate row for long bindings.Stephen Blott
If there are many bindings for a command, then the column layout on the help page can become out of whack. This commit puts such bindings on a separate table row which spans all three columns. (Many bindings for a single command are more likely in light of #1697.)
2015-06-04Completion page; avoid building many separate strings.Stephen Blott
2015-06-03README; correct typo.Stephen Blott
2015-06-03README; correct (syntactically) inacurate informatiom.Stephen Blott
2015-06-03README; correct inacurate informatiom.Stephen Blott
2015-06-03README; improve consistency of Esc usage.Stephen Blott
2015-06-03README layout; avoid horizontal scroll bars.Stephen Blott
2015-06-03Make layout consistent in README commands.Stephen Blott
2015-06-03Modes, better comments.Stephen Blott
2015-06-03Add mark commands to README, more simple refactoring.Stephen Blott