]> git.gir.st - VimFx.git/log
VimFx.git
7 years agoImprove `translations` documentation
Simon Lydell [Sun, 11 Sep 2016 13:46:47 +0000 (15:46 +0200)]
Improve `translations` documentation

7 years agoConsistently refer to options as "options"
Simon Lydell [Sun, 11 Sep 2016 12:15:00 +0000 (14:15 +0200)]
Consistently refer to options as "options"

In documentation, UI and error messages, consistently refer to options
af "options", not "settings" and not "prefs".

7 years agoDon't hide changed notification when exiting Hints mode
Simon Lydell [Sat, 10 Sep 2016 02:47:46 +0000 (04:47 +0200)]
Don't hide changed notification when exiting Hints mode

For example, if the `f` command is used to click the "Export all" button
in VimFx's settings page in the Add-ons Manager, the export notification
was only visible until `hints.matched_timeout` had passed.

7 years agoShow pref name for regular options in docs
Simon Lydell [Sat, 10 Sep 2016 02:32:56 +0000 (04:32 +0200)]
Show pref name for regular options in docs

7 years agoUpdate dependencies
Simon Lydell [Thu, 8 Sep 2016 15:38:51 +0000 (17:38 +0200)]
Update dependencies

- vim-like-key-notation@1.0.1 simply has a smaller download size.

- n-ary-huffman@3.0.0 creates better hints for links with the same area.
  Instead of giving the _last_ of those the best hint, the _first_ one
  gets it.

7 years agoImplement filtering hints by text and related changes
Simon Lydell [Sat, 27 Aug 2016 15:58:44 +0000 (17:58 +0200)]
Implement filtering hints by text and related changes

This brings several more or less breaking changes:

- Non-hint chars now filter hint markers by the text of their elements,
  using an algorithm similar to the location bar (split the search term
  on whitespace; all the items must occur in the search text, case
  insensitively, and may overlap). The matched text is highlighted on
  screen. If all remaining hints are the same, they are automatically
  activated. All of this can be turned off via prefs, though.

- Since space is used to filter hint markers by element text, the
  already existing `<space>` shortcut for rotating hint markers had to
  be changed. It is now `<c-space>`. (`<s-space>` remains unchanged.)

- Uppercase hint chars are now allowed. This is so that people who
  prefer filtering by text in the first hand can use uppercase hint
  chars. If mixed case is used, `text-transform: uppercase;` is not
  applied, to avoid confusion.

- Since using uppercase characters for filtering hint markers by element
  text and lowercase characters for hint chars (or vice versa) is now a
  thing, holding shift no longer lets you peek through the hint markers,
  because that felt like the markers blinking all the time. Instead, you
  now have to hold shift+control to peek through.

- Hint markers are now placed immediately to left of its element's text
  if it would cover the text otherwise. This is because when filtering
  hints by text, it can be quite difficult to see what to type
  otherwise. This also turned out to be helpful even when only using the
  hints (like before). It’s nice being able to see all the link text in
  many cases.

- Hint markers now get their `z-index` assigned based on their element's
  area, not their weight. It's confusing when a smaller element's hint
  cover the hint of a larger element. This could be the case where there
  are lots of small profile image links all with the same `href`.
  Previously, all those links got `z-index` based on their combined
  area. Now, their individual areas are used instead. This problem
  became apparent because of the above bullet point.

- The hint marker(s) with the best hint are now highlighted in blue.

- `<enter>` now activates the highlighted marker(s). `<c-enter>` and
  `<a-enter>` can be used to toggle where links open, just as when
  using those modifiers with the last hint char. However, these
  shortcuts were already taken, so the old ones had to be given new
  shortcuts:

  - "Increase count" now uses `<up>` (instead of `<enter>`).
  - "Toggle complementary" now uses `<c-backspace>` (instead of
    `<c-enter>`).

