aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-10-23Better line parsing (add tests).Stephen Blott
2016-10-23Better line parsing (simplified).Stephen Blott
2016-10-17Better line parsing.Stephen Blott
1. Explicitly remove comments. 2. A trailing backslash means the current line continues on the next line. E.g. a \ b \ c is a single line `a b c`. This helps alleviate the fact that configuration lines can be very long, whereas the *Custom key mappings* input is quite narrow. TODO: We should use the same line parser in the custom-search-engines input.
2016-10-15Note mapKey in README.md.Stephen Blott
2016-10-15No-op; rearrange content-script command arguments.Stephen Blott
This is a no-op. It arranges that the registry entry for each command is passed to the command, for every command. That required a small ammount of reworking in a couple of cases.
2016-10-10Merge pull request #2306 from smblott-github/add-key-translationStephen Blott
Add "mapkey" command for key mappings.
2016-10-10Add TODO.Stephen Blott
2016-10-10Rename 'translate' to 'mapkey'.Stephen Blott
2016-10-10Merge pull request #2307 from ↵Stephen Blott
smblott-github/disable-grab-back-focus-in-all-frames Disable grab-back-focus in all frames.
2016-10-10Disable grab-back-focus in all frames.Stephen Blott
When the user begins interacting with one frame, we disable the grab-back-focus mode in *all* frames. Previously, grab-back-focus was preventing users from selecting inputs in frames other than the active frame. Fixes #2296 (possibly).
2016-10-09Tweak (simplify) #2306.Stephen Blott
2016-10-09Extend key translation to include Escape.Stephen Blott
Here, these map to escape: translate x <c-[> translate <c-c> <c-[>
2016-10-09Add translate command for key mappings.Stephen Blott
Under *Custom key mappings* (on the options page), this implements: translate x y Whenever the users types `x` in normal mode or in visual mode, the `x` is replaced by `y`. For example: map ç l (which apparently would be helpful on Brazilian keyboards). Issues: - Do we want yet another hack like this? This would be documented only on the wiki. - If we allowed `translate <c-c> <c-[>` (and extended `isEscape()` to use the translation), then we'd get the `exitMode` command for free (#2253). - Alternatively, instead of adding a new "command" called `translate`, we could overload the existing `map` command. Since these are single-key mappings, there's no ambiguity. (Although, I guess there's a risk some user has junk in their key mappings and would be taken by surprise). Inspired by isssue posted by @vhoyer (#2305). Fixes #2305.
2016-10-09Move logging to the frame's port.Stephen Blott
Comminication by the frame's port is faster, and no response is sent.
2016-10-09Remove description from registry entry for key-state mapping.Stephen Blott
We do not need the registryEntry's decription in the content scripts, so remove it (saving a marginal amount of memory and time).
2016-10-08Grab back focus prevents focusing embeds."Stephen Blott
Partially addresses #2303.
2016-10-08Better positioning of link-hints flash rect.Stephen Blott
When an <a> spans the end of a line and the start of the next line, we now highlight both parts of the link (instead of just the first). Also, refactor code for calculating the position of the viewport into a separate utility in DomUtils.
2016-10-08Merge pull request #2301 from gdh1995/documentElement-offsetStephen Blott
handle documentElement's top/left margin correctly
2016-10-08Refactor (and fix) key-parsing regexp.Stephen Blott
Fixes #2299. Also, separate this regexp out into its constituent parts, because it is becoming too different to read.
2016-10-08handle documentElement's top margin correctlygdh1995
2016-10-05Note backspace key (fix typo).Stephen Blott
2016-10-05Note backspace key.Stephen Blott
2016-10-02Tweak logging.Stephen Blott
2016-10-02More key-sequance parser tests.Stephen Blott
2016-10-02Add post-1.57 notes.Stephen Blott
2016-10-02Merge pull request #2284 from smblott-github/silent-releasesStephen Blott
Enable silent/patch releases.
2016-10-02Merge pull request #2289 from smblott-github/rework-key-parsingStephen Blott
Rework key-sequence parsing.
2016-10-02Add tests for compareVersions().Stephen Blott
2016-10-02Better regexp (to match legacy behaviour for '<c->>'.Stephen Blott
2016-10-02Single quotes are clearer here.Stephen Blott
2016-10-02Rename normalizeKey to parseKeySequence.Stephen Blott
The new name better describes which the function does.
2016-10-02Add comment giving example key parsing.Stephen Blott
2016-10-02Rework key-sequence parsing.Stephen Blott
This reworks the parsing of key sequences like `<c-a-Z>x`: Advantages over the status quo: - Parses key sequences in one only place (previously two), - Removes two hideous regular expression. - Admits multi-modifier bindings (like `<c-a-Z>`). - Adds more (and better) tests. - (And it should be easier to maintain.) Replaces #2210 (this also simplifies key parsing substantially).
2016-10-01Merge pull request #2285 from smblott-github/content-loader-via-importStephen Blott
Use HTML5 import to load content scripts.
2016-10-01Remove legacy migrations.Stephen Blott
2016-10-01Use full-path URLs for Vimium resources.Stephen Blott
2016-10-01Use HTML5 import to load content scripts.Stephen Blott
This is one approach to fixing #2277 properly. (Currently there's a temporary fix in place.) This uses HTML5 imports in place of the content-script loader. This is better than the current "fix" because content scripts are only listed in one place two places (as opposed to six). It's worse than the previous content-script loader, though, in that content scripts must be listed in two places, instead of one. Fixes #2277.
2016-10-01v1.57 releasev1.571.57Stephen Blott
2016-10-01Enable silent/patch releases.Stephen Blott
Currently, all new releases trigger a notification. This changes that behaviour such that if the previous and current releases have the same major and minor release numbers, then no notification is shown. This allows us to push bug-fix and minor releases without bugging the user.
2016-10-01Note hangs Vimium bug fix.Stephen Blott
2016-10-01Merge pull request #2283 from smblott-github/fix-find-mode-hangsStephen Blott
Find mode can hang Vimium (fixed).
2016-10-01Merge pull request #2282 from smblott-github/fix-coffeescript-versionStephen Blott
Remove Coffeescript 1.10 dependency.
2016-10-01Fix find-mode hangs.Stephen Blott
"/" followed immediately by "i" can hang Vimium. The problem is that launching find mode is asynchronous (we wait until the HUD is available). Because normal mode is still active, we can enter insert mode *before* the find-mode HUD receives the focus. The result is that we end up in both find mode and insert mode, the HUD has the focus, but the HUD is in insert mode, so it ignores keyboard events (including `Escape`). The only way out is to click the page's body and then type `Escape`. This commit demonstrates the problem: 7d2b00411eae3293fa4c7b1f61b384c0c495b5a2. This happens in practice, for example while a busy page is loading. This commit fixes this by ensuring that find-mode blocks keyboard events immediately (and synchronously) on launch.
2016-09-30Remove Coffeescript 1.10 dependency.Stephen Blott
Fixes #2273. Fixes #2281. This fixes the build with Coffeescript 1.11, so we can remove the hard-wired dependency and notes.
2016-09-30Note use Coffeescript 1.10.Stephen Blott
2016-09-27Reinstate loading vimium.css.Stephen Blott
Follow on from 8601edd71e74ba522e32658309cb2e7acca8aeeb.
2016-09-27Merge pull request #2278 from smblott-github/fix-travisStephen Blott
Fix Travis builds (lock down Coffeescript version)
2016-09-27Note reason for locking down Coffeescript version.Stephen Blott
2016-09-27Attempt to fix travis builds by locking coffee-script to 1.10.0David Yan
2016-09-27Disable content-script loader (temporary).Stephen Blott
Scripts loaded via the content-script loader previously were loaded synchronously. In recent versions of Chrome, they now seem to be loaded asynchrnously, which causes errors. This is a temporary commit to keep master healthy until I (or somebody) figures out properly what is going on. It is expected to be reverted in due course.