aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
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-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-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-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-04Exit marks modes on escape.Stephen Blott
2015-06-03Modes, better comments.Stephen Blott
2015-06-03Add mark commands to README, more simple refactoring.Stephen Blott
2015-06-03Add mark commands to README, simple refactoring.Stephen Blott
2015-06-03Refactor (to setPreviousPosition) to clarify Marks logic.Stephen Blott
2015-06-03Also set previous position for before global mark movement.Stephen Blott
2015-06-03Re-implement Marks, incl `` binding.Stephen Blott
2015-06-03Fix tests for #1713...Stephen Blott
... which is weird, because the tests are passing here. Let's see what Travis makes of this.
2015-06-03Refactor to avoid having to cover all keyboard event cases.Stephen Blott
It's pretty common that we want to suppress all keyboard events, so let's support that in modes.coffee, thereby simplifying handlers elsewhere.
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-01Merge branch 'unified-settings-implementation'Stephen Blott
2015-06-01Remove LinkHints.init()...Stephen Blott
LinkHints.init() isn't doing anything.
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-31Update the comment by the settings object in the frontendmrmr1993
2015-05-31Remove all remaining references to frontend settingsmrmr1993
2015-05-31Init Settings directly instead of via settings.load, and only do it oncemrmr1993
2015-05-31Replace settings.addEventListener with Settings.addEventListener in the frontendmrmr1993
2015-05-31Replace settings.set with Settings.set in the frontendmrmr1993
2015-05-31Replace settings.get with Settings.get in the frontendmrmr1993
2015-05-31Rewrite settings as a tight wrapper around Settings, tweaks for testsmrmr1993
2015-05-31Fix options page error.Stephen Blott
"setIcon" should be in the list of messages delivered to the options page (and for which there is no handler).
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-31Merge pull request #1699 from smblott-github/add-link-to-wiki-to-help-pageStephen Blott
Add a link to the wiki on the help page.
2015-05-30When showing the help dialog, simulate-click it.Stephen Blott
On smaller screens (and with the advanced options unfolded), the help page can need scrolling. Currently, you have to click it to give it the focus. Here, we simulate-click it, so that "j" and "k" scrolling is active immediately.
2015-05-30Add a link to the wiki to the help page.Stephen Blott
Ass suggested in by @LarryBattle in #1643.
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-29Verify keyword for custom search-engine activation.Stephen Blott
For ... map s Vomnibar.activate keyword=g ... we verify that "g" is indeed a custom search-engine keyword before setting it. If it is not, we output a console.log message and launch a vanilla vomnibar. (An alternative would be to bail.)
2015-05-29Prepopulate @customSearchMode in vomnibar.Stephen Blott
This avoids a flicker whereby the keyword is first inserted into the input, then removed.
2015-05-29Disable Tween on XML pagesmrmr1993
2015-05-29Also disable all externally-used functions for XML.Stephen Blott
2015-05-29Disable UIComponent for XML documentsmrmr1993
If the page is an XML document, nothing we do works: * <style> elements show their contents inline, * <iframe> elements don't load any content, * document.createElement generates elements that - have Element.style == null, and - ignore CSS. This commit stops us from injecting anything into the DOM from UIComponent, fixing #1640.
2015-05-29Implement pre-population of custom-search keywords.Stephen Blott
Now, a mapping of the form: map s vomnibar.activate keyword=g makes the vomnibar open (on "s") with the Google custom-search engine activated immediately (assuming it's configured). The corresponding custom search-engine configuration would be: g: http://www.google.com/search?q=%s Google
2015-05-29Pass the command's registry entry to vomnibar commands.Stephen Blott
2015-05-29Pass command's registry entry to content script.Stephen Blott
2015-05-29Merge pull request #1610 from smblott-github/word-movement-non-englishStephen Blott
Fix word movement for non-English characters.
2015-05-26Refactor to avoid potential race condition (cont).Stephen Blott