]> git.gir.st - VimFx.git/log
VimFx.git
9 years agoRelease v0.5.13 v0.5.13
Simon Lydell [Sat, 2 Aug 2014 10:27:37 +0000 (12:27 +0200)]
Release v0.5.13

9 years agoMerge pull request #360 from lydell/last-interaction
Simon Lydell [Sat, 2 Aug 2014 10:04:54 +0000 (12:04 +0200)]
Merge pull request #360 from lydell/last-interaction

Only allow focus events immediately after an interaction

9 years agoDisallow adding conflicting shorcuts
Simon Lydell [Sun, 27 Jul 2014 18:09:20 +0000 (20:09 +0200)]
Disallow adding conflicting shorcuts

This has tripped a lot of users up. See #268, #359, #333, #283.

9 years agoFix #103: Make image zoom toggle keyboard accessible
Simon Lydell [Sun, 27 Jul 2014 10:33:52 +0000 (12:33 +0200)]
Fix #103: Make image zoom toggle keyboard accessible

When navigating directly to an image, and the image does not fit the
screen, it is re-sized so it does. The mouse cursor becomes a magnifying
glass when hovering the image. By clicking you can toggle between native
and re-sized.

As discussed in #355, to keep things simple we now make such images
markable. Using the default mappings and hintchars, the shortcut to
toggle zoom then becomes 'ff'.

This commit is based on #104 by @LordJZ.

Example image:
<http://upload.wikimedia.org/wikipedia/commons/e/e2/Rain_ot_ocean_beach.jpg>

9 years agoRemove invalid/unnecessary option descriptions
Simon Lydell [Sun, 27 Jul 2014 09:53:20 +0000 (11:53 +0200)]
Remove invalid/unnecessary option descriptions

9 years agoOnly allow focus events immediately after an interaction
Simon Lydell [Thu, 19 Jun 2014 21:17:54 +0000 (23:17 +0200)]
Only allow focus events immediately after an interaction

Replace the autofocus prevention with suppressing _all_ focus events
that didn’t happen directly after an interaction (keypress or click)
with the page.

Strictly speaking, autofocus may only happen during page load, which
means that we should only prevent focus events during page load.
However, it is very difficult to reliably determine when the page load
ends. Moreover, a page may load very slowly. Then it is likely that the
user tries to focus something before the page has loaded fully.
Therefore focus events that aren’t reasonably close to a user
interaction (click or key press) are blurred (regardless of whether the
page is loaded or not -- but that isn’t so bad: if the user doesn’t like
autofocus, he doesn’t like any automatic focusing, right? This is
actually useful on devdocs.io). There is a slight risk that the user
presses a key just before an autofocus, causing it not to be blurred,
but that’s not likely. Lastly, the autofocus prevention is restricted to
`<input>` elements, since only such elements are commonly autofocused.
Many sites have buttons which inserts a `<textarea>` when clicked (which
might take up to a second) and then focuses the `<textarea>`. Such focus
events should _not_ be blurred.

9 years agoMerge pull request #343 from lydell/better-find-mode
Simon Lydell [Sun, 27 Jul 2014 09:58:16 +0000 (11:58 +0200)]
Merge pull request #343 from lydell/better-find-mode

Better find mode

9 years agoMerge pull request #354 from sirodoht/greek-locale
Simon Lydell [Fri, 25 Jul 2014 11:31:24 +0000 (13:31 +0200)]
Merge pull request #354 from sirodoht/greek-locale

Update greek translation

9 years agoUpdate greek translation
Theodore Keloglou [Wed, 16 Jul 2014 14:35:55 +0000 (17:35 +0300)]
Update greek translation
Translate prevent_autofocus strings

9 years agoUse a `WeakMap` in `utils.Bucket`
Simon Lydell [Sun, 15 Jun 2014 15:30:04 +0000 (17:30 +0200)]
Use a `WeakMap` in `utils.Bucket`

9 years agoImprove find mode. Fix #342. Better Esc handling.
Simon Lydell [Sun, 15 Jun 2014 14:10:52 +0000 (16:10 +0200)]
Improve find mode. Fix #342. Better Esc handling.

