| Age | Commit message (Collapse) | Author |
|
|
|
This make `moveToNewWindow` accept a count. For example, `3W` to move
three tabs to (the same) new window.
The tabs chosen are the current tab, then those to the right of the
current tab, and then those to the left of the current tab.
`999W` moves *all* tabs to a new window. It's not clear why you would
want to do that. An alternative would be to leave the last tab behind.
|
|
Move wholly to chrome.sessions.
|
|
This strips out the legacy pre-chrome.sessions code. The API has been
in Chrome since version 37, and we probably don't really need to support
older versions than that.
|
|
Examples:
map j scrollDown count=10
map q removeTab count=999
|
|
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.
|
|
hideHUD option applies to insert mode only.
|
|
This fixes an error in #1950.
There, we need to detect new installs, and did so by checking
`settingsVersion`. However, `settingsVersion` is *always* truthy. So
the "new install" code never triggers. Here, the default value for
`settingsVersion` is falsy.
Note, we *always* set `settingsVersion` when the extension is loaded.
So `settingsVersion` is always set.
|
|
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.
|
|
|
|
|
|
For filtered hints, wait for <Enter> before activating link
|
|
For existing users, the default is "false"; but for new users
wait-for-enter defaults to "true".
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
New command: Pass next key
|
|
Consider:
map q passNextKey
This works fine in normal mode. However, in insert mode, when the user
types "q" they expect "q" to be input. Any other behaviour would be
pretty weird.
Here, we filter out such mappings before the front end sees them. So,
with:
map q passNextKey
map <c-]> passNextKey
both mappings work in normal mode, but only the second works in insert
mode. This is probably the behaviour likely to cause least user
confusion.
|
|
|
|
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.
|
|
We need the key mapped to passNextKey in the front end so that we can
activate pass-next-key from within insert mode too (without the need to
consult the background page).
|
|
This implements a passNextKey command (initially for normal mode only),
as discussed in #1955.
|
|
Use `for own ... of` instead of `for ... of`
|
|
|
|
Nuke some legacy migration code.
|
|
Split filtered hints on non-word and hint characters.
|
|
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.
|
|
These migrations are at least ten months old (since release).
|
|
|
|
New command: visit previous tab.
|
|
Move help dialog to a UIComponent
|
|
|
|
|
|
|
|
|
|
|
|
- handle case where there's only one tab
- also focus the selected tab's window
|
|
Implements visitPreviousTab (as discussed in #1955).
|
|
Certain background-page utilities are actually shared, and are therefore
best placed in place that reflects that.
Here, tabRecency is moved to the new gb_utils.coffee in preparation for
implementing a go-to-previous-tab command. In particular, it is no
longer appropriate that tabRecency be embedded within the completion
code.
logMessage() from main.coffee is also a candidate for moving to
bg_utils.coffee.
|
|
|
|
This reverts commit 4874362d8f14d2cdf712a4c01ac756f2dd6f6e4c.
|
|
|
|
|
|
|