aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2015-05-17TabToOpen: tidy up pre-PR.Stephen Blott
2015-05-16Refactor query extraction to Utils.extractQuery().Stephen Blott
If we go with this and #1662, then we can share the utility.
2015-05-14Rework how SimpleCache works.Stephen Blott
Change the implementation of SimpleCache such that it does not rely upon timers. The problem with times is that they retain a reference to the object even if Vimium itself loses all references. This approach seems simpler, and perfectly adequate for our purposes.
2015-05-11Merge branch 'search-engine-completion-v5'Stephen Blott
2015-05-10Search completion; fix synchronisation issue.Stephen Blott
2015-05-10Search completion; reuse previous query.Stephen Blott
2015-05-10Search completion; refactor job-running logic.Stephen Blott
2015-05-10Search completion; rework SimpleCache.Stephen Blott
2015-05-10Search completion; refactor searchEngineCompleter.Stephen Blott
This revamps how search-engine configuration is handled, and revises some rather strange legacy code.
2015-05-09Search completion; refactor SearchCompleter activation.Stephen Blott
2015-05-08Search completion; search keyword on SPACE.Stephen Blott
2015-05-08Search completion; clear (not replace) the cache.Stephen Blott
2015-05-06Search completion; more tweaks.Stephen Blott
2015-05-05Search completion; misc.Stephen Blott
2015-05-05Search completion; better SimpleCache.Stephen Blott
SimpleCache should reset the timer very time it's rotated (including when the allowed number of entries is exceeded.
2015-05-05Fix javascript: URIs.Stephen Blott
This is @mrmr9393's suggestion from #1636. It mimic's Chrome's behaviour when a javascript: URI is enetered into the omnibox (or clicked). Fixes #1611.
2015-05-03Search completion; make completion lookup asynchronous.Stephen Blott
2015-05-03Search completion; tweaks and refactoring.Stephen Blott
2015-05-02Search completion; minor tweaks.Stephen Blott
Including: - Make completers classes. That way, we may be able to get better code reuse.
2015-05-02Search completion; refactor to separate file.Stephen Blott
2015-05-01Always URL decode javascript: URLs.Stephen Blott
2015-04-30URL decode bookmarklets, if necessary.Stephen Blott
2015-04-28Recognise inline child elements of height=0 elements caused by font-sizemrmr1993
If an element with style="display: inline; font-size: 0px;" surrounds another element with style="display: inline; font-size: apx;", where a is non-zero, then the inner element and its contents will be visible. However, the outer element will register height=0 in its clientRects, which previously caused us to reject these elements. This changes the behaviour to handle this case correctly.
2015-04-28Make DomUtils.getVisibleClientRects default to expected behaviourmrmr1993
This requires passing of an extra truthy argument in order to access the (generally) unexpected behaviour of sometimes returning the rects of child elements. All locations in the code that *actually* wanted this behaviour have been updated to continue using it. Also add a comment about the unexpected behaviour in the function description.
2015-04-28Remove redundant testmrmr1993
Elements with css `display: none;` never have client rects.
2015-04-25Merge branch 'vomnibar-in-main-window' into vomnibar-in-main-window-mergeStephen Blott
Conflicts: background_scripts/main.coffee content_scripts/vimium_frontend.coffee
2015-04-18Mode indicator: strip all references to badges.Stephen Blott
2015-03-17Activate vomnibar in window.top; more clean up.Stephen Blott
2015-03-06Merge branch 'fix-focus-html5-inputs'Stephen Blott
2015-03-06Cosmetic changes (following #1490).Stephen Blott
Mainly fix the indentation on comments. Also tweak wording a bid.
2015-03-03Note relevant PR number for link-hint-text change.Stephen Blott
2015-03-03Do not include duplicated texts in link hints.Stephen Blott
This only effects link hints with "Use the link's name and numbers for link-hint filtering" enabled. We have been matching the *entire text content* of each link-hint element. With two (or more) hints, and with one of the elements a descendent of the other, we have been using the entire text content of the outer node (which includes the text content of the inner node). This leads to odd situations where the inner element cannot be selected just by typing its text, because its text is a substring of the outer element's text. For example, on Google calendar, the "Today" button shows up as two hints, one inside the other. Typing "today" never disambiguates the hint. You always have to hit enter. There's another nasty example on feedly, where an outer container is clickable, but its text contains all of the (many) texts of the (many) contained links. So the hint always has to be selected manually. Here, when generating the text for an element, we exclude the texts from any descendent node which has already been considered.
2015-02-19Only send cursor to end when selection has the cursor at the startmrmr1993
This restores behaviour to how it was at commit 7cedc5d2481f61f4b0d1cbf99fbd203bb5c68b54.
2015-02-19Make DomUtils.isSelected behave correctly for all editable elementsmrmr1993
2015-02-19Stop trying to place the cursor at the end of an input on focusmrmr1993
2015-02-18Remove redundant check, make isSelected's behaviour match its contractmrmr1993
2015-02-17Guard against input elements which don't support selectionStart/Endmrmr1993
These elements throw an error on access, meaning that we can't do an existence check.
2015-02-09Merge branch 'visual-and-edit-modes'Stephen Blott
Conflicts: background_scripts/main.coffee content_scripts/vimium_frontend.coffee lib/keyboard_utils.coffee
2015-02-06Visual/edit modes: code cleanup.Stephen Blott
- convert getCaretCoordinates from JS to CS - handle x axis in scrollIntoView - better comments throughout.
2015-02-03Merge branch 'find-mode-history'Stephen Blott
Conflicts: content_scripts/vimium_frontend.coffee
2015-02-01Merge branch 'modes-rework-dom-tests'Stephen Blott
2015-02-01Give find mode a history.Stephen Blott
2015-01-30Visual/edit modes: another minor code review.Stephen Blott
2015-01-29Visual/edit modes: initial caret mode.Stephen Blott
2015-01-28Visual/edit modes: fix some movements...Stephen Blott
Also, change how vim's "w" is implemented. Also some code-review/cleanup. Better dd and yy for gmail.
2015-01-28Visual/edit modes: yet more minor changes.Stephen Blott
- Use a has for singletons (as it was previously), but with a distinct identity generated by Utils.getIdentity. - Fix counts not be using in a number of places.
2015-01-24Visual/edit modes: more edit-mode commands.Stephen Blott
- "dw", "3dw", "d3w" - "dc", "3dc", "d3c" - "D" - "C" Also refactor enterInsertMode. Also major refactor of interface between edit and visual modes.
2015-01-24Visual/edit modes: miscellaneous improvements.Stephen Blott
2015-01-23Visual/edit modes: more (and better) commands.Stephen Blott
2015-01-23Visual/edit modes: develop edit mode.Stephen Blott
- implement "i", "a". - fix "w" for edit mode. - try out "e" for enter edit mode. - initial implementation "o", "O" - Suppress backspace and delete. - Scroll in text areas.