]> git.gir.st - VimFx.git/log
VimFx.git
7 years agoFix `selectAllSubstringMatches` test
Simon Lydell [Sat, 25 Mar 2017 15:12:51 +0000 (16:12 +0100)]
Fix `selectAllSubstringMatches` test

7 years agoFix `vimfx.send` test
Simon Lydell [Sat, 25 Mar 2017 14:58:13 +0000 (15:58 +0100)]
Fix `vimfx.send` test

7 years agoRun `gulp sync-locales`
Simon Lydell [Sat, 25 Mar 2017 14:57:22 +0000 (15:57 +0100)]
Run `gulp sync-locales`

7 years agoUpdate devDependencies
Simon Lydell [Sat, 25 Mar 2017 14:57:00 +0000 (15:57 +0100)]
Update devDependencies

7 years agoUse `vim.markPageInteraction()` instead of direct mutation
Simon Lydell [Tue, 21 Mar 2017 20:25:23 +0000 (21:25 +0100)]
Use `vim.markPageInteraction()` instead of direct mutation

... of `vim.state.hasInteraction`.

7 years agoPrevent autofocus after 'popstate' events
Simon Lydell [Tue, 21 Mar 2017 20:21:50 +0000 (21:21 +0100)]
Prevent autofocus after 'popstate' events

Fixes #875.

