aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2016-02-01Focus input: use Rect.copy element.getBoundingClientRect().Stephen Blott
2016-01-31Use a count with link hints; working w/ Escape.Stephen Blott
With a count, link hints now exit on `Escape`.
2016-01-31Pass arguments to modes' onExit handlers.Stephen Blott
2016-01-31Fix visual indicator for `focusInput()`.Stephen Blott
Currently, if an input is only partially in the view port, then the page may scroll when it is focused and the overlays for `focusInput()` are wonky. See #1257. Here, we draw the overlay around the *entire* input, instead of just around the visible part. Being partially visible therefore is no longer relevant. Fixes #1257. Closes #1258.
2016-01-31Remove code omitted from 68a39707817ab8693e1ddd9381611c0bfb46ebaa.Stephen Blott
2016-01-31Use a count with link hints.Stephen Blott
Pass a count to link-hint commands, and the link-hint mode is started that many times (except "with queue"). This resolves the same issue as #1291. However, this: - does not require re-basing (which is no biggie), and - keeps all of the count-handling logic (apart from plumbing) in one place, in `LinkHints.activateMode()`. The link-hints mode itself does not know anything about count handling. Serious bug: - Using `Escape` to exit does not cancel the repeat! Fixes #1289. Closes #1291.
2016-01-31Merge branch 'goToLine'Stephen Blott
2016-01-31Fix oversight in 7f3ae1ffcf3185392cf30a62f4b83474b68f66cc.Stephen Blott
One line was unintentionally deleted.
2016-01-31Wholly remove edit-mode code.Stephen Blott
I am now of the opinion that we should not do this within Vimium, as: - better solutions exist externally, and - it's better to not have to maintain this.
2016-01-31Better scoring for filtered hints.Stephen Blott
It is often the case that an encosing element (parent) and a child are both clickable, and both contain the same text. In this case, it is usually better to pick the child. So, here, we dampen down the score of elements with longer texts.
2016-01-31Merge pull request #1819 from mrmr1993/unhover-links-when-clicking-link-hintStephen Blott
Emit mouseout for the last link when clicking a new link with link hints
2016-01-30Merge pull request #1954 from smblott-github/link-hints-need-linksStephen Blott
Exit link hints if there are no links.
2016-01-30Rework unhovering to occur automatically for all simulated hoversmrmr1993
2016-01-30Exit link hints if there are no links.Stephen Blott
If there are no links on a page, then link-hints mode should exit immediately. Fixes #1395.
2016-01-30Emit mouseout when clicking a new element link hintsmrmr1993
2016-01-30Merge pull request #1952 from smblott-github/link-hints-ignore-scrollStephen Blott
Do not exit link-hints mode on scroll.
2016-01-30Do not enter link-hints mode on scroll.Stephen Blott
Fixes #1918.
2016-01-30Remove CursorHidermrmr1993
2016-01-30Add number modifier to `gg' scrollToTop commandmrmr1993
2016-01-30Merge pull request #1949 from smblott-github/simpler-hint-stringStephen Blott
Simplify hint string generation
2016-01-29Simplify hint-string generation; tweaks.Stephen Blott
2016-01-29Simplify hint-string generation; filtered hints.Stephen Blott
2016-01-28Simplify hint-string generation; simplification.Stephen Blott
2016-01-28Simplify hint-string generation; tweaks.Stephen Blott
2016-01-28Simplify hint-string generationStephen Blott
2016-01-26Collapse selection on exiting visual mode.Stephen Blott
This applies only to the case where visual mode is run under edit mode. Previously, we were leaving the selection in place ... which is weird and not vim-like.
2016-01-18Spelling fixesGeorge Millo
2016-01-09Ensure hint handler is always removed.Stephen Blott
For some (unknown) reason, we do not receive the keyup event for Shift when activating link hints. Consequently, we are not correctly removing the keyup handler. And that handler is blocking subsequent keyup events, which has the effect of endless scrolling (because the scroller relies on keyup events to stop scrolling). Here, we correcttly remove the keyup handler when link-hints mode exits. Fixes #1911.
2015-10-23Properly check whether the selection is visible in the current viewportmrmr1993
2015-10-10Merge pull request #1845 from ↵Stephen Blott
smblott-github/better-delay-for-filtered-link-hints Block keyboard events when a filtered hint matches.
2015-10-10Merge pull request #1849 from smblott-github/suppress-trailing-key-eventsStephen Blott
Suppress trailing key events (after link hints).
2015-10-04Make mode.exit() idempotent.Stephen Blott
We've been calling hintMode.exit() twice: once explicitly, and once as a side effect of the simulated click event. Since there are so many code paths through link hints, it seems better to simply explicitly make mode.exit() idempotent for all modes. Which is what this commit does.
2015-10-04Make comment/explanation match implementation.Stephen Blott
2015-10-04Suppress trailing key events (after link hints).Stephen Blott
This ensures that -- on leaving link hints mode -- we consume any trailing keyup events (and don't let the underlying page see them). Additional notes: - There are other places where we seem to be leaking keyup events. - A separate bug... It looks like we're calling `exit()` on link-hints mode twice.
2015-10-02Simplify c9af886a92e4b686456b34949e907a9d79fb223e.Stephen Blott
2015-10-02Block keyboard events when a filtered hint matches.Stephen Blott
Previously, we blocked keyboard events for a fixed 200ms. With this PR, we continue blocking keyboard events until 150ms after the last `keydown` or `keypress` event. So, we wait until we think the user has stopped typing. Fixes #1842.
2015-09-21Add a comment explaining the choice of XMLHttpRequest for UIComponentmrmr1993
2015-09-20Merge pull request #1086 from mrmr1993/countMatchesPhil Crosby
Rework to make match counting code for searches more DRY and easier to read
2015-09-19Tidy up #1833.Stephen Blott
2015-09-18Load UIComponent stylesheet via XMLHttpRequest, use background as neededmrmr1993
2015-09-17Merge pull request #1821 from mrmr1993/hide-uicomponents-by-defaultStephen Blott
Don't show UIComponent <iframe>s while vimium.css loads
2015-09-13Only show link hints for <label>s for elements without a hintmrmr1993
2015-09-13Make <label>s clickable with LinkHintsmrmr1993
2015-09-13Don't show UIComponent <iframe>s while vimium.css loadsmrmr1993
This fixes #1817, where our stylesheet isn't loaded correctly due to a Chromium issue and the Vomnibar/HUD <iframe>s are always visible on the new tab page.
2015-09-11Move repeated conditional FindMode code into one placemrmr1993
2015-09-11Move escaping regex special chars to its own utility functionmrmr1993
2015-09-11Make the sort used for filetered link hints stable.Stephen Blott
JavaScript's sort function is not stable; this PR makes the sort used for filtered link hints stable. There are two reasons for doing this: - High-scoring hints are more likely to keep the same hint string as the user continues typing. (Currently, the hints assigned change based on the vaguaries of the non-stable sort.) - For equal-scoring hints, we retain the visit-child-before-parent ordering (which is used to NOT match a parent's text if we have already matched that text in a child). And, as a result of all of that, the UX is more predictable and hence better.
2015-09-07Traverse shadow DOMs when looking for scrollable elementsmrmr1993
2015-09-06Merge pull request #1774 from mrmr1993/single-character-passkeys-onlyStephen Blott
Only apply passkeys to single character keys explicitly
2015-09-06Merge branch 'gdh1995-better-KeydownEvents'Stephen Blott