Commit graph

3664 commits

Author SHA1 Message Date
mozbug
92bb93ae11 If yarn bin not in $PATH, pre-commit hook always fails 2020-03-15 16:07:30 +08:00
Oliver Blanthorn
ba00bd442d
Merge pull request #2225 from tridactyl/hint_pipe_parsing
excmds.ts: fix hint -pipe parsing
2020-03-12 07:41:42 +00:00
glacambre
57e41eaec0
excmds.ts: fix hint -pipe parsing 2020-03-12 06:49:40 +01:00
Oliver Blanthorn
e5f8c79250
Merge pull request #2222 from tridactyl/dependabot/npm_and_yarn/fuse.js-3.6.1
Bump fuse.js from 3.4.6 to 3.6.1
2020-03-09 14:05:17 +00:00
dependabot-preview[bot]
0abd5be391
Bump fuse.js from 3.4.6 to 3.6.1
Bumps [fuse.js](https://github.com/krisk/Fuse) from 3.4.6 to 3.6.1.
- [Release notes](https://github.com/krisk/Fuse/releases)
- [Changelog](https://github.com/krisk/Fuse/blob/master/CHANGELOG.md)
- [Commits](https://github.com/krisk/Fuse/compare/v3.4.6...v3.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 06:49:03 +00:00
Oliver Blanthorn
4497ec3442
Revert "Merge pull request #2137 from tridactyl/state_no_onchanged"
This reverts commit d291277748, reversing
changes made to 14a9630f94.

Hopefully this will ameliorate #2213.
2020-03-08 14:16:42 +00:00
Oliver Blanthorn
9f137c3c3c
Merge pull request #2215 from mozbugbox/speedup-hinting
Speedup hinting
2020-03-08 14:07:33 +00:00
Oliver Blanthorn
730529e3d1
Merge pull request #2212 from mozbugbox/hinting-customize
Hinting customize
2020-03-08 14:01:07 +00:00
Oliver Blanthorn
c797029110
Merge pull request #2211 from mozbugbox/config-fix
Config fix
2020-03-08 13:56:31 +00:00
mozbug
972f80b88e Make sure elements are unqiue after concat 2020-03-04 22:40:57 +08:00
mozbug
08c6d475c6 Only call getComputedStyle when neccesary 2020-03-04 20:04:51 +08:00
mozbug
dd21770de1 Avoid unique() on large array to speedup hint 2020-03-04 20:01:12 +08:00
Oliver Blanthorn
aa395d1f2d
Merge pull request #2214 from tridactyl/dependabot/npm_and_yarn/immer-6.0.0
Bump immer from 5.3.6 to 6.0.0
2020-03-04 07:43:17 +00:00
dependabot-preview[bot]
5ce546b9b0
Bump immer from 5.3.6 to 6.0.0
Bumps [immer](https://github.com/immerjs/immer) from 5.3.6 to 6.0.0.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v5.3.6...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-04 06:20:14 +00:00
Oliver Blanthorn
6cc1094a81
Merge pull request #2209 from user753/master
Use historyresults instead of hardcoded 10 in history completion
2020-03-03 14:46:12 +00:00
mozbug
6b8504035e Make it possible to customize vimperator hinting
Move some actions of vimperator hinting into a global object so that
thirdparty can customize the vimperator hinting mode by overriding
methods of the global object.
2020-03-03 21:17:02 +08:00
mozbug
19246e64b4 Fix mktridactylrc on nested keys.
`config.parseConfigHelper()` creates cmds for set nested keys as setting
key to a dict with single value.

    js tri.config.set("followpagepatterns", {"next", "onemore"})
    js tri.config.set("followpagepatterns", {"prev", "oneless"})

The about lines in `tridactylrc` will have the 2nd line override the
1st.

The same happens to `subconfigs` too.
2020-03-03 21:02:37 +08:00
mozbug
769ad2087d Fix config.get breaks on null values
The `unbind` cmd set config values to `null`. While `null[key]` will
throw Typeerror exception. Avoid doing that here.
2020-03-03 20:58:03 +08:00
user753
cdbd4dd706
replaced 10 with historyresults 2020-03-03 14:34:22 +03:00
Oliver Blanthorn
5706bdad80
Only set last_ex_str if it changes
This improves performance of continuous scrolling
2020-03-03 08:58:51 +00:00
Oliver Blanthorn
09f6831b0e
Merge pull request #2200 from tridactyl/fix_repeat
Fix #1538: synchronise repeat between tabs and bg
2020-03-02 15:30:55 +00:00
Oliver Blanthorn
e2aaea0208
Add timeout to lock acquisition
Also log failures by default and tighten default timeout for
doing an operation with a lock
2020-03-02 13:25:00 +00:00
Oliver Blanthorn
6cf9307611
Get changelog above fold on new tab 2020-03-02 11:35:39 +00:00
Oliver Blanthorn
ca3b7b8dbf
Merge pull request #2205 from tridactyl/dependabot/npm_and_yarn/tslint-etc-1.10.1
Bump tslint-etc from 1.10.0 to 1.10.1
2020-03-02 07:42:40 +00:00
Oliver Blanthorn
dfeaaf5099
Merge pull request #2204 from tridactyl/dependabot/npm_and_yarn/types/node-13.7.7
Bump @types/node from 13.7.6 to 13.7.7
2020-03-02 07:42:22 +00:00
dependabot-preview[bot]
8351903d83
Bump tslint-etc from 1.10.0 to 1.10.1
Bumps [tslint-etc](https://github.com/cartant/tslint-etc) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/cartant/tslint-etc/releases)
- [Changelog](https://github.com/cartant/tslint-etc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cartant/tslint-etc/compare/v1.10.0...v1.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 06:52:41 +00:00
dependabot-preview[bot]
c19d51ff99
Bump @types/node from 13.7.6 to 13.7.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.6 to 13.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 06:51:58 +00:00
mozbug
4c24063e3e Allow multi-key matching for vimperator filter
When user unbind <space> in hint mode or bind hint.pushSpace and enter
spaces in vimperator hinting mode, the user input will be split by
space. Each part of the key sequence are matched to filter hintings.

For input 'pe l', 'personal' matches while 'person' don't.
2020-03-01 21:02:23 +08:00
Oliver Blanthorn
fae68a0df6
Switch state.ts to using lock with timeout 2020-02-29 19:44:00 +00:00
Oliver Blanthorn
84d258c293
Add withlock function with timeout 2020-02-29 19:43:38 +00:00
Oliver Blanthorn
6f6c9e0cd0
Fix daft bug - promises weren't racing 2020-02-29 19:04:02 +00:00
Oliver Blanthorn
e4926ad17a
Merge pull request #2201 from mozbugbox/call-user-defined-excmd-through-controller
Call user defined excmds function through controller
2020-02-29 19:00:40 +00:00
mozbug
fa50f8d159 Call user defined excmds function through controller
If user defined functions are added into tri.excmds, the functions can
be called throught `controller_background/content` message.

The arguments are not converted so the args will all be passed as
strings.
2020-03-01 00:47:53 +08:00
Oliver Blanthorn
3b38f093b7
Merge pull request #2194 from mozbugbox/bind-completion
Binding completion
2020-02-28 21:10:04 +00:00
mozbug
a96b6d902f Do deselect() on binding completion 2020-02-29 02:48:49 +08:00
Oliver Blanthorn
63d2b4ab9e
Add timeout to locks by default 2020-02-28 16:50:47 +00:00
Oliver Blanthorn
8fc8e6d4f8
Merge pull request #2195 from mozbugbox/editor
Editor
2020-02-28 16:32:10 +00:00
mozbug
a6f9072874 Use generic variables in binding.ts 2020-02-28 22:01:52 +08:00
mozbug
30f89a6187 Move binding related function into lib/binding.ts 2020-02-28 21:18:35 +08:00
mozbug
5e73ca9a78 Update keybinding to exmaps 2020-02-28 20:45:29 +08:00
Oliver Blanthorn
7705ebf5d8
Fix #1538: synchronise repeat between tabs and bg 2020-02-28 09:40:01 +00:00
Oliver Blanthorn
c6985a9561
Merge pull request #2198 from tridactyl/dependabot/npm_and_yarn/typedoc-0.16.11
Bump typedoc from 0.16.10 to 0.16.11
2020-02-28 07:24:07 +00:00
dependabot-preview[bot]
f8730e2c44
Bump typedoc from 0.16.10 to 0.16.11
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.16.10 to 0.16.11.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.16.10...v0.16.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-28 06:21:19 +00:00
mozbug
b7afb3b9a1 Add some bindings for ex mode 2020-02-28 00:05:10 +08:00
mozbug
7c25e32d98 Editor "before" of getWordBoundaries should start from char before the caret 2020-02-27 23:50:42 +08:00
mozbug
c2e162613f forward_word in editor should move to the end of line 2020-02-27 23:47:04 +08:00
mozbug
a1717e740f Excmds completion allow partial match at the middle 2020-02-27 22:37:43 +08:00
mozbug
32500c86ae Completion popup scrolls only on necessary 2020-02-27 22:27:15 +08:00
Oliver Blanthorn
c6e1ed8c5c
Add completions to composite 2020-02-27 13:53:06 +00:00
mozbug
37b8b99999 Add completions for key bindings 2020-02-27 21:31:41 +08:00