| Age | Commit message (Collapse) | Author |
|
Currently, `10j` keeping `j` held down scrolls quickly for a time then
reduces back the regular hold-`j` scroll speed. Therefore, the user
cannot use a count to influence the smooth-scrolling scroll speed.
This PR fixes that by passing the count to the scroll functions.
Consequently, we adjust the actual scroll amount (which affects the
scroll speed) rather than calling the scroll commands several times
(which doesn't).
|
|
|
|
Omitted from #1961.
|
|
If text.length is 1, here, then we divide by `log 1` - which is zero.
So add one.
|
|
It appears `tabInfoMap` (and related machinery) is not being used. This
removes it.
|
|
When we introduced command options (for mapping keys to custom-search
engines), the parsing was done in the Vomnibar code.
This moves the parsing to `commands.coffee`, which is where it should
always have been.
This is a preliminary step with a view to adding a new `count` command
option.
|
|
This makes the `hideHud` option apply only to insert mode (when entered with `i`).
Fixes #1953.
Fixes #487.
We could rename the option itself and add migration code, but that seems overkill.
An alternative would be to remove this option entirely.
|
|
|
|
This affects filtered hints only.
If a hint is triggered because the user typed the link text, then:
- highlight the link
- but wait until the user types `Enter` before activating the link.
|
|
Oversight from 116ac2c2a279f8497ffd5396f43ac4fd7fd5de67.
|
|
This allows:
map a passNextKey
map b passNextKey
(Previously, we only picked up the first mapping.)
|
|
(First "fully" functional version.)
|
|
Previously, key event parsing was embedded in the normal-mode key
handlers. Here, we move it to a new function (getKeyCharString) in
KeyboardUtils so that it can also be used from elsewhere... In
particular for detecting the pass-next-key key in insertmode.
|
|
This implements a passNextKey command (initially for normal mode only),
as discussed in #1955.
|
|
|
|
This affects the scoring system for filtered link hits, and therefore
affects their usability.
Example link text:
"We open all day", say 7Eleven
Previously:
"We
open
all
day",
say
7Eleven
With this PR:
we
open
all
day
say
Eleven
Previously: the typed text `we` and `day` would receive poor scores (not
the start of a word, and not a whole word. Now, these get high scores,
so are more likely to be selected as the active link. Also, `7Eleven`
cannot be typed (because `7` is a hint character).
With this PR, the typed text `we` `day` now get high scores, as they
should.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Link hints with count
|
|
|
|
Normally, `Backspace` exits hints mode. It should exit hint mode with a
count too.
|
|
|
|
With a count, link hints now exit on `Escape`.
|
|
|
|
Currently, if an input is only partially in the view port, then the page
may scroll when it is focused and the overlays for `focusInput()` are
wonky. See #1257.
Here, we draw the overlay around the *entire* input, instead of just
around the visible part. Being partially visible therefore is no longer
relevant.
Fixes #1257.
Closes #1258.
|
|
|
|
Pass a count to link-hint commands, and the link-hint mode is started that many times (except "with queue").
This resolves the same issue as #1291. However, this:
- does not require re-basing (which is no biggie), and
- keeps all of the count-handling logic (apart from plumbing) in one
place, in `LinkHints.activateMode()`. The link-hints mode itself does
not know anything about count handling.
Serious bug:
- Using `Escape` to exit does not cancel the repeat!
Fixes #1289.
Closes #1291.
|
|
|
|
One line was unintentionally deleted.
|
|
I am now of the opinion that we should not do this within Vimium, as:
- better solutions exist externally, and
- it's better to not have to maintain this.
|
|
It is often the case that an encosing element (parent) and a child are
both clickable, and both contain the same text. In this case, it is
usually better to pick the child.
So, here, we dampen down the score of elements with longer texts.
|
|
Emit mouseout for the last link when clicking a new link with link hints
|
|
Exit link hints if there are no links.
|