- All existing hints prefs were renamed from starting with `hint_` or
  `hints_` to starting with `hints.`, for consistency and organization.
  A few new prefs starting with `hints.` were added as well. Migrations
  are written for this.

  This also unveiled a problem. If a config file tries to set an old
  pref and VimFx is upgraded, the config file will throw errors. This is
  bad user experience, so a system for allowing old names was added.
  However, that might mean that users never notice that they use an
  outdated name and never update their config files. Therefore, old
  names are only allowed when the config file is loaded automatically
  (on startup), but _not_ when it is reloaded using `gC`. The idea is
  that people use `gC` while working on their config file, which usually
  involves fixing errors. Then they could just as well fix the old pref
  names as well.

- The options in VimFx's settings page in the Add-ons Manager have been
  slightly re-ordered to play better with the new options added, and to
  promote some very important prefs to the top.

All of the above required some significant refactoring of Hints mode,
that should make it more robust.

Fixes #340. A big thanks to @doy who got this all started with #789.

7 years agoMake hint markers smaller
Simon Lydell [Mon, 29 Aug 2016 14:46:17 +0000 (16:46 +0200)]
Make hint markers smaller

The hint markers are styled with `font: menu;` to get as close to the
user's system and preferences as possible. However, that turns out to be
slighly too big on all systems I've seen.

This commit still uses `font: menu;`, but then reduces the font size of
that to 80%, by using a clever CSS trick: `font: menu;` was moved to the
hints container, and the markers themselves use `font-size: 0.8em;`.

7 years agoAdd `ec` for opening the context menu of elements
Simon Lydell [Fri, 9 Sep 2016 22:38:35 +0000 (00:38 +0200)]
Add `ec` for opening the context menu of elements

Fixes #804.

7 years agoAdd `ep` for opening links in new private windows
Simon Lydell [Fri, 9 Sep 2016 19:11:56 +0000 (21:11 +0200)]
Add `ep` for opening links in new private windows

Fixes #771.

7 years agoAdd `gB` for quickly editing the blacklist
Simon Lydell [Fri, 9 Sep 2016 18:46:28 +0000 (20:46 +0200)]
Add `gB` for quickly editing the blacklist

This also improves the description of the blacklist option, mentioning
that the patterns must match the _entire_ URL, since many people seem to
overlook this fact.

Fixes #593 and #677.

7 years agoAdd UI to export, import and reset all prefs
Simon Lydell [Fri, 9 Sep 2016 14:21:55 +0000 (16:21 +0200)]
Add UI to export, import and reset all prefs

See #262, #245, #267, #625, #802, #713.

7 years agoAdd `gulp hints.html` to help styling hint markers
Simon Lydell [Thu, 8 Sep 2016 07:34:28 +0000 (09:34 +0200)]
Add `gulp hints.html` to help styling hint markers

7 years agoFix alphabetic sorting of functions in utils.coffee
Simon Lydell [Wed, 7 Sep 2016 05:51:14 +0000 (07:51 +0200)]
Fix alphabetic sorting of functions in utils.coffee

7 years agoFix missing hint marker activation feedback for `v`
Simon Lydell [Tue, 30 Aug 2016 05:50:30 +0000 (07:50 +0200)]
Fix missing hint marker activation feedback for `v`

7 years agoFix missing hint markers when re-entering Hints mode quickly
Simon Lydell [Mon, 29 Aug 2016 20:11:41 +0000 (22:11 +0200)]
Fix missing hint markers when re-entering Hints mode quickly

1. Enter Hints mode.
2. Press `<escape>` to exit it.
3. Press `f` to re-enter Hints mode within `hints_timeout` milliseconds.

This used to result in re-entering Hints mode as expected, but with no
hint markers on screen because of a timeout from the last Hints mode
session that removed the hints container. Removing the hints container
is done by ID for robustness, so it doesn't help that the hints
container actually is a new DOM element at that time.

This commit fixes the above problem, and makes the logic more robust.

