aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
AgeCommit message (Collapse)Author
2016-02-03Update only help dialog contents when showingmrmr1993
2016-02-03Use <span>s as placeholders in help_dialog.htmlmrmr1993
2016-02-03Store help dialog injected strings together, inject all at oncemrmr1993
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-31Merge pull request #1958 from smblott-github/logging-pageStephen Blott
Add a logging page...
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-31Add a basic log page; tweaks.Stephen Blott
This tweaks @mrmr1993's logging ideas discussed in #1629: - Do not generate log entries from the logging page itself. - Use the logger for *all* logging (including from `commands.coffee`, and from `bgLog`). @mrmr1993's original idea is 91fb337c9d92f6291ef42c55c4d29ca35b710203.
2016-01-30Add a basic log pagemrmr1993
2016-01-30Add number modifier to `gg' scrollToTop commandmrmr1993
2016-01-29Revert "Enable edit mode."Stephen Blott
This reverts commit e975633f3ee8da9e01c332b2dcdb8422d5f941d8.
2016-01-26Enable edit mode.Stephen Blott
This re-enables edit-mode (`gv`). The code for this has been present in `master` for quite some time, but has been disabled.
2016-01-26Remove "beta" label from visual-mode commands.Stephen Blott
These seem to be working fine, we can commit to them.
2015-11-20Fix indentation so that `openerTabId` takes effectGábor Luk
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-18Load UIComponent stylesheet via XMLHttpRequest, use background as neededmrmr1993
2015-09-17Fix regression in #1828.Stephen Blott
In #1828, we (I) broke the fact that `gt` and `gT` should be able to wrap around at the ends (so, for example, `gt` on the right-most tab should take you to the first).
2015-09-17Add <count> prefix for g0 and g$.Stephen Blott
`2g0` takes you to the second tab. `2g$` takes you to the second last tab. This gives us `gt`/`gT` for relative tab selection and `g0`/`g$` for absolute tab selection. `<count>` previously had no special meaning for `g0` and `g$`, and it's not clear it could have any other meaning than that implemented here. Fixes #1298 (kind of).
2015-09-11Move escaping regex special chars to its own utility functionmrmr1993
2015-09-11Fix moveTab for pinned tabs.Stephen Blott
Fixes #1814. (This fixes a problem that was introduced in the "fix" of #1727.)
2015-09-10Merge pull request #1811 from PrestanceDesign/feature/add-qwant-search-engineStephen Blott
Search completion; add support for Qwant completion
2015-09-10Fix JSON incorrect parsing for Qwant autocompletionMichael SALIHI
2015-09-10Search completion; add support for Qwant completionMichael SALIHI
2015-09-09Search completion for amazon.deFlorian Kaiser
2015-06-25Make global marks consistent with other tab creation operations.Stephen Blott
This makes global marks use the same code for opening new tabs as other operations. Thus, the new tab appears in the same position as it would if it were created, for example, via the vomnibar. To do this properly, we move the three tab-creating functions into an object which can be (and is) exported (TabOperations). Also fixes these three operations such that they all take the same arguments; that is (request, callback). Not all of these callbacks are being used. But we should be consistent.
2015-06-25Set the parent tab when creating tabs.Stephen Blott
If the tab is subsequently deleted, then we return to the original tab (as opposed to the one on its right).
2015-06-22fix a bug that `pasteFromClipboard` does not return text from clipboardgdh1995
2015-06-10Refactor moveTab for clarity...Stephen Blott
... as suggested by @mrmr1993 in #1728.
2015-06-10Do not try to move a tab to the left of pinned tabs.Stephen Blott
2015-06-10Re-work tabMoveLeft/Right.Stephen Blott
Note. This does not allow tabs to rotate from the left around to the right, or vice versa. Which means "999<<" moves the current tab all the way to the left (and similarly to the right). Fixes #1727 (kind of).
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-05Merge pull request #1716 from smblott-github/global-marksStephen Blott
Improved global marks
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-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-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-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; 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