Previously, find mode only worked if you used VimFx's shortcuts to enter
it. If you opened the find bar some other way, you weren't able to end
the search using Enter, and the n/N commands wouldn't repeat what you
just searched for.  Now, find mode is entered as soon as the findbar
input gets focused, no matter how it was focused. Find mode is also
exited as soon as the findbar input is blurred. Previously, if you
happened to unfocus the findbar without using Esc or Enter, such as
clicking or tabbing away, then you'd still be in find mode, making all
keypresses focus the findbar input rather than activate commands.

If the active element is editable during a keypress we used to pass that
keypress along to the browser -- regardless of the current mode --
instead of activating commands. The findbar input is also an editable
element, but when it is focused we want Enter to close the findbar.
Therefore we used to not pass along Enter to the browser. If the user
mapped Enter to a command, that meant that it would be impossible to
press enter in an input to type a newline, submit a search query, etc.
Now, we only use this automatic insert mode in normal mode instead.

The above also fixed another problem. We used to always pass Esc to the
browser in normal mode, even if Esc is mapped to a command. Now, that is
not done if we’re blurring an element. That makes it possible to blur an
input inside a custom dialog without closing it (Esc almost always
closes custom dialogs).  This makes it possible to use devdocs.io with
VimFx, which was very difficult before.

9 years agoDocument commit 1b874f1b7b3
Simon Lydell [Sun, 15 Jun 2014 09:20:34 +0000 (11:20 +0200)]
Document commit 1b874f1b7b3

9 years agoMerge pull request #341 from akhodakivskiy/next-prev-matching
Anton Khodakivskiy [Fri, 13 Jun 2014 04:46:34 +0000 (21:46 -0700)]
Merge pull request #341 from akhodakivskiy/next-prev-matching

next/prev commands

9 years agofix recursion in isElementGoogleEditable impl
Anton Khodakivskiy [Thu, 12 Jun 2014 23:40:33 +0000 (16:40 -0700)]
fix recursion in isElementGoogleEditable impl

9 years agoBetter check for Google g_editable in isElementEditable that fixes some issues in...
Anton Khodakivskiy [Thu, 12 Jun 2014 20:16:09 +0000 (13:16 -0700)]
Better check for Google g_editable in isElementEditable that fixes some issues in Gmail

9 years agonext/prev commands - search for patterns in element attributes as well. Currenty...
Anton Khodakivskiy [Wed, 11 Jun 2014 00:17:14 +0000 (17:17 -0700)]
next/prev commands - search for patterns in element attributes as well. Currenty optimized for Gmail

9 years agoFix #334: Make links without `href` markable
Simon Lydell [Wed, 4 Jun 2014 17:43:56 +0000 (19:43 +0200)]
Fix #334: Make links without `href` markable

Commit be94b559b:

> - Only `<a>` elements with a `href` attribute should be matched, since
>   HTML5 allows `<a>` elements to omit `href`:
>
>   > If the a element has no href attribute, then the element represents
>   > a placeholder for where a link might otherwise have been placed, if
>   > it had been relevant, consisting of just the element's contents.
>
>   Reference:
>   <http://developers.whatwg.org/text-level-semantics.html#the-a-element>

That’s the spec. In the reality, people use all sorts of weird markup.
Some sites (such as StackExchange sites) leave out the `href` property
and use the anchor as a JavaScript-powered button (instead of just using
the `button` element).

This commit reverts the change to link matching in be94b559b. A side
effect is that sites using links without `href` in compliance with the
spec will get extranous markers for those links. It’s better to show too
many markers than too few, though.

10 years agoBuild 0.5.12 v0.5.12
Simon Lydell [Sun, 1 Jun 2014 19:05:03 +0000 (21:05 +0200)]
Build 0.5.12

10 years agoVersion bump and changelog update
Simon Lydell [Sun, 1 Jun 2014 19:04:09 +0000 (21:04 +0200)]
Version bump and changelog update

10 years agoFix: Autofocus prevention got stuck by navigating the history
Simon Lydell [Sun, 1 Jun 2014 18:59:35 +0000 (20:59 +0200)]
Fix: Autofocus prevention got stuck by navigating the history