7 years agoUpdate ja locale (#873)
pluser [Sat, 11 Mar 2017 09:04:44 +0000 (18:04 +0900)]
Update ja locale (#873)

7 years agoImprove documentation referring to the issue tracker
Simon Lydell [Wed, 22 Feb 2017 17:30:55 +0000 (18:30 +0100)]
Improve documentation referring to the issue tracker

7 years agoVimFx v0.20.9 v0.20.9
Simon Lydell [Tue, 21 Feb 2017 20:33:20 +0000 (21:33 +0100)]
VimFx v0.20.9

7 years agoUpdate copyright year
Simon Lydell [Tue, 21 Feb 2017 17:49:35 +0000 (18:49 +0100)]
Update copyright year

7 years agoUpdate devDependencies
Simon Lydell [Tue, 21 Feb 2017 16:08:24 +0000 (17:08 +0100)]
Update devDependencies

7 years agoFix the `yy` command in Reader View
Simon Lydell [Tue, 21 Feb 2017 15:57:30 +0000 (16:57 +0100)]
Fix the `yy` command in Reader View

Fixes #865.

7 years agoVimFx v0.20.8 v0.20.8
Simon Lydell [Sat, 14 Jan 2017 16:30:56 +0000 (17:30 +0100)]
VimFx v0.20.8

7 years agoUpdate documentation for scrolling commands
Simon Lydell [Sat, 14 Jan 2017 16:26:49 +0000 (17:26 +0100)]
Update documentation for scrolling commands

7 years agoUpdate copyright years
Simon Lydell [Sat, 14 Jan 2017 16:22:34 +0000 (17:22 +0100)]
Update copyright years

7 years agoUpdate devDependencies
Simon Lydell [Sat, 14 Jan 2017 16:21:12 +0000 (17:21 +0100)]
Update devDependencies

7 years agoScroll closest scrollable parent
Simon Lydell [Tue, 10 Jan 2017 06:53:00 +0000 (07:53 +0100)]
Scroll closest scrollable parent

If you click a tweet on Twitter, a modal with the tweet as well as
responses to it pop up. That modal can be scrollable if there are enough
responses. The container for the main tweet is focused. It feels very
natural that the _modal_ should scroll when using VimFx commands, not
the page behind it. That used not to be the case, but now is. This was
implemented by not just checking if the active element _itself_ is
scrollable, but also whether one of its _parents_ are scrollable, and
using the closest scrollable parent (if any).

7 years agoProperly remove frame scripts on shutdown
Simon Lydell [Mon, 9 Jan 2017 07:17:17 +0000 (08:17 +0100)]
Properly remove frame scripts on shutdown

7 years agoVimFx v0.20.7 v0.20.7
Simon Lydell [Sat, 7 Jan 2017 10:24:13 +0000 (11:24 +0100)]
VimFx v0.20.7

7 years agoUpdate copyright years
Simon Lydell [Sat, 7 Jan 2017 10:21:29 +0000 (11:21 +0100)]
Update copyright years

7 years agoUpdate devDependencies
Simon Lydell [Sat, 7 Jan 2017 10:19:40 +0000 (11:19 +0100)]
Update devDependencies

7 years agoFeature requests are not accepted
Simon Lydell [Sat, 7 Jan 2017 10:15:42 +0000 (11:15 +0100)]
Feature requests are not accepted

See #860.

7 years agoAdd ugly special-case for Google prev/next page
Simon Lydell [Sat, 7 Jan 2017 08:49:16 +0000 (09:49 +0100)]
Add ugly special-case for Google prev/next page

Refs. #836.

7 years agoAdd ugly special-case for Facebook's "emoji picker"
Simon Lydell [Sat, 7 Jan 2017 08:34:32 +0000 (09:34 +0100)]
Add ugly special-case for Facebook's "emoji picker"

Fixes #859.

7 years agoFind more elements for the `ef` command
Simon Lydell [Sat, 7 Jan 2017 08:04:43 +0000 (09:04 +0100)]
Find more elements for the `ef` command

This is basically a continuation of commit a3b2501c3:

> Recognize explicit `tabindex="-1"` elements as focusable

This is useful on Facebook, for example. See #859.

7 years agoFix typo in issue template
Simon Lydell [Fri, 30 Dec 2016 10:23:22 +0000 (11:23 +0100)]
Fix typo in issue template

7 years agoUpdate de locale for "select most recent tab" (#852)
Interleaved [Sat, 17 Dec 2016 17:44:19 +0000 (18:44 +0100)]
Update de locale for "select most recent tab" (#852)

7 years agoVimFx v0.20.6 v0.20.6
Simon Lydell [Fri, 16 Dec 2016 09:24:06 +0000 (10:24 +0100)]
VimFx v0.20.6

7 years agoUpdate devDependencies
Simon Lydell [Fri, 16 Dec 2016 09:17:43 +0000 (10:17 +0100)]
Update devDependencies

7 years agoAdd new de translator to PEOPLE.md
Simon Lydell [Fri, 16 Dec 2016 09:16:16 +0000 (10:16 +0100)]
Add new de translator to PEOPLE.md

7 years agoUpdate de locale (#845)
Interleaved [Fri, 16 Dec 2016 09:14:43 +0000 (10:14 +0100)]
Update de locale (#845)

* Update de translation for blacklist settings

Use word "Ausnahmen" ("Exception") for the blacklist description instead of using "Schwarze Liste". It could be considered to use "Exeptions" also for the english locale.

* Update de translation for auto activation

* Add more de translations

Tabs is also used mostly in german. Sometimes the word "Registerkarten" is used for that.

7 years agoProperly clean up `addOptionOverrides` and `addKeyOverrides`
Simon Lydell [Fri, 16 Dec 2016 09:12:43 +0000 (10:12 +0100)]
Properly clean up `addOptionOverrides` and `addKeyOverrides`

Fixes #849.

7 years agoFix the `'`, `g[` and `g]` commands crashing
Simon Lydell [Wed, 14 Dec 2016 16:25:34 +0000 (17:25 +0100)]
Fix the `'`, `g[` and `g]` commands crashing

Regression since commit d0d04fc44.

Fixes #848.

7 years agoRemove mentions of 1.0.0 in the documentation
Simon Lydell [Mon, 12 Dec 2016 06:44:59 +0000 (07:44 +0100)]
Remove mentions of 1.0.0 in the documentation

7 years agoFix `ef` failing to focus elements in deeply nested frames
Simon Lydell [Sun, 11 Dec 2016 14:22:47 +0000 (15:22 +0100)]
Fix `ef` failing to focus elements in deeply nested frames

7 years agoImprove hint marker position for multiline text
Simon Lydell [Sun, 11 Dec 2016 14:14:04 +0000 (15:14 +0100)]
Improve hint marker position for multiline text

7 years agoVimFx v0.20.5 v0.20.5
Simon Lydell [Sun, 4 Dec 2016 15:06:56 +0000 (16:06 +0100)]
VimFx v0.20.5

7 years agoUpdate devDependencies
Simon Lydell [Sun, 4 Dec 2016 15:00:40 +0000 (16:00 +0100)]
Update devDependencies

7 years agoFix tests in Firefox Nightly
Simon Lydell [Sun, 4 Dec 2016 14:48:04 +0000 (15:48 +0100)]
Fix tests in Firefox Nightly

Firefox have either moved the Assert.jsm module, or stopped exposing it.
I'm tired of that happening (it's not the first time), so I decided to
implement the small part of Assert.jsm that was actually used in VimFx's
test on my own. On the upside, this resulted in nicer error messages
when tests fail.

7 years agoImprove holding keys for scrolling by page
Simon Lydell [Sat, 3 Dec 2016 21:56:01 +0000 (22:56 +0100)]
Improve holding keys for scrolling by page

Fixes #843.

7 years agoValidate all config file API method arguments
Simon Lydell [Thu, 17 Nov 2016 18:29:08 +0000 (19:29 +0100)]
Validate all config file API method arguments

This provides a better user experience and also prevents VimFx from
crashing due to invalid arguments.

Fixes #837.

7 years agoVimFx v0.20.4 v0.20.4
Simon Lydell [Wed, 16 Nov 2016 20:55:14 +0000 (21:55 +0100)]
VimFx v0.20.4

7 years agoUpdate devDependencies
Simon Lydell [Wed, 16 Nov 2016 20:52:31 +0000 (21:52 +0100)]
Update devDependencies

7 years agoAlways place markers next to text if appropriate
Simon Lydell [Sun, 13 Nov 2016 16:47:19 +0000 (17:47 +0100)]
Always place markers next to text if appropriate

For example, the hint marker for buttons with centered text are now
placed just to the left of the text rather than at the left edge of
button. This is nice because it means that hint markers usually end up
where you were just reading.

7 years agoAdd compatibility with the Tab Center add-on/experiment
Simon Lydell [Sun, 13 Nov 2016 13:00:54 +0000 (14:00 +0100)]
Add compatibility with the Tab Center add-on/experiment

Fixes #834.

7 years agoBlur the location bar consistently
Simon Lydell [Wed, 9 Nov 2016 07:07:17 +0000 (08:07 +0100)]
Blur the location bar consistently

Refs. #831: Let's say you added the custom command that focuses the
location bar, sets its text to '% ' and opens the autocomplete popup.
You set the shortcut to `q`. If you then press `q<escape>`, you'll end
up with '% ' being left in the location bar. Usually, the location bar
is cleared when blurring it. This is because of that the autocomplete
popup is open. This commit makes sure to close the location bar
autocomplete popup before blurring, fixing the problem.

7 years agoFind `<label>` elements in the first pass for `f`
Simon Lydell [Tue, 8 Nov 2016 18:43:32 +0000 (19:43 +0100)]
Find `<label>` elements in the first pass for `f`

It is common to implement custom styled checkboxes and radiobuttons by
hiding the actual `<input>` element and style its `<label>` instead.
Therefore it makes sense to find them in the first pass, so you don't
have to wait for their labels so long. This does not seem to degrade the
performance of the first pass.

7 years agoImprove hints for the `eb` command
Simon Lydell [Mon, 7 Nov 2016 07:07:25 +0000 (08:07 +0100)]
Improve hints for the `eb` command

Tweak the hints for tab close buttons and non-tab elements. Continuation
aof commit d0cbbfd7.

7 years agoDon't reset highlighted hint markers in the second pass
Simon Lydell [Sun, 6 Nov 2016 20:56:32 +0000 (21:56 +0100)]
Don't reset highlighted hint markers in the second pass

When injecting hint markers for the second pass, do reset which hint
markers are visually highlighted (in case they change), but _don't_
reset the actual data. Regression since commit e70ab849.

7 years agoUpdate devDependencies
Simon Lydell [Sun, 6 Nov 2016 10:43:42 +0000 (11:43 +0100)]
Update devDependencies

7 years agoFix highlighting of hint markers in the second pass
Simon Lydell [Sun, 6 Nov 2016 19:14:17 +0000 (20:14 +0100)]
Fix highlighting of hint markers in the second pass

7 years agoMake marker z-index rotation more functional-style
Simon Lydell [Sun, 6 Nov 2016 18:56:28 +0000 (19:56 +0100)]
Make marker z-index rotation more functional-style

7 years agoMake tab hints consistent for the `eb` command
Simon Lydell [Sun, 6 Nov 2016 10:24:36 +0000 (11:24 +0100)]
Make tab hints consistent for the `eb` command

Refs. #831.

7 years agoFix hint marker weights for the `eb` command
Simon Lydell [Sun, 6 Nov 2016 09:13:10 +0000 (10:13 +0100)]
Fix hint marker weights for the `eb` command

Refs. #831.

7 years agoImprove markable element area comparisons
Simon Lydell [Sun, 6 Nov 2016 10:27:45 +0000 (11:27 +0100)]
Improve markable element area comparisons

Boxes that appear to be exactly the same size should be given "equally"
good hints, favoring earlier ones when needed. Sometimes, though, their
areas differ from a fraction of a pixel up to a couple of pixels.

This commits changes how the comparisons of marker weights (which
effectively are element areas), so that elements whose area differ by
less than 10px are considered to have the same area. That results in the
expected hints for same-sized boxes.

Refs. #831: The browser tabs often had this problem. At first, all tabs
could be given the expected hints: The first one getting the best one
etc. Opening a new tab, the best hint could suddenly be given to some
random tab in the middle.

7 years agoImprove hint marker positioning
Simon Lydell [Sun, 6 Nov 2016 09:33:51 +0000 (10:33 +0100)]
Improve hint marker positioning

A pixel up, down, left or right _is_ visible. Using `Math.round` goes to
the most expected pixel. Previously, markers many times appeared to be
slightly too close to the top of elements, rather than at the center.

7 years agoDocument how to switch tabs
Simon Lydell [Sat, 5 Nov 2016 18:32:41 +0000 (19:32 +0100)]
Document how to switch tabs

Refs. #831.

7 years agoFix `eb` not finding the tab bar overflow scroll buttons
Simon Lydell [Sat, 5 Nov 2016 17:53:40 +0000 (18:53 +0100)]
Fix `eb` not finding the tab bar overflow scroll buttons

Refs. #831.

7 years agoFix the `n` and `N` commands in PDF.js tabs
Simon Lydell [Sat, 5 Nov 2016 17:32:29 +0000 (18:32 +0100)]
Fix the `n` and `N` commands in PDF.js tabs

Fixes #827.

7 years agoImprove links to the documentation index
Simon Lydell [Sat, 22 Oct 2016 14:55:21 +0000 (16:55 +0200)]
Improve links to the documentation index

7 years agoVimFx v0.20.3 v0.20.3
Simon Lydell [Sat, 22 Oct 2016 10:59:49 +0000 (12:59 +0200)]
VimFx v0.20.3

7 years agoImprove full page scrolling adjustment on some pages
Simon Lydell [Tue, 18 Oct 2016 15:09:57 +0000 (17:09 +0200)]
Improve full page scrolling adjustment on some pages

On medium.com, there is a fixed footer. However, it is not
`position: fixed;` like fixed element usually are. Instead, it's
`position: absolute;` (and the page scroll is inside an adjacent element
instead of on `<html>`). This commit allows elements with
`position: absolute;` to as headers and footers as well.

7 years agoFix focusing scrollable elements using `f`
Simon Lydell [Wed, 19 Oct 2016 06:29:13 +0000 (08:29 +0200)]
Fix focusing scrollable elements using `f`

7 years agoFix `<escape>` handling in Normal mode
Simon Lydell [Tue, 18 Oct 2016 10:52:08 +0000 (12:52 +0200)]
Fix `<escape>` handling in Normal mode

When pressing `<escape>` inside a text input, `<escape>` is not supposed
to be passed on to the page (like is otherwise done), to allow blurring
text inputs inside modals without also closing the modal. There already
was logic for this, but it didn't work because the check for the
currently selected element and the running of the `<escape>` command was
run in the wrong order.

7 years agoVimFx v0.20.2 v0.20.2
Simon Lydell [Sun, 16 Oct 2016 16:07:12 +0000 (18:07 +0200)]
VimFx v0.20.2

7 years agoUpdate sv-SE locale
Simon Lydell [Sun, 16 Oct 2016 15:59:37 +0000 (17:59 +0200)]
Update sv-SE locale

7 years agoUpdate devDependencies
Simon Lydell [Sun, 16 Oct 2016 15:56:30 +0000 (17:56 +0200)]
Update devDependencies

7 years agoRename `skipBlurring` into `blur`
Simon Lydell [Sat, 15 Oct 2016 06:56:40 +0000 (08:56 +0200)]
Rename `skipBlurring` into `blur`

Negated options are confusing.

7 years agoFix frame text input being focused when entering Caret mode
Simon Lydell [Fri, 14 Oct 2016 18:33:00 +0000 (20:33 +0200)]
Fix frame text input being focused when entering Caret mode

7 years agoFix element focusing with `f` commands
Simon Lydell [Fri, 14 Oct 2016 18:24:34 +0000 (20:24 +0200)]
Fix element focusing with `f` commands

Fixes #825.

7 years agoActivate the hint marker for the largest element
Simon Lydell [Thu, 13 Oct 2016 16:14:46 +0000 (18:14 +0200)]
Activate the hint marker for the largest element

7 years agoUpdate zh-CN locale (#824)
av2000ii [Mon, 10 Oct 2016 11:56:24 +0000 (19:56 +0800)]
Update zh-CN locale (#824)

7 years agoVimFx v0.20.1 v0.20.1
Simon Lydell [Sun, 9 Oct 2016 11:21:59 +0000 (13:21 +0200)]
VimFx v0.20.1

7 years agoFix typo in package.json
Simon Lydell [Sun, 9 Oct 2016 11:12:03 +0000 (13:12 +0200)]
Fix typo in package.json

7 years agoClarify documentation on advanced options a bit
Simon Lydell [Sun, 9 Oct 2016 11:07:39 +0000 (13:07 +0200)]
Clarify documentation on advanced options a bit

7 years agoMake Caret browsing handling more robust
Simon Lydell [Sun, 9 Oct 2016 11:03:16 +0000 (13:03 +0200)]
Make Caret browsing handling more robust

Make sure that people cannot end up with Caret mode accidentally
enabled.

Fixes #821.

7 years agoFix text input refocus issue in GNOME
Simon Lydell [Sun, 9 Oct 2016 10:25:42 +0000 (12:25 +0200)]
Fix text input refocus issue in GNOME

Previously, using a keyboard shortcut to switch keyboard layout in GNOME
while inside a text input caused the focus of that text input to be lost
when the prevent autofocus option was enabled.

Fixes #822.

7 years agoImprove documentation on re-mapping `<escape>`
Simon Lydell [Sun, 9 Oct 2016 09:34:04 +0000 (11:34 +0200)]
Improve documentation on re-mapping `<escape>`

Refs. #823.

7 years agoShow error if trying to use a modifier in an invalid way
Simon Lydell [Sun, 9 Oct 2016 09:26:38 +0000 (11:26 +0200)]
Show error if trying to use a modifier in an invalid way

See #823.

7 years agoConsistently refer to keypresses as "keypresses"
Simon Lydell [Sun, 9 Oct 2016 08:28:00 +0000 (10:28 +0200)]
Consistently refer to keypresses as "keypresses"

Not "key presses" and not "key press".

7 years agoImprove documentation for shortcut customization
Simon Lydell [Sun, 9 Oct 2016 08:24:29 +0000 (10:24 +0200)]
Improve documentation for shortcut customization

See #823.

7 years agoTweak issue template
Simon Lydell [Wed, 5 Oct 2016 07:22:19 +0000 (09:22 +0200)]
Tweak issue template

7 years agoImprove issue template change log link
Simon Lydell [Wed, 5 Oct 2016 06:05:41 +0000 (08:05 +0200)]
Improve issue template change log link

7 years agoUpdate zh-CN locale (#820)
av2000ii [Tue, 4 Oct 2016 14:20:37 +0000 (22:20 +0800)]
Update zh-CN locale (#820)

7 years agoUpdate devDependencies
Simon Lydell [Mon, 3 Oct 2016 05:51:55 +0000 (07:51 +0200)]
Update devDependencies

Finally, no need to use a specific commit of CoffeeScript anymore!

7 years agoVimFx v0.20.0 v0.20.0
Simon Lydell [Sun, 2 Oct 2016 16:29:29 +0000 (18:29 +0200)]
VimFx v0.20.0

7 years agoAdd `g[`, `g]` and a jump list
Simon Lydell [Sun, 2 Oct 2016 09:46:39 +0000 (11:46 +0200)]
Add `g[`, `g]` and a jump list

Fixes #814.

7 years agoAdd the `/` mark
Simon Lydell [Sun, 2 Oct 2016 08:10:07 +0000 (10:10 +0200)]
Add the `/` mark

7 years agoRemove unnecessary space
Simon Lydell [Sun, 2 Oct 2016 07:56:54 +0000 (09:56 +0200)]
Remove unnecessary space

7 years agoFix the `'` mark after using `''`
Simon Lydell [Sun, 2 Oct 2016 07:48:55 +0000 (09:48 +0200)]
Fix the `'` mark after using `''`

The `'` mark is supposed to point to the location before the last
"jump." One such jump is using the `'` mark itself (by pressing `''`).
This means that running `''` several times in a row will flip back and
forth between two locations. However, that was previously broken. `''`
took you back to the last location, but then you got stuck there. This
commit fixes that bug.

Refs. #814.

7 years agoFix z-index for hint markers
Simon Lydell [Sun, 2 Oct 2016 07:17:06 +0000 (09:17 +0200)]
Fix z-index for hint markers

The hint markers are sorted by element area before assigning their
`z-index`es. This is so that the hint markers of larger elements appear
on top of hint markers for smaller elements. However,
`marker.wrapper.area` (which is `undefined`) was accidentally used
instead of `marker.wrapper.shape.area`. This caused the sorting to
essentially do nothing (since Firefox's `.sort` is stable).

7 years agoFix selection clipboard handling
Simon Lydell [Sat, 1 Oct 2016 08:07:50 +0000 (10:07 +0200)]
Fix selection clipboard handling

This is only for systems with a "selection clipboard."

1. Copy text using one of the following methods:

   - `yv<hint>`
   - `av<hint>y`
   - `yf<hint>` on a contenteditable element

2. Use the `p` or `P` command.

Unlike other commands that copy text to the clipboard, such as `yy` and
`v<hint>wy`, the above methods previously didn't affect the selection
clipboard. This caused the `p` and `P` commands to operate on some other
text than expected.

This commit makes sure that all commands that copy text to the clipboard
also affect the selection clipboard (in a somewhat hacky, but working,
way).

Fixes #818.

7 years agoUpdate issue and PR templates
Simon Lydell [Sat, 1 Oct 2016 07:37:34 +0000 (09:37 +0200)]
Update issue and PR templates

7 years agoImprove config file documentation
Simon Lydell [Tue, 27 Sep 2016 16:22:07 +0000 (18:22 +0200)]
Improve config file documentation

Refs. #815.

7 years agoAdd missing `return` after a `for` loop
Simon Lydell [Tue, 27 Sep 2016 06:52:48 +0000 (08:52 +0200)]
Add missing `return` after a `for` loop

7 years agoVimFx v0.19.1 v0.19.1
Simon Lydell [Mon, 26 Sep 2016 14:54:36 +0000 (16:54 +0200)]
VimFx v0.19.1

7 years agoFix the `'` command crashing
Simon Lydell [Mon, 26 Sep 2016 10:43:00 +0000 (12:43 +0200)]
Fix the `'` command crashing

7 years agoVimFx v0.19.0 v0.19.0
Simon Lydell [Sun, 25 Sep 2016 09:43:43 +0000 (11:43 +0200)]
VimFx v0.19.0

7 years agoUpdate documentation example for custom modes
Simon Lydell [Sun, 25 Sep 2016 09:23:58 +0000 (11:23 +0200)]
Update documentation example for custom modes

7 years agoUpdate devDependencies
Simon Lydell [Sun, 25 Sep 2016 08:46:17 +0000 (10:46 +0200)]
Update devDependencies

Imprint / Impressum