In `onLeave` for Hints mode, it makes sense to always try to remove the
Hints container, so that it may not be accidentally be left on screen.
However, it does not make sense to do so after a timeout, which was
previously the case. Now, it is done _immediately_ instead.

The only case where he timeout is wanted, is when a hint marker just has
been matched. This commit also adds a check in that timeout callback that
Hints mode hasn't been re-entered before removing the hints container.

7 years agoFix initial visibility of second-pass hint markers
Simon Lydell [Sat, 27 Aug 2016 21:26:06 +0000 (23:26 +0200)]
Fix initial visibility of second-pass hint markers

1. Go to a site where there is a noticeable delay between the two passes
   for the `f` command, such as on reddit.com.
2. Press a prefix hint char there before the second pass has completed.

When the second pass completes, the hint markers for that pass will be
shown, even though they cannot start with the prefix hint char you
pressed. This commit makes sure that the hint markers for the second
pass start out hidden if needed.

7 years agoImprove hints support for CodeMirror
Simon Lydell [Sat, 27 Aug 2016 16:05:43 +0000 (18:05 +0200)]
Improve hints support for CodeMirror

On https://gcc.godbolt.org/ the `<textarea>` that needs a hint is 0px
wide instead of the usual 1px.

7 years agoVimFx v0.18.1 v0.18.1
Simon Lydell [Sat, 27 Aug 2016 13:18:16 +0000 (15:18 +0200)]
VimFx v0.18.1

