]>
git.gir.st - VimFx.git/log
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.
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.
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.
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.
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!
Simon Lydell [Thu, 8 May 2014 19:14:58 +0000 (21:14 +0200)]
Fix #310: Broken focus search bar command
Simon Lydell [Thu, 8 May 2014 17:37:19 +0000 (19:37 +0200)]
Add missing parenthesis
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
Wang Zhuochun [Wed, 7 May 2014 19:13:55 +0000 (03:13 +0800)]
clean up code around conflict_cmd
Wang Zhuochun [Wed, 7 May 2014 19:13:28 +0000 (03:13 +0800)]
ignore empty cmd value
Anton Khodakivskiy [Wed, 7 May 2014 17:20:18 +0000 (10:20 -0700)]
0.5.10 vesion bump and changelog update
Anton Khodakivskiy [Wed, 7 May 2014 17:18:55 +0000 (10:18 -0700)]
Fix bug when loading default preferences
Simon Lydell [Mon, 5 May 2014 18:54:43 +0000 (20:54 +0200)]
Update 0.5.9 changelog to mention gg/G speedup fix
Anton Khodakivskiy [Mon, 5 May 2014 06:05:56 +0000 (23:05 -0700)]
Added all historic builds
Anton Khodakivskiy [Mon, 5 May 2014 05:59:14 +0000 (22:59 -0700)]
Merge branch 'develop'
Anton Khodakivskiy [Mon, 5 May 2014 05:56:26 +0000 (22:56 -0700)]
Merge branch 'develop' of github.com:akhodakivskiy/VimFx into develop
Anton Khodakivskiy [Mon, 5 May 2014 05:54:10 +0000 (22:54 -0700)]
Merge branch 'release-0.5.9'
Anton Khodakivskiy [Mon, 5 May 2014 05:53:22 +0000 (22:53 -0700)]
version bump and changelog update
Anton Khodakivskiy [Mon, 5 May 2014 05:51:32 +0000 (22:51 -0700)]
Fixed default properties
Simon Lydell [Wed, 30 Apr 2014 18:24:42 +0000 (20:24 +0200)]
Put commands in the same order as the `commands` array
Simon Lydell [Wed, 30 Apr 2014 18:14:54 +0000 (20:14 +0200)]
Update `command_insert_mode`
Simon Lydell [Wed, 30 Apr 2014 18:13:04 +0000 (20:13 +0200)]
Update move tab commands
Simon Lydell [Wed, 30 Apr 2014 16:23:29 +0000 (18:23 +0200)]
Update `command_restore_tab`
Simon Lydell [Wed, 30 Apr 2014 16:11:59 +0000 (18:11 +0200)]
Update `command_back` and `command_forward`
Simon Lydell [Wed, 30 Apr 2014 16:08:14 +0000 (18:08 +0200)]
Update `command_tab_first` and `command_tab_last`
Simon Lydell [Wed, 30 Apr 2014 16:02:29 +0000 (18:02 +0200)]
Update `command_home`
Simon Lydell [Wed, 30 Apr 2014 15:56:43 +0000 (17:56 +0200)]
Update `command_tab_prev` and `command_tab_next`
Simon Lydell [Tue, 29 Apr 2014 18:33:26 +0000 (20:33 +0200)]
Fix #189: Speed up scoll to top/bottom commands
Simon Lydell [Tue, 29 Apr 2014 18:25:30 +0000 (20:25 +0200)]
Update stop commands
Simon Lydell [Tue, 29 Apr 2014 18:20:04 +0000 (20:20 +0200)]
Update reload commands
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
Simon Lydell [Tue, 29 Apr 2014 17:39:07 +0000 (19:39 +0200)]
Update `command_open_tab`
Simon Lydell [Tue, 29 Apr 2014 17:37:51 +0000 (19:37 +0200)]
Update `command_paste` and `command_paste_tab`
Simon Lydell [Tue, 29 Apr 2014 15:57:03 +0000 (17:57 +0200)]
Update `command_focus_search`
Simon Lydell [Tue, 29 Apr 2014 15:54:09 +0000 (17:54 +0200)]
Update `command_focus`
Simon Lydell [Tue, 29 Apr 2014 15:49:49 +0000 (17:49 +0200)]
Update `command_dev`
Simon Lydell [Mon, 28 Apr 2014 19:14:44 +0000 (21:14 +0200)]
Add `Vim::rootWindow` for convenience
Simon Lydell [Mon, 28 Apr 2014 18:40:22 +0000 (20:40 +0200)]
Remove the `storage` parameter for commands
None used it.
Anton Khodakivskiy [Sat, 19 Apr 2014 00:20:26 +0000 (17:20 -0700)]
0.5.8 version bump
Anton Khodakivskiy [Wed, 5 Mar 2014 19:58:44 +0000 (11:58 -0800)]
Merge pull request #290 from cbertoldi/master
Added italian translation.
Carlo Bertoldi [Wed, 5 Mar 2014 19:55:24 +0000 (20:55 +0100)]
Added localization.
Carlo Bertoldi [Wed, 5 Mar 2014 19:20:55 +0000 (20:20 +0100)]
Added italian translation.
Anton Khodakivskiy [Mon, 3 Mar 2014 18:40:35 +0000 (10:40 -0800)]
Merge branch 'release-0.5.7'
Anton Khodakivskiy [Mon, 3 Mar 2014 18:40:18 +0000 (10:40 -0800)]
hotfix release. version bump and changelog update
Anton Khodakivskiy [Mon, 3 Mar 2014 18:34:55 +0000 (10:34 -0800)]
Merge branch 'master' into develop
Anton Khodakivskiy [Mon, 3 Mar 2014 18:34:23 +0000 (10:34 -0800)]
Bug fixes
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
Mozillazg [Sun, 2 Mar 2014 06:59:29 +0000 (14:59 +0800)]
Update zh-CN localization
Anton Khodakivskiy [Wed, 26 Feb 2014 21:55:11 +0000 (13:55 -0800)]
Merge branch 'develop'
Anton Khodakivskiy [Wed, 26 Feb 2014 21:52:47 +0000 (13:52 -0800)]
Merge branch 'release-0.5.6' into develop
Anton Khodakivskiy [Wed, 26 Feb 2014 21:51:50 +0000 (13:51 -0800)]
Merge branch 'release-0.5.6'
Anton Khodakivskiy [Wed, 26 Feb 2014 21:51:07 +0000 (13:51 -0800)]
Version bump, changelog update, bump max version to 29
Anton Khodakivskiy [Wed, 26 Feb 2014 21:45:37 +0000 (13:45 -0800)]
Fixed mistake in next/prev patterns
Anton Khodakivskiy [Wed, 26 Feb 2014 21:39:56 +0000 (13:39 -0800)]
Merge branch 'develop' of github.com:akhodakivskiy/VimFx into develop
Anton Khodakivskiy [Wed, 26 Feb 2014 21:39:43 +0000 (13:39 -0800)]
Merge pull request #273 from akhodakivskiy/prevent-autofocus
Prevent autofocus
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
Anton Khodakivskiy [Wed, 26 Feb 2014 21:36:32 +0000 (13:36 -0800)]
Workaround for command shortcuts that start with letter c
Anton Khodakivskiy [Wed, 26 Feb 2014 20:13:05 +0000 (12:13 -0800)]
Merge pull request #285 from sirodoht/develop
Update Greek localization
Theodore Keloglou [Sun, 23 Feb 2014 16:17:47 +0000 (18:17 +0200)]
Update Greek localization
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)
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.
Anton Khodakivskiy [Tue, 11 Feb 2014 07:05:24 +0000 (23:05 -0800)]
Merge pull request #279 from cyberrob/develop
Develop
robertwang [Mon, 10 Feb 2014 05:10:52 +0000 (13:10 +0800)]
Fix a translation error in zh-CN
robertwang [Mon, 10 Feb 2014 05:08:58 +0000 (13:08 +0800)]
Add zh-TW locale for vimFx. Also modify some zh-CN translations.
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
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.
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.
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
Simon Lydell [Sat, 25 Jan 2014 15:58:29 +0000 (07:58 -0800)]
Merge pull request #219 from lydell/simpler-dom
Simplify DOM manipulations
Simon Lydell [Sat, 25 Jan 2014 15:53:33 +0000 (16:53 +0100)]
Use `.classList.toggle()`
Instead of `.classList[method]()`. Much nicer.
Wang Zhuochun [Wed, 22 Jan 2014 08:26:03 +0000 (16:26 +0800)]
update comments and shorten code
Wang Zhuochun [Tue, 21 Jan 2014 08:59:36 +0000 (16:59 +0800)]
update default prev/next pref
Wang Zhuochun [Tue, 21 Jan 2014 08:46:31 +0000 (16:46 +0800)]
use regexp and pattern order
Wang Zhuochun [Tue, 21 Jan 2014 07:05:04 +0000 (15:05 +0800)]
enhance next/prev follow link
Anton Khodakivskiy [Wed, 15 Jan 2014 17:56:01 +0000 (09:56 -0800)]
Another character for next/prev navigation
Anton Khodakivskiy [Sun, 12 Jan 2014 02:32:09 +0000 (18:32 -0800)]
Prevent matching wrong next/prev links (containing random `next`, `more` words)
Anton Khodakivskiy [Sun, 12 Jan 2014 01:10:47 +0000 (17:10 -0800)]
Closes #252. Fixed cases where VimFx steals keys from focused XUL menulist
Anton Khodakivskiy [Sun, 12 Jan 2014 00:44:12 +0000 (16:44 -0800)]
Added a few mode arrows to the pagination patterns. Closes #254
Anton Khodakivskiy [Sun, 12 Jan 2014 00:33:36 +0000 (16:33 -0800)]
Merge pull request #250 from akhodakivskiy/prefs-refactor
Refactor preferences
Anton Khodakivskiy [Mon, 6 Jan 2014 14:23:22 +0000 (16:23 +0200)]
defaults.js
Anton Khodakivskiy [Mon, 6 Jan 2014 14:22:06 +0000 (16:22 +0200)]
Refactor preferences defaults, prepare for enabling preferences sync
Anton Khodakivskiy [Fri, 3 Jan 2014 17:40:30 +0000 (19:40 +0200)]
Merge branch 'master' into develop
Anton Khodakivskiy [Fri, 3 Jan 2014 17:40:21 +0000 (19:40 +0200)]
Removed docs as unnecessary and outdated
Anton Khodakivskiy [Fri, 3 Jan 2014 17:09:46 +0000 (19:09 +0200)]
Merge branch 'master' into develop
Anton Khodakivskiy [Fri, 3 Jan 2014 17:09:36 +0000 (19:09 +0200)]
README.md update
Simon Lydell [Fri, 3 Jan 2014 17:03:13 +0000 (18:03 +0100)]
Merge branch 'develop' into simpler-dom
Conflicts:
extension/packages/button.coffee
extension/packages/find.coffee
Anton Khodakivskiy [Fri, 3 Jan 2014 16:47:25 +0000 (18:47 +0200)]
Merge branch 'release-0.5.5' into develop
Anton Khodakivskiy [Fri, 3 Jan 2014 16:46:56 +0000 (18:46 +0200)]
Merge branch 'release-0.5.5'
Anton Khodakivskiy [Fri, 3 Jan 2014 16:45:33 +0000 (18:45 +0200)]
Version bump
Anton Khodakivskiy [Fri, 3 Jan 2014 16:41:34 +0000 (08:41 -0800)]
Merge pull request #246 from lydell/issue-213
Merge branch 'develop' into issue-213
Simon Lydell [Fri, 3 Jan 2014 16:36:19 +0000 (17:36 +0100)]
Merge branch 'develop' into issue-213
Conflicts:
extension/packages/events.coffee
Anton Khodakivskiy [Fri, 3 Jan 2014 15:17:43 +0000 (17:17 +0200)]
Merge branch 'master' into develop
Anton Khodakivskiy [Fri, 3 Jan 2014 14:49:40 +0000 (16:49 +0200)]
Merge branch 'master' of github.com:akhodakivskiy/VimFx
Conflicts:
extension/packages/events.coffee
Anton Khodakivskiy [Fri, 3 Jan 2014 14:26:31 +0000 (16:26 +0200)]
Merge branch 'release-0.5.4'
Anton Khodakivskiy [Fri, 3 Jan 2014 14:26:14 +0000 (16:26 +0200)]
Version bump to 0.5.4 and update changelog
Anton Khodakivskiy [Fri, 3 Jan 2014 14:12:13 +0000 (16:12 +0200)]
Fix for popup passthrough mode stucking
Anton Khodakivskiy [Fri, 3 Jan 2014 13:26:35 +0000 (15:26 +0200)]
Merge branch 'hints-z-index' of git://github.com/lydell/VimFx into lydell-hints-z-index
Wang Zhuochun [Thu, 2 Jan 2014 07:41:19 +0000 (15:41 +0800)]
merge upstream develop
Wang Zhuochun [Thu, 2 Jan 2014 07:15:43 +0000 (15:15 +0800)]
minor updates
Anton Khodakivskiy [Thu, 2 Jan 2014 00:25:40 +0000 (16:25 -0800)]
Merge pull request #238 from lydell/develop
Bump minimum Firefox version to 25