Either going forward and backward in the history, or using
`history.pushState()` caused the autofocus prevention to get stuck,
making it impossible to focus inputs.

10 years agoBuild version 0.5.11 v0.5.11
Simon Lydell [Sun, 1 Jun 2014 11:36:39 +0000 (13:36 +0200)]
Build version 0.5.11

10 years agoVersion bump and changelog update
Simon Lydell [Sun, 1 Jun 2014 11:34:59 +0000 (13:34 +0200)]
Version bump and changelog update

10 years agoMerge pull request #322 from lydell/fix-autofocus
Simon Lydell [Sun, 1 Jun 2014 10:53:51 +0000 (12:53 +0200)]
Merge pull request #322 from lydell/fix-autofocus

Fix autofocus

10 years agoRemove stray `console.log`s
Simon Lydell [Tue, 27 May 2014 19:40:24 +0000 (21:40 +0200)]
Remove stray `console.log`s

10 years agoRaise the z-indexes used to trump youtube
Simon Lydell [Sun, 25 May 2014 20:15:41 +0000 (22:15 +0200)]
Raise the z-indexes used to trump youtube

Youtube uses 1999999999 as z-index for its top bar, which is a lot
higher than VimFx used for the help dialog and markers. This caused the
top bar to overlap the help dialog, and, more importantly, the markers,
making it impossible to see the marker for the search box, for example.

This commit raises VimFx’s z-indexes to trump Youtube.

10 years agoCleanup CSS a bit
Simon Lydell [Sun, 25 May 2014 20:02:22 +0000 (22:02 +0200)]
Cleanup CSS a bit

10 years agoRemove old VimFxFindInput CSS
Simon Lydell [Sun, 25 May 2014 19:58:01 +0000 (21:58 +0200)]
Remove old VimFxFindInput CSS

10 years agoFix #309: Autofocus prevention is broken
Simon Lydell [Sun, 25 May 2014 19:20:56 +0000 (21:20 +0200)]
Fix #309: Autofocus prevention is broken

Autofocus was broken by some Firefox update, possibly version 29. This
commit fixes it again. It also fixes a bug where autofocus was prevented
even on blacklisted sites, and cleans the code a bit.

10 years agoImprove contenteditable detection
Simon Lydell [Sun, 25 May 2014 17:00:46 +0000 (19:00 +0200)]
Improve contenteditable detection

