]> git.gir.st - VimFx.git/log
VimFx.git
7 years agoUpdate devDependencies
Simon Lydell [Mon, 11 Jul 2016 17:13:24 +0000 (19:13 +0200)]
Update devDependencies

7 years agoLeave trailing slash when going up path (#781)
sinkuu [Mon, 11 Jul 2016 14:38:18 +0000 (23:38 +0900)]
Leave trailing slash when going up path (#781)

Previously:

- `/some/path` → `/some`
- `/some/path/` → `/some`

Now:

- `/some/path` → `/some/`
- `/some/path/` → `/some/`

The convention on most modern sites seem to be to make a trailing slash
optional. But especially on older servers, no trailing slash means "view
file", while a trailing slash means "view directory". Removing the
trailing slash in such cases most likely results in a 404, while
preserving it gives a useful result.

7 years agoAdd support for the TYPO3 CMS fancy text editor
Simon Lydell [Sat, 9 Jul 2016 09:05:58 +0000 (11:05 +0200)]
Add support for the TYPO3 CMS fancy text editor

See <https://typo3.org/>.

Fixes #780.

7 years agoUpdate ja locale (#779)
pluser [Fri, 8 Jul 2016 10:01:16 +0000 (19:01 +0900)]
Update ja locale (#779)

Refs. #728

7 years agoMake it possible to escape from stuck "auto insert mode"
Simon Lydell [Fri, 8 Jul 2016 06:00:18 +0000 (08:00 +0200)]
Make it possible to escape from stuck "auto insert mode"

With this commit, `<escape>` resets `vim.focusType` to 'none', in case
we somehow have gotten stuck with 'editable'.

The button now also runs the `esc` command, making it a true escape
hatch: Clicking it not only lets you escape from other modes back to
Normal mode, but also blurs stuff and makes sure that `vim.focusType` is
'none'.

7 years agoUpdate de locale
just-barcodes [Sun, 3 Jul 2016 17:50:39 +0000 (19:50 +0200)]
Update de locale

Refs. #728

7 years agoUpdate id locale
Yoppy Halilintar [Sun, 3 Jul 2016 17:49:44 +0000 (19:49 +0200)]
Update id locale

Refs. #728

7 years agoMention a ghacks.net article about VimFx in the README
Simon Lydell [Sat, 2 Jul 2016 16:38:56 +0000 (18:38 +0200)]
Mention a ghacks.net article about VimFx in the README

7 years agoUpdate it locale
Carlo Bertoldi [Sat, 2 Jul 2016 16:29:39 +0000 (18:29 +0200)]
Update it locale

Refs. #728

7 years agoUpdate pt-BR locale
Átila Camurça Alves [Sat, 2 Jul 2016 07:24:52 +0000 (09:24 +0200)]
Update pt-BR locale

Refs. #728

7 years agoUpdate nl locale
HJTP [Sat, 2 Jul 2016 07:21:19 +0000 (09:21 +0200)]
Update nl locale

Refs. #728

7 years agoMerge branch 'master' into develop
Simon Lydell [Sat, 2 Jul 2016 07:16:27 +0000 (09:16 +0200)]
Merge branch 'master' into develop

7 years agoPrevent `f` commands from crashing in about:config
Simon Lydell [Fri, 1 Jul 2016 15:50:27 +0000 (17:50 +0200)]
Prevent `f` commands from crashing in about:config

Regression since commit 1cf724c5.

7 years agoHide extra commands with no key sequences
Simon Lydell [Fri, 1 Jul 2016 15:48:33 +0000 (17:48 +0200)]
Hide extra commands with no key sequences

7 years agoUpdate es locale (#775)
strel [Sat, 2 Jul 2016 06:39:50 +0000 (08:39 +0200)]
Update es locale (#775)

Refs. #728

7 years agoUpdate zh-TW locale (#774)
Salas [Sat, 2 Jul 2016 06:39:10 +0000 (14:39 +0800)]
Update zh-TW locale (#774)

Refs. #728

7 years agoUpdate zh-CN locale (#773)
av2000ii [Fri, 1 Jul 2016 12:50:46 +0000 (20:50 +0800)]
Update zh-CN locale (#773)

Refs. #728

7 years agoShow usage of Hints mode modifiers in the help dialog
Simon Lydell [Fri, 1 Jul 2016 07:12:30 +0000 (09:12 +0200)]
Show usage of Hints mode modifiers in the help dialog

7 years agoSimplify detection of markable `<label>`s
Simon Lydell [Thu, 30 Jun 2016 05:56:12 +0000 (07:56 +0200)]
Simplify detection of markable `<label>`s

Apparently, such elements have a `.control` property that returns their
associated form control. No need to manually look for the 'for'
attribute or nested form control elements.

7 years agoBlur focused text input when submitting a form
Simon Lydell [Tue, 28 Jun 2016 13:12:04 +0000 (15:12 +0200)]
Blur focused text input when submitting a form

Fixes #770.

7 years agoVimFx v0.17.3 v0.17.3
Simon Lydell [Mon, 27 Jun 2016 15:43:20 +0000 (17:43 +0200)]
VimFx v0.17.3

7 years agoUpdate devDependencies
Simon Lydell [Mon, 27 Jun 2016 15:40:49 +0000 (17:40 +0200)]
Update devDependencies

7 years agoTeach the `zF` command to find and activate dropmarkers
Simon Lydell [Wed, 22 Jun 2016 06:02:36 +0000 (08:02 +0200)]
Teach the `zF` command to find and activate dropmarkers

For example, the bookmarks button has a "star" button on the left, which
acts like a normal button, and another button on the right, which
actually is a `<dropmarker>` and opens a `<menupopup>`. Previously,
VimFx didn't find the `<dropmarker>` (because it hasn't got
`.tabIndex > `-1). Now it does. Note that simulating a click on a
`<dropmarker>` triggers its parent button's action. Instead, the
`<menupopup>` must be found and triggered manually.

Another example of such a button is Greasemonkey’s button. Actually,
this "button with dropmarker" concept seems pretty common among add-ons.

This commit also removes the unnecessary double hint for the bookmarks
button, but filtering out `<toolbarbutton>`s which are direct children
of another `<toolbarbutton>`.

Fixes #766.

7 years agoVimFx v0.17.2 v0.17.2
Simon Lydell [Sun, 19 Jun 2016 18:24:59 +0000 (20:24 +0200)]
VimFx v0.17.2

7 years agoAdd support for scrolling SVG documents
Simon Lydell [Sun, 19 Jun 2016 09:55:19 +0000 (11:55 +0200)]
Add support for scrolling SVG documents

Apparently, the only way to working with scrolling in SVG documents
seems to be by using `window`.

Fixes #764.

7 years agoOnly rotate _visible_ hint markers
Simon Lydell [Sat, 18 Jun 2016 10:59:01 +0000 (12:59 +0200)]
Only rotate _visible_ hint markers

Previously, if you pressed `<space>` in Hints mode to rotate overlapping
markers, after already having entered a few hint chars, it would
sometimes look as if nothing happens. This was because _all_ markers
where being rotated, even hidden ones. This commit only rotates _visible_
markers.

7 years agoUpdate pt-BR locale
Átila Camurça Alves [Tue, 14 Jun 2016 18:16:09 +0000 (15:16 -0300)]
Update pt-BR locale

In brazilian portuguese we usually say Timeout as well.

Reference #728.

7 years agoUpdate ru locale (#762)
Nicholas Guriev [Tue, 14 Jun 2016 21:08:11 +0000 (01:08 +0400)]
Update ru locale (#762)

Refs. #728

7 years agoImprove `<input type="file">` detection for the `f` commands
Simon Lydell [Tue, 14 Jun 2016 05:39:26 +0000 (07:39 +0200)]
Improve `<input type="file">` detection for the `f` commands

Fixes #754.

7 years agoUpdate pt-BR locale (#761)
Átila Camurça Alves [Tue, 14 Jun 2016 05:03:10 +0000 (02:03 -0300)]
Update pt-BR locale (#761)

Refs. #728

7 years agoImprove click simulation of XUL elements
Simon Lydell [Mon, 13 Jun 2016 16:35:04 +0000 (18:35 +0200)]
Improve click simulation of XUL elements

- Use `.click()` when possible for the `zF` command as it seems to work
  with more buttons than simulating events the regular VimFx way.

- Add extra code for activating XUL dropdown menus.

- Make it possible to use `zF` to activate VimFx's own button.

- Finally make it possible to click the gear icon in the Add-ons Manager
  using `f`.

Fixes #759.

7 years agoFix opening links in new tabs in Firefox 50
Simon Lydell [Mon, 13 Jun 2016 05:59:29 +0000 (07:59 +0200)]
Fix opening links in new tabs in Firefox 50

`ContentClick.contentAreaClick` now requires passing `originAttributes`
in order not to crash. This affected `<count>f`, `af`, `F` and `gf`.

See https://hg.mozilla.org/mozilla-central/rev/07dc0094e76f

Supersedes and closes #758. Thanks to @XrXr for finding the problem and
suggesting a fix!

7 years agoVimFx v0.17.1 v0.17.1
Simon Lydell [Sun, 12 Jun 2016 15:16:46 +0000 (17:16 +0200)]
VimFx v0.17.1

7 years agoFix `zF` double clicking on browser elements (#757)
Alan Wu [Sun, 12 Jun 2016 08:27:17 +0000 (04:27 -0400)]
Fix `zF` double clicking on browser elements (#757)

`nsIDOMWindowUtils.dispatchDOMEventViaPresShell()` dispatches
a 'command' event automatically after a 'click' event on XUL pages.
This was causing `zF` to effectively double click on browser elements,
since VimFx also simulates a 'command' event.

Elements which suffers from this double click include but are not
limited to, the new tab button, question mark circles in the preferences
page and buttons created by the add-on sdk.

7 years agoUpdate devDependencies
Simon Lydell [Sat, 11 Jun 2016 10:32:59 +0000 (12:32 +0200)]
Update devDependencies

7 years agoFix the "URL popup" not appearing when using `zf`
Simon Lydell [Sat, 11 Jun 2016 09:40:27 +0000 (11:40 +0200)]
Fix the "URL popup" not appearing when using `zf`

7 years agoFix `zF` crashing when devtools open in Firefox 49
Simon Lydell [Sat, 11 Jun 2016 09:25:07 +0000 (11:25 +0200)]
Fix `zF` crashing when devtools open in Firefox 49

7 years ago Update it locale (#753)
Carlo Bertoldi [Wed, 8 Jun 2016 20:32:08 +0000 (22:32 +0200)]
 Update it locale (#753)

Refs. #728

7 years agoVimFx v0.17.0 v0.17.0
Simon Lydell [Wed, 8 Jun 2016 18:40:13 +0000 (20:40 +0200)]
VimFx v0.17.0

7 years agoUpdate devDependencies
Simon Lydell [Wed, 8 Jun 2016 10:34:48 +0000 (12:34 +0200)]
Update devDependencies

7 years agoFix some `require` sorting
Simon Lydell [Tue, 7 Jun 2016 07:07:04 +0000 (09:07 +0200)]
Fix some `require` sorting

7 years agoRename l10n.coffee into translate.coffee
Simon Lydell [Tue, 7 Jun 2016 06:49:29 +0000 (08:49 +0200)]
Rename l10n.coffee into translate.coffee

7 years agoSimplify some code by changing `.bind()` into `->`
Simon Lydell [Tue, 7 Jun 2016 06:37:17 +0000 (08:37 +0200)]
Simplify some code by changing `.bind()` into `->`

7 years agoReplace `@` with `this` when not used as `@keyword`
Simon Lydell [Tue, 7 Jun 2016 06:19:59 +0000 (08:19 +0200)]
Replace `@` with `this` when not used as `@keyword`

7 years agoRemove outdated comment
Simon Lydell [Tue, 7 Jun 2016 06:15:27 +0000 (08:15 +0200)]
Remove outdated comment

7 years agoIgnore counts in Ignore mode
Simon Lydell [Mon, 6 Jun 2016 15:22:42 +0000 (17:22 +0200)]
Ignore counts in Ignore mode

7 years agoAdd some comments and info for commit 5ca124b4d
Simon Lydell [Mon, 6 Jun 2016 10:30:34 +0000 (12:30 +0200)]
Add some comments and info for commit 5ca124b4d

7 years agoDispatch trusted mouse events to content page (#751)
Alan Wu [Mon, 6 Jun 2016 10:23:05 +0000 (06:23 -0400)]
Dispatch trusted mouse events to content page (#751)

Some DOM APIs need to be called from the handler of a trusted event to
work. `requestFullscreen()` and `document.execCommand('copy')` are
examples of such API.

Before this patch, VimFx dispatched mouse events using
`element.dispatchEvent()` which had the event handlers for the events
running in untrusted context. This behavior prevented hint mode from
full-screening on Youtube and copying clone addresses on Github.

This patch uses XPCOM to dispatch mouse events as trusted events to the
content page.

See also:
https://www.w3.org/TR/uievents/#trusted-events - info from the spec
https://clipboardjs.com/ - before this patch, copying doesn't work

7 years agoImprove Marks mode UX
Simon Lydell [Sun, 5 Jun 2016 17:25:50 +0000 (19:25 +0200)]
Improve Marks mode UX

- Return to Normal mode if a mark key hasn't been pressed within
  `options.timeout` milliseconds.

- Let `<escape>` return to Normal mode instead of creating or going to a
  mark named `<escape>`. Previously, if the user pressed `<escape>` as
  an attempt to exit Marks mode after accidentally pressing `m`, that
  would indeed exit Marks mode, but it would also set the `<escape>`
  mark. That meant that after that point, the user couldn't exit Marks
  mode using `<escape>` after having pressed `` ` `` without the side
  effect of scrolling to the `<escape>` mark.

- Marks mode has been hidden from the help dialog, in order not to
  clutter it with unnecessary information. While at it, Find mode was
  removed from the help dialog as well, for the same reason. Both modes
  are still available in VimFx's settings page in the Add-ons Manager,
  though.

Fixes #750.

7 years agoFix `[data-command]` being `undefined` in help dialog
Simon Lydell [Sun, 5 Jun 2016 17:24:36 +0000 (19:24 +0200)]
Fix `[data-command]` being `undefined` in help dialog

7 years agoMake the `?` command and the button _toggle_ help
Simon Lydell [Sun, 5 Jun 2016 17:01:02 +0000 (19:01 +0200)]
Make the `?` command and the button _toggle_ help

I've noticed people (including myself, sometimes) unconsciously
expecting both the `?` command and the button to _close_ the Keyboard
Shortcuts dialog if it is already open.

I don't think there's any need complicating the description of the `?`
command and the tooltip of the button to reflect this.

7 years agoImprove find commands race condition robustness
Simon Lydell [Sun, 5 Jun 2016 10:25:00 +0000 (12:25 +0200)]
Improve find commands race condition robustness

Possibly related: #749.

7 years agoFix some odd formatting in gulpfile.coffee
Simon Lydell [Thu, 2 Jun 2016 16:28:27 +0000 (18:28 +0200)]
Fix some odd formatting in gulpfile.coffee

7 years agoFix being unable to scroll the page on some sites
Simon Lydell [Thu, 2 Jun 2016 15:50:06 +0000 (17:50 +0200)]
Fix being unable to scroll the page on some sites

7 years agoRemove repeated word in a comment
Simon Lydell [Thu, 2 Jun 2016 15:21:45 +0000 (17:21 +0200)]
Remove repeated word in a comment

7 years agoDrastically speed up `find_from_top_of_viewport`
Simon Lydell [Thu, 2 Jun 2016 15:15:39 +0000 (17:15 +0200)]
Drastically speed up `find_from_top_of_viewport`

- Don't recurse into children of elements when looking for visible text
  nodes; we'll get to them anyway since we iterate over every element of
  the page.
- Don't bother checking text nodes that we already know are whitespace
  only.

Fixes #747.

7 years agoRemove trailing whitespace in fr locale
Simon Lydell [Wed, 1 Jun 2016 05:59:06 +0000 (07:59 +0200)]
Remove trailing whitespace in fr locale

7 years agoUpdate zh-CN locale (#745)
av2000ii [Wed, 1 Jun 2016 05:14:42 +0000 (13:14 +0800)]
Update zh-CN locale (#745)

Fix some ambiguous/wrong translations.

7 years agoUpdate fr locale (#744)
Mickaël RAYBAUD-ROIG [Wed, 1 Jun 2016 05:13:36 +0000 (07:13 +0200)]
Update fr locale (#744)

Refs. #728

7 years agoPrevent accidental command activation after pressing `/`
Simon Lydell [Mon, 30 May 2016 14:36:15 +0000 (16:36 +0200)]
Prevent accidental command activation after pressing `/`

7 years agoUpdate zh-TW locale (#743)
Salas [Mon, 30 May 2016 14:30:28 +0000 (22:30 +0800)]
Update zh-TW locale (#743)

Refs. #728

7 years agoVimFx v0.16.1 v0.16.1
Simon Lydell [Sun, 29 May 2016 19:09:58 +0000 (21:09 +0200)]
VimFx v0.16.1

7 years agoFix crash in the `zF` command
Simon Lydell [Sun, 29 May 2016 19:08:32 +0000 (21:08 +0200)]
Fix crash in the `zF` command

7 years agoVimFx v0.16.0 v0.16.0
Simon Lydell [Sun, 29 May 2016 18:23:19 +0000 (20:23 +0200)]
VimFx v0.16.0

7 years agoUpdate devDependencies
Simon Lydell [Sun, 29 May 2016 18:13:39 +0000 (20:13 +0200)]
Update devDependencies

7 years agoImprove nonCoveredPoint checks
Simon Lydell [Sun, 29 May 2016 09:29:34 +0000 (11:29 +0200)]
Improve nonCoveredPoint checks

- Skip trying to the right of a covering element if that's further to
  the right than the element's rect.

- If the covering element is a parent to the element we're checking,
  don't try looking to the right of the parent. It is _very_ unlikely
  that we'll find the element we're checking there. Instead, try the
  most likely point to be non-covered: The center of the element. This
  needs to be done because of pseudo-elements of the parent element
  which might cover the link partly, likely at the edges. Fixes #742.

7 years agoInclude possibly covered elements for complementary hints
Simon Lydell [Sun, 29 May 2016 07:39:47 +0000 (09:39 +0200)]
Include possibly covered elements for complementary hints

There might be false positives when checking if an element is covered or
not. This commit includes covered elements when switching to
complementary hints (`<c-enter>` in Hints mode), so that you can target
for example links which are only partly covered.

See #742.

7 years agoImprove the Find next/previous commands
Simon Lydell [Fri, 27 May 2016 17:39:15 +0000 (19:39 +0200)]
Improve the Find next/previous commands

- Finding is asynchronous. This commit makes sure to wait until the
  finding is done before sending notifications (such as "Phrase not
  found"). This makes the notifications more reliable.
- Prevent the find bar from re-opening if there are no matches.
  Fixes #739.

7 years agoFix focus handling
Simon Lydell [Fri, 27 May 2016 07:29:46 +0000 (09:29 +0200)]
Fix focus handling

When blurring a UI element, we handle that blur after a timeout. If
the UI element was blurred due to focusing a frame element, the focus
events for that frame element occurs _before_ handling the UI blur. That
caused the focusType to be set according to the UI blur, and not
according to the frame focus. This meant that if you had the location
bar focused and clicked inside a text input in a web page, VimFx would
enter and then immediately exit "auto insert mode". This commit fixes
this issue by asking the frame script for the focusType if a 'focus' or
'blur' event is caught in the UI and the active element is the current
`<browser>` (instead of treating `<browser>` as focusType 'none').

Also, since commit fee33fa8, 'focusTypeChange' events are only sent when
_changing_ the focusType of a `vim`, _not_ when trying to set the
focusType to the same value as before. While that's good, it caused a
problem when switching tabs. When switching tabs, 'blur' events occur in
the old tab and (re-)'focus' events occur in the new tab, but no
focusType of any `vim` is necessarily changed. However, one tab might be
in "auto insert mode" while the other isn't, so the button would still
need to be updated. Therefore, this commit sends a 'focusTypeChange'
event when switching tabs.

See #738.

7 years agoUpdate es locale (#737)
strel [Tue, 24 May 2016 04:57:19 +0000 (06:57 +0200)]
Update es locale (#737)

Refs. #728

7 years agoUpdate zh-CN locale (#736)
av2000ii [Mon, 23 May 2016 05:02:31 +0000 (13:02 +0800)]
Update zh-CN locale (#736)

Refs. #728

7 years agoUpdate release procedure docs
Simon Lydell [Sun, 22 May 2016 16:32:29 +0000 (18:32 +0200)]
Update release procedure docs

7 years agoVimFx v0.15.1 v0.15.1
Simon Lydell [Sun, 22 May 2016 16:28:55 +0000 (18:28 +0200)]
VimFx v0.15.1

7 years agoUpdate release procedure docs
Simon Lydell [Sun, 22 May 2016 16:28:12 +0000 (18:28 +0200)]
Update release procedure docs

8 years agoUpdate ja locale (#734)
pluser [Sat, 21 May 2016 17:24:04 +0000 (02:24 +0900)]
Update ja locale (#734)

Refs. #728

8 years agoImprove hints on Twitter
Simon Lydell [Fri, 20 May 2016 18:55:16 +0000 (20:55 +0200)]
Improve hints on Twitter

- Removes a useless hint that covered the hint for showing more tweets.
  Thanks to @XrXr for reporting and suggesting a fix. Supersedes and
  closes #732.

- Adds a hint for each tweet, allowing to open it in the
  popup/modal/lightbox thingy.

8 years agoImprove focusType detection
Simon Lydell [Fri, 20 May 2016 15:35:35 +0000 (17:35 +0200)]
Improve focusType detection

Inputs focused and blurred inside the Evernote Web Clipper extension's
popup (which is an `<iframe>` injected into the browser UI) were
previously not detected (making it difficult to type into them without
triggering VimFx commands). That was because we have to check if events
really are UI events or not in order to support non-multi-process
Firefox (which expose web page content events to UI code), and
Evernote's elements seem to be indistinguishable from web page content.

This commit simply removes the check for where the event comes from when
looking for focusType changes. Luckily, it doesn't matter if we happen
to handle web page content events in the UI.

To avoid excessive 'focusTypeChange' events (a single focus or blur
might trigger 'focusTypeChange' twice now: Once in the UI code, and once
in the frame script), this commit also makes sure that setting the
focusType to the same value as before is a no-op.

Fixes #733.

8 years agoRemove unneeded line of code
Simon Lydell [Thu, 19 May 2016 05:14:52 +0000 (07:14 +0200)]
Remove unneeded line of code

8 years agoVimFx v0.15.0 v0.15.0
Simon Lydell [Wed, 18 May 2016 15:56:28 +0000 (17:56 +0200)]
VimFx v0.15.0

8 years agoUpdate devDependencies
Simon Lydell [Wed, 18 May 2016 15:52:59 +0000 (17:52 +0200)]
Update devDependencies

8 years agoUpdate nl locale (#731)
HJTP [Tue, 17 May 2016 15:22:20 +0000 (17:22 +0200)]
Update nl locale (#731)

Refs. #728.

8 years agoUpdate id locale (#730)
Yoppy Halilintar [Sun, 15 May 2016 17:27:11 +0000 (00:27 +0700)]
Update id locale (#730)

Refs. #728

8 years agoUpdate de locale (#729)
just-barcodes [Sun, 15 May 2016 14:51:17 +0000 (15:51 +0100)]
Update de locale (#729)

Refs. #728

8 years agoDon't trigger VimFx commands in some fancy text inputs
Simon Lydell [Sun, 15 May 2016 13:22:42 +0000 (15:22 +0200)]
Don't trigger VimFx commands in some fancy text inputs

Fixes #725.

8 years agoRemove unnecessary newline
Simon Lydell [Sun, 15 May 2016 12:46:59 +0000 (14:46 +0200)]
Remove unnecessary newline

8 years agoAdd tests for and clean up parse-prefs.coffee
Simon Lydell [Sun, 15 May 2016 12:41:23 +0000 (14:41 +0200)]
Add tests for and clean up parse-prefs.coffee

8 years agoSpeed up and refactor Hints mode
Simon Lydell [Sun, 8 May 2016 18:56:54 +0000 (20:56 +0200)]
Speed up and refactor Hints mode

This makes most hints show up on screen up to twice as fast as before.
The rest of the hints show up at the same speed as before. Hints
generation has been optimized for the common case, by looking for
markable elements in two passes (if needed and possible). First, we look
for common and fast-to-find elements (such as links); then we look for
everything else. Addresses #409.

Code has been pulled out of marker.coffee, modes.coffee and
hints.coffee, and put into the new marker-container.coffee. hints.coffee
was then renamed to markable-elements.coffee (because all it does now is
finding markable elements).

The concept of tagging elements as "semantic" has been removed. The idea
was to give "unsemantic" elements worse hints (so they wouldn't trump
links, for example). Now, such elements are usually found in the second
pass instead, which gives about the same effect.

`<c-enter>` in Hints mode no longer replaces all hints with new ones for
_all_ elements on screen. Instead, it replaces the hints with hints for
all _unmarked_ elements on screen. Pressing `<c-enter>` again toggles
back to the original hints.

There is a breaking API change for `vimfx.setHintMatcher(hintMatcher)`.
`hintMatcher` no longer receives and returns an object (of the shape
`{type, semantic}`), but instead simply receives and returns the `type`
of the element.

8 years agoMake it easier to find how to customize hint marker font size
Simon Lydell [Sun, 15 May 2016 10:55:10 +0000 (12:55 +0200)]
Make it easier to find how to customize hint marker font size

See #727.

8 years agoFix a failing test
Simon Lydell [Sat, 14 May 2016 14:35:10 +0000 (16:35 +0200)]
Fix a failing test

8 years agoPin the coffee-script version
Simon Lydell [Sat, 14 May 2016 10:58:19 +0000 (12:58 +0200)]
Pin the coffee-script version

The very latest commits of coffee-script break coffeelint. This pins the
coffee-script dependency to a commit that both compiles VimFx and runs
coffeelint as intended.

8 years agoFix frame scripts being loaded more than once sometimes
Simon Lydell [Fri, 13 May 2016 06:05:03 +0000 (08:05 +0200)]
Fix frame scripts being loaded more than once sometimes

1. Open several tabs.
2. Set Firefox to remember your tabs between sessions.
3. Restart Firefox. All but the current tab will now be in a "pending"
   (unloaded) state.
4. Update/re-install VimFx.
5. Visit one of the pending tabs.

Now, the frame script will be loaded _twice_ in that tab, which for
example causes `f` to produce double-clicks. This is especially
noticeable during development, when you update/re-install VimFx all the
time.

The reason is that Firefox does not seem to load frame scripts in
pending tabs immediately. Instead, the URI to the frame script we asked
to load is remembered and then loaded when you actually visit the
pending tab in question. If you update VimFx before doing so, yet one
frame script URI will be pushed to that stack, causing _two_ instances
of it to be loaded when visiting the tab. Both of those will be from the
new VimFx version; the URIs are the same, and the file at that URI has
now been updated.

This commit attempts to solve this problem by generating a
`bootstrap-frame-$BUILD_TIME.js` file (which simply runs
`bootstrap.coffee`) and loading that as a frame script. This means that
old saved frame script URIs will point to non-existing files and thus
be harmless.

8 years agoFix arithmetic mistakes in `isInsideViewport`
Simon Lydell [Wed, 11 May 2016 15:12:31 +0000 (17:12 +0200)]
Fix arithmetic mistakes in `isInsideViewport`

8 years agoUpdate zh-CN locale (#726)
av2000ii [Tue, 10 May 2016 05:04:07 +0000 (13:04 +0800)]
Update zh-CN locale (#726)

8 years agoVimFx v0.14.3 v0.14.3
Simon Lydell [Sun, 8 May 2016 14:36:01 +0000 (16:36 +0200)]
VimFx v0.14.3

8 years agoFix `scroll.reset_timeout` pref typo
Simon Lydell [Sun, 8 May 2016 14:30:05 +0000 (16:30 +0200)]
Fix `scroll.reset_timeout` pref typo

8 years agoVimFx v0.14.2 v0.14.2
Simon Lydell [Sun, 8 May 2016 12:12:04 +0000 (14:12 +0200)]
VimFx v0.14.2

8 years agoUpdate devDependencies
Simon Lydell [Sun, 8 May 2016 11:44:17 +0000 (13:44 +0200)]
Update devDependencies

8 years agoDon't break the Developer Toolbar when pressing `<escape>`
Simon Lydell [Sun, 8 May 2016 09:48:03 +0000 (11:48 +0200)]
Don't break the Developer Toolbar when pressing `<escape>`

Fixes #723.

8 years agoFix devtools detection in newer Firefox versions
Simon Lydell [Sun, 8 May 2016 09:24:16 +0000 (11:24 +0200)]
Fix devtools detection in newer Firefox versions

8 years agoFix smooth scrolling speed in newer Firefox versions
Simon Lydell [Sun, 8 May 2016 07:34:48 +0000 (09:34 +0200)]
Fix smooth scrolling speed in newer Firefox versions

The following pseudo-code used to work:

    setFirefoxSpringConstant()
    startScrollingSmoothly()
    resetFirefoxSpringConstant()
    // Some time later: Smooth scrolling finishes.

However, in some newer Firefox version that's changed.
`resetFirefoxSpringConstant` now has to be called when the smooth
scrolling is done, it seems. Unfortunately there appears to be no way of
knowing when that's the case. Instead, this commit introduces a timeout
before the spring constant pref is reset. The timeout can be customized
via the `scroll.reset_timeout` pref if needed. Special care was taken so
that, for example, holding `j` to scroll would only reset the pref
_once_ (after the last scroll command) and to the correct value.

Imprint / Impressum