aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.coffee
AgeCommit message (Collapse)Author
2015-06-20The second part of b09822eb349ec88a573d4f450e9b57e8fa3c6473 is incorrect.Stephen Blott
Revert it.
2015-06-20Fix SimpleCache bugs.Stephen Blott
This fixes two bugs in SimpleCache. 1. Rotate the cache on the next tick. There is a marginally small chance that the cache will rotate between calls to .has() and .get(). So, we do the rotation ansynchronously. This guarantees that these two functions will always see the same cache state. 2. The implementation of .clear() (which is unused, I think) has at some point become out of date (and incorrect) w.r.t. the implementation of .rotate().
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-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-29Move search-engine parsing to Utils.Stephen Blott
This will allow us to use the same search-engine parsing code in the background page and in content scripts.
2015-05-29Only perform settings migration in the background pagemrmr1993
2015-05-18Merge branch 'vomnibar-insert-history-with-tab'Stephen Blott
Conflicts: background_scripts/completion.coffee
2015-05-17use a less brittle approach to decoding URIs.Stephen Blott
2015-05-17TabToOpen: respect trailing options when extracting query terms.Stephen Blott
A custom search engine like this... i: https://www.google.ie/search?q=%s&num=30&newwindow=1&biw=1918&bih=1015&tbm=isch Google image search Should not match a URL like this... https://www.google.ie/search?q=bbc+sport
2015-05-17TabToOpen: more tidy up pre-PR.Stephen Blott
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-01-30Visual/edit modes: another minor code review.Stephen Blott
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-21Edit mode: first working visual mode.Stephen Blott
2014-12-30Merge branch 'master' into post-1.46Stephen Blott
2014-12-30Merge branch 'passkeys---union-of-rules' of ↵Stephen Blott
https://github.com/smblott-github/vimium into smblott-github-passkeys---union-of-rules
2014-12-30Exclusions; use querySelector to find sub-elements.Stephen Blott
As @philc pointed out in #1366, this is less brittle.
2014-12-28Consistent treatment of search terms; update comment..Stephen Blott
2014-12-28Consistent treatment of search terms.Stephen Blott
2014-12-21Exclusion; fiddle with styling.Stephen Blott
2014-12-21Exclusion; warn on chrome pages.Stephen Blott
2014-12-21Exclusion; unique keys.Stephen Blott
2014-12-19Tidy cursor hider, move haveChromeVersion to utils.Stephen Blott
2014-12-14Merge branch 'vomnibarToPage' of https://github.com/smblott-github/vimium ↵Stephen Blott
into smblott-github-vomnibarToPage Conflicts: background_scripts/main.coffee content_scripts/vimium.css content_scripts/vomnibar.coffee lib/utils.coffee
2014-11-24Frames; eliminate Array::rotate.Stephen Blott
Array::rotate extends the array object, polluting its name space; so, instead, we just rotate the array manually.
2014-11-23Frames; tidy up.Stephen Blott
2014-11-23Monitor a tab's frames as a list with the current frame at its headmrmr1993
2014-11-06Add (initial, basic) isUrl tests (more needed).Stephen Blott
2014-11-06Include scheme for domain suggestions; tighter test for valid domain.Stephen Blott