10 years agoBump minimum Firefox version (see #314)
Simon Lydell [Fri, 16 May 2014 19:16:56 +0000 (21:16 +0200)]
Bump minimum Firefox version (see #314)

10 years agoSlightly improve markable element matching
Simon Lydell [Fri, 16 May 2014 18:49:38 +0000 (20:49 +0200)]
Slightly improve markable element matching

- Only `<a>` elements with a `href` attribute should be matched, since
  HTML5 allows `<a>` elements to omit `href`:

  > If the a element has no href attribute, then the element represents
  > a placeholder for where a link might otherwise have been placed, if
  > it had been relevant, consisting of just the element's contents.

  Reference:
  <http://developers.whatwg.org/text-level-semantics.html#the-a-element>

- Elements with the `tabindex` attribute should be matched, but not
  `tabindex=-1`, which means explicitly saying that the element should
  _not_ be focusable.

10 years agoLet the Esc command close tab groups
Simon Lydell [Fri, 16 May 2014 18:42:31 +0000 (20:42 +0200)]
Let the Esc command close tab groups

Since commit 1fd30eca9 makes opening the tab groups view (ctrl-shift-e)
about the same as focusing a text input (passing all key strokes to the
browser), the Esc command must be able to exit from it.

10 years agoFix #280: Use `[rel]` for prev/next link matching
Simon Lydell [Fri, 16 May 2014 18:26:16 +0000 (20:26 +0200)]
Fix #280: Use `[rel]` for prev/next link matching

The standard way of marking up the previous or next page of a series is
to use a `<link>` or `<a>` element with a `rel` attribute.

We don’t bother with `<link>`s since the commands are substitutes for
clicking a visible element. (And at least in my experience, they’re not
commonly used.) Moreover, if there’s a `<link>` with a `rel` attribute,
there’s likely a corresponding `<a>`, too.

We first try to find a nicely marked up link, then we fall back on
pattern matching of the text contents of the links.

The spec on the `rel` attribute:
<http://www.w3.org/TR/html5/links.html#linkTypes>

How Google handles it:
<https://support.google.com/webmasters/answer/1663744?hl=en>

This commit is based on #313 by @zhuochun.

10 years agoExpose xpath utils
Simon Lydell [Tue, 13 May 2014 19:14:35 +0000 (21:14 +0200)]
Expose xpath utils

Previously xpath usage was closely tied to the `getMarkableElements`
function.

10 years agoFix #318: Support Tab Groups
Simon Lydell [Tue, 13 May 2014 19:40:54 +0000 (21:40 +0200)]
Fix #318: Support Tab Groups

Just like when a text input is focused, send all keys to the browser.
This allows you to type the name of a tab to select it. Moreover,
commands doesn’t make sense when Tab Groups is opened, since they affect
the current tab, which is hidden _behind_ Tab Groups, out of view!

10 years agoFix #310: Broken focus search bar command
Simon Lydell [Thu, 8 May 2014 19:14:58 +0000 (21:14 +0200)]
Fix #310: Broken focus search bar command

10 years agoAdd missing parenthesis
Simon Lydell [Thu, 8 May 2014 17:37:19 +0000 (19:37 +0200)]
Add missing parenthesis

10 years agoMerge pull request #312 from zhuochun/bug-263-can-add-blank-hotkey
Simon Lydell [Thu, 8 May 2014 16:38:53 +0000 (18:38 +0200)]
Merge pull request #312 from zhuochun/bug-263-can-add-blank-hotkey

Fix #263 can add blank hotkey

10 years agoclean up code around conflict_cmd
Wang Zhuochun [Wed, 7 May 2014 19:13:55 +0000 (03:13 +0800)]
clean up code around conflict_cmd

10 years agoignore empty cmd value
Wang Zhuochun [Wed, 7 May 2014 19:13:28 +0000 (03:13 +0800)]
ignore empty cmd value

10 years ago0.5.10 vesion bump and changelog update v0.5.10
Anton Khodakivskiy [Wed, 7 May 2014 17:20:18 +0000 (10:20 -0700)]
0.5.10 vesion bump and changelog update

10 years agoFix bug when loading default preferences
Anton Khodakivskiy [Wed, 7 May 2014 17:18:55 +0000 (10:18 -0700)]
Fix bug when loading default preferences

10 years agoUpdate 0.5.9 changelog to mention gg/G speedup fix
Simon Lydell [Mon, 5 May 2014 18:54:43 +0000 (20:54 +0200)]
Update 0.5.9 changelog to mention gg/G speedup fix

10 years agoAdded all historic builds
Anton Khodakivskiy [Mon, 5 May 2014 06:05:56 +0000 (23:05 -0700)]
Added all historic builds

10 years agoMerge branch 'develop' 0.5.9
Anton Khodakivskiy [Mon, 5 May 2014 05:59:14 +0000 (22:59 -0700)]
Merge branch 'develop'

10 years agoMerge branch 'develop' of github.com:akhodakivskiy/VimFx into develop
Anton Khodakivskiy [Mon, 5 May 2014 05:56:26 +0000 (22:56 -0700)]
Merge branch 'develop' of github.com:akhodakivskiy/VimFx into develop

10 years agoMerge branch 'release-0.5.9'
Anton Khodakivskiy [Mon, 5 May 2014 05:54:10 +0000 (22:54 -0700)]
Merge branch 'release-0.5.9'

10 years agoversion bump and changelog update
Anton Khodakivskiy [Mon, 5 May 2014 05:53:22 +0000 (22:53 -0700)]
version bump and changelog update

10 years agoFixed default properties
Anton Khodakivskiy [Mon, 5 May 2014 05:51:32 +0000 (22:51 -0700)]
Fixed default properties

10 years agoPut commands in the same order as the `commands` array
Simon Lydell [Wed, 30 Apr 2014 18:24:42 +0000 (20:24 +0200)]
Put commands in the same order as the `commands` array

10 years agoUpdate `command_insert_mode`
Simon Lydell [Wed, 30 Apr 2014 18:14:54 +0000 (20:14 +0200)]
Update `command_insert_mode`

10 years agoUpdate move tab commands
Simon Lydell [Wed, 30 Apr 2014 18:13:04 +0000 (20:13 +0200)]
Update move tab commands

10 years agoUpdate `command_restore_tab`
Simon Lydell [Wed, 30 Apr 2014 16:23:29 +0000 (18:23 +0200)]
Update `command_restore_tab`

10 years agoUpdate `command_back` and `command_forward`
Simon Lydell [Wed, 30 Apr 2014 16:11:59 +0000 (18:11 +0200)]
Update `command_back` and `command_forward`

10 years agoUpdate `command_tab_first` and `command_tab_last`
Simon Lydell [Wed, 30 Apr 2014 16:08:14 +0000 (18:08 +0200)]
Update `command_tab_first` and `command_tab_last`

10 years agoUpdate `command_home`
Simon Lydell [Wed, 30 Apr 2014 16:02:29 +0000 (18:02 +0200)]
Update `command_home`

10 years agoUpdate `command_tab_prev` and `command_tab_next`
Simon Lydell [Wed, 30 Apr 2014 15:56:43 +0000 (17:56 +0200)]
Update `command_tab_prev` and `command_tab_next`

10 years agoFix #189: Speed up scoll to top/bottom commands
Simon Lydell [Tue, 29 Apr 2014 18:33:26 +0000 (20:33 +0200)]
Fix #189: Speed up scoll to top/bottom commands

10 years agoUpdate stop commands
Simon Lydell [Tue, 29 Apr 2014 18:25:30 +0000 (20:25 +0200)]
Update stop commands

10 years agoUpdate reload commands
Simon Lydell [Tue, 29 Apr 2014 18:20:04 +0000 (20:20 +0200)]
Update reload commands

10 years agoUpdate `command_marker_yank` and `command_yank`
Simon Lydell [Tue, 29 Apr 2014 19:29:57 +0000 (21:29 +0200)]
Update `command_marker_yank` and `command_yank`

Conflicts:

extension/packages/utils.coffee

10 years agoUpdate `command_open_tab`
Simon Lydell [Tue, 29 Apr 2014 17:39:07 +0000 (19:39 +0200)]
Update `command_open_tab`

10 years agoUpdate `command_paste` and `command_paste_tab`
Simon Lydell [Tue, 29 Apr 2014 17:37:51 +0000 (19:37 +0200)]
Update `command_paste` and `command_paste_tab`

10 years agoUpdate `command_focus_search`
Simon Lydell [Tue, 29 Apr 2014 15:57:03 +0000 (17:57 +0200)]
Update `command_focus_search`

10 years agoUpdate `command_focus`
Simon Lydell [Tue, 29 Apr 2014 15:54:09 +0000 (17:54 +0200)]
Update `command_focus`

10 years agoUpdate `command_dev`
Simon Lydell [Tue, 29 Apr 2014 15:49:49 +0000 (17:49 +0200)]
Update `command_dev`

10 years agoAdd `Vim::rootWindow` for convenience
Simon Lydell [Mon, 28 Apr 2014 19:14:44 +0000 (21:14 +0200)]
Add `Vim::rootWindow` for convenience

10 years agoRemove the `storage` parameter for commands
Simon Lydell [Mon, 28 Apr 2014 18:40:22 +0000 (20:40 +0200)]
Remove the `storage` parameter for commands

None used it.

10 years ago0.5.8 version bump 0.5.8
Anton Khodakivskiy [Sat, 19 Apr 2014 00:20:26 +0000 (17:20 -0700)]
0.5.8 version bump

10 years agoMerge pull request #290 from cbertoldi/master
Anton Khodakivskiy [Wed, 5 Mar 2014 19:58:44 +0000 (11:58 -0800)]
Merge pull request #290 from cbertoldi/master

Added italian translation.

10 years agoAdded localization.
Carlo Bertoldi [Wed, 5 Mar 2014 19:55:24 +0000 (20:55 +0100)]
Added localization.

10 years agoAdded italian translation.
Carlo Bertoldi [Wed, 5 Mar 2014 19:20:55 +0000 (20:20 +0100)]
Added italian translation.

10 years agoMerge branch 'release-0.5.7' 0.5.7
Anton Khodakivskiy [Mon, 3 Mar 2014 18:40:35 +0000 (10:40 -0800)]
Merge branch 'release-0.5.7'

10 years agohotfix release. version bump and changelog update
Anton Khodakivskiy [Mon, 3 Mar 2014 18:40:18 +0000 (10:40 -0800)]
hotfix release. version bump and changelog update

10 years agoMerge branch 'master' into develop
Anton Khodakivskiy [Mon, 3 Mar 2014 18:34:55 +0000 (10:34 -0800)]
Merge branch 'master' into develop

10 years agoBug fixes
Anton Khodakivskiy [Mon, 3 Mar 2014 18:34:23 +0000 (10:34 -0800)]
Bug fixes

10 years agoMerge pull request #287 from mozillazg/zh-CN
Anton Khodakivskiy [Mon, 3 Mar 2014 05:16:07 +0000 (21:16 -0800)]
Merge pull request #287 from mozillazg/zh-CN

Update zh-CN localization

10 years agoUpdate zh-CN localization
Mozillazg [Sun, 2 Mar 2014 06:59:29 +0000 (14:59 +0800)]
Update zh-CN localization

10 years agoMerge branch 'develop'
Anton Khodakivskiy [Wed, 26 Feb 2014 21:55:11 +0000 (13:55 -0800)]
Merge branch 'develop'

10 years agoMerge branch 'release-0.5.6' into develop
Anton Khodakivskiy [Wed, 26 Feb 2014 21:52:47 +0000 (13:52 -0800)]
Merge branch 'release-0.5.6' into develop

10 years agoMerge branch 'release-0.5.6' 0.5.6
Anton Khodakivskiy [Wed, 26 Feb 2014 21:51:50 +0000 (13:51 -0800)]
Merge branch 'release-0.5.6'

10 years agoVersion bump, changelog update, bump max version to 29
Anton Khodakivskiy [Wed, 26 Feb 2014 21:51:07 +0000 (13:51 -0800)]
Version bump, changelog update, bump max version to 29

10 years agoFixed mistake in next/prev patterns
Anton Khodakivskiy [Wed, 26 Feb 2014 21:45:37 +0000 (13:45 -0800)]
Fixed mistake in next/prev patterns

10 years agoMerge branch 'develop' of github.com:akhodakivskiy/VimFx into develop
Anton Khodakivskiy [Wed, 26 Feb 2014 21:39:56 +0000 (13:39 -0800)]
Merge branch 'develop' of github.com:akhodakivskiy/VimFx into develop

10 years agoMerge pull request #273 from akhodakivskiy/prevent-autofocus
Anton Khodakivskiy [Wed, 26 Feb 2014 21:39:43 +0000 (13:39 -0800)]
Merge pull request #273 from akhodakivskiy/prevent-autofocus

Prevent autofocus

10 years agoPrevent autofocus by blurring the input if it's been focused in the first second...
Anton Khodakivskiy [Mon, 3 Feb 2014 17:14:51 +0000 (09:14 -0800)]
Prevent autofocus by blurring the input if it's been focused in the first second after loading is finished

10 years agoWorkaround for command shortcuts that start with letter c
Anton Khodakivskiy [Wed, 26 Feb 2014 21:36:32 +0000 (13:36 -0800)]
Workaround for command shortcuts that start with letter c

10 years agoMerge pull request #285 from sirodoht/develop
Anton Khodakivskiy [Wed, 26 Feb 2014 20:13:05 +0000 (12:13 -0800)]
Merge pull request #285 from sirodoht/develop

Update Greek localization

10 years agoUpdate Greek localization
Theodore Keloglou [Sun, 23 Feb 2014 16:17:47 +0000 (18:17 +0200)]
Update Greek localization

10 years agoMerge pull request #264 from lydell/zhuochun-enhance-follow-link
Simon Lydell [Tue, 18 Feb 2014 20:14:26 +0000 (21:14 +0100)]
Merge pull request #264 from lydell/zhuochun-enhance-follow-link

Refactor follow prev/next links (supersedes #260)

10 years agoRefactor follow prev/next links
Simon Lydell [Sun, 26 Jan 2014 14:21:07 +0000 (15:21 +0100)]
Refactor follow prev/next links

- Simplified everything.
- Made it more DRY.
- Patterns can include the * and ! wildcards, just like the black list.
- Patterns must match either at the beginning or at the end of the link
  text.
- Patterns don’t match in the middle of words. Works with non-English
  characters too.

10 years agoMerge pull request #279 from cyberrob/develop
Anton Khodakivskiy [Tue, 11 Feb 2014 07:05:24 +0000 (23:05 -0800)]
Merge pull request #279 from cyberrob/develop

Develop

10 years agoFix a translation error in zh-CN
robertwang [Mon, 10 Feb 2014 05:10:52 +0000 (13:10 +0800)]
Fix a translation error in zh-CN

10 years agoAdd zh-TW locale for vimFx. Also modify some zh-CN translations.
robertwang [Mon, 10 Feb 2014 05:08:58 +0000 (13:08 +0800)]
Add zh-TW locale for vimFx. Also modify some zh-CN translations.

10 years agoMerge pull request #265 from lydell/better-passthrough
Anton Khodakivskiy [Tue, 28 Jan 2014 19:13:41 +0000 (11:13 -0800)]
Merge pull request #265 from lydell/better-passthrough

Re-implement popup passthrough more robustly

10 years agoImprove popup passthrough check performance
Simon Lydell [Tue, 28 Jan 2014 18:52:29 +0000 (19:52 +0100)]
Improve popup passthrough check performance

Commit 468ed83 sure made the popup passthrough check more robust.
However, querying for all popups (hundreds) and looping them through on
each keypress is not optimal for performance. The solution? Use the best
of both of the old and new passthrough check.

Looking back, the issue with the old event-based passthrough check was
not that passthrough sometimes wasn’t triggered. It was that passthrough
sometimes got stuck, effectively disabling the extension. So it is not
the 'popupshowing' event that is unreliable, it is the 'popuphidden'
event. So we now use the events for toggling passthrough mode, just like
before. But when `popupPassthrough == true`, we don’t trust it. Then we
loop through all popups to see if any of them actually is open. This
means that it is only when a popup (might) be open that we use the more
expensive check, which is a good tradeoff. Even then, you probably won’t
even notice a lag or anything.

10 years agoRe-implement popup passthrough more robustly
Simon Lydell [Sun, 26 Jan 2014 15:58:55 +0000 (16:58 +0100)]
Re-implement popup passthrough more robustly

Commit 35f48d24bf5c broke popup passthrough a bit, unfortunately. It
works for the context menu, but not for the menu bar.

It is time to ditch the unreliable onpopupshowing/onpopuphiding and
checking properties on root windows for determining if popups are open.

Now we simply just loop through all menupopups and panels and check if
any of them are open. If so, don’t do anything. Otherwise, proceed as
normal.

10 years agoMerge branch 'enhance-follow-link' of https://github.com/zhuochun/VimFx into zhuochun...
Simon Lydell [Sun, 26 Jan 2014 10:39:55 +0000 (11:39 +0100)]
Merge branch 'enhance-follow-link' of https://github.com/zhuochun/VimFx into zhuochun-enhance-follow-link

10 years agoMerge pull request #219 from lydell/simpler-dom
Simon Lydell [Sat, 25 Jan 2014 15:58:29 +0000 (07:58 -0800)]
Merge pull request #219 from lydell/simpler-dom

Simplify DOM manipulations

10 years agoUse `.classList.toggle()`
Simon Lydell [Sat, 25 Jan 2014 15:53:33 +0000 (16:53 +0100)]
Use `.classList.toggle()`

Instead of `.classList[method]()`. Much nicer.

Imprint / Impressum