7 years agoMinor documentation fixes. (#801)
lolilolicon [Fri, 26 Aug 2016 10:33:55 +0000 (18:33 +0800)]
Minor documentation fixes. (#801)

7 years agoPartly revert "Use `prefs.get` directly in events-frame.coffee"
Simon Lydell [Mon, 22 Aug 2016 18:10:03 +0000 (20:10 +0200)]
Partly revert "Use `prefs.get` directly in events-frame.coffee"

This partly reverts commit e7f361942c2b07234e889804975e93c21c1f5baf.

That commit switched to using `prefs.get` directly in
events-frame.coffee instead of using `messageManager.get`. That avoids
synchronous messages, which is a good thing.

However, I forgot that when doing so, `vimfx.addOptionOverrides` won't
take effect.

This commit partly reverts to getting options via synchronous messages
again. In the very frequent 'keydown' event direct `prefs.get` is still
used for the unlikely-to-be-overridden `focus_previous_key` and
`focus_next_key` prefs, while synchronous messaging is used in the less
frequent 'focus' event, which enables the use case of overriding
`prevent_autofocus` on select pages.

7 years agoPrevent `vimfx.addOptionOverrides` from crashing on startup
Simon Lydell [Mon, 22 Aug 2016 17:52:12 +0000 (19:52 +0200)]
Prevent `vimfx.addOptionOverrides` from crashing on startup

Fixes #795.

7 years agoImprove the `vimfx.addOptionOverrides` example
Simon Lydell [Sat, 20 Aug 2016 10:17:12 +0000 (12:17 +0200)]
Improve the `vimfx.addOptionOverrides` example

See #791.

7 years agoVimFx v0.18.0 v0.18.0
Simon Lydell [Sat, 20 Aug 2016 09:40:07 +0000 (11:40 +0200)]
VimFx v0.18.0

7 years agoDocument that VimFx overrides `'`
Simon Lydell [Sat, 20 Aug 2016 09:27:25 +0000 (11:27 +0200)]
Document that VimFx overrides `'`

7 years agoFix documentation typos
Simon Lydell [Sat, 20 Aug 2016 09:18:21 +0000 (11:18 +0200)]
Fix documentation typos

7 years agoUpdate devDependencies
Simon Lydell [Sat, 20 Aug 2016 09:04:31 +0000 (11:04 +0200)]
Update devDependencies

7 years agoChange `` ` `` into `'`
Simon Lydell [Sat, 20 Aug 2016 08:40:48 +0000 (10:40 +0200)]
Change `` ` `` into `'`

This is both for the `` ` `` shortcut (go to mark) and the `` ` `` mark
(last position). Both `` ` `` and `'` are used in Vim. `'` is a better
default, because it is easier to type -- both on an en-US QWERTY
keyboard and, more importantly, on some international layouts, such as
the sv-SE layout.

Refs. #788.

7 years agoChange `zr` to `gC`
Simon Lydell [Sat, 20 Aug 2016 08:41:28 +0000 (10:41 +0200)]
Change `zr` to `gC`

`zr` was the only shortcut starting with `z`. This frees that key up.

Refs. #788.

7 years agoChange default shortcuts for some hint commands
Simon Lydell [Sat, 20 Aug 2016 08:39:48 +0000 (10:39 +0200)]
Change default shortcuts for some hint commands

Many of the old ones were difficult to remember, and there was no space
for adding new ones.

Refs. #788.

7 years agoImprove docs on "options object" with examples
Simon Lydell [Sat, 20 Aug 2016 07:21:10 +0000 (09:21 +0200)]
Improve docs on "options object" with examples

See #791.

7 years agoUpdate fr locale
Mickaël RAYBAUD-ROIG [Wed, 10 Aug 2016 17:09:41 +0000 (19:09 +0200)]
Update fr locale

Refs. #728

7 years agoFix uncaught error on click in web page content
Simon Lydell [Wed, 10 Aug 2016 11:03:04 +0000 (13:03 +0200)]
Fix uncaught error on click in web page content

Introduced in commit 00eefb39.

7 years agoFix broken `yv` command
Simon Lydell [Wed, 10 Aug 2016 10:59:37 +0000 (12:59 +0200)]
Fix broken `yv` command

Regression since commit c4c41736.

7 years agoMake it possible to create custom hint commands
Simon Lydell [Wed, 10 Aug 2016 10:08:32 +0000 (12:08 +0200)]
Make it possible to create custom hint commands

My first idea was to use `vim.enterMode('hints', ...)`. However, that's
too complicated to be useful for any user.

Actually, I found that `vim.enterMode(...)` is too complicated for most
(all?) modes, so I decided to make it private (removing it from the
public API) while at it. (I also made the arguments of
`vim.enterMode`/`mode.onEnter` more consistent with each other.)

I also considered exposing the entire "API" that the `f` commands use
internally. However, that's more complicated than the average user
needs, and would increase the API surface _a lot._

Instead, the `f` commands now take a `callbackOverride` argument. This
lets you choose the `f` command that matches the elements you're looking
for and the override what happens when a hint marker is matched.

Fixes #785. Fixes #654.

7 years agoFix unmousable bottom-right corner of the page scrollbars
Simon Lydell [Sat, 6 Aug 2016 14:26:57 +0000 (16:26 +0200)]
Fix unmousable bottom-right corner of the page scrollbars

VimFx's statuspanel (for notifications) had `pointer-events: auto;`
instead of `pointer-events: none;`, which statuspanels have by default.
The reason was to allow clicking the statuspanel to hide it.

This made it impossible to interact with the bottom-right corner of the
page scrollbars. The invisible statuspanel captured any clicks there.

This commit hides notifications when clicking _anything_ instead, and
removes `pointer-events: auto;`.

Fixes #787.

7 years agoFix toggling of the help dialog by the button
Simon Lydell [Thu, 14 Jul 2016 12:31:04 +0000 (14:31 +0200)]
Fix toggling of the help dialog by the button

7 years agoUpdate ru locale (#783)
Simon Lydell [Mon, 11 Jul 2016 20:26:22 +0000 (22:26 +0200)]
Update ru locale (#783)

Refs. #728

7 years agoVimFx v0.17.4 v0.17.4
Simon Lydell [Mon, 11 Jul 2016 17:24:08 +0000 (19:24 +0200)]
VimFx v0.17.4

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

Imprint / Impressum