Commit graph

3807 commits

Author SHA1 Message Date
Oliver Blanthorn
fa9d3228c9
Add filesystem completion to js{,b} -s 2020-02-27 11:55:17 +00:00
mozbug
d6086f73f2 Silence tsdoc 2020-02-26 21:29:38 +08:00
mozbug
2a302aba62 Add doc for new options to js 2020-02-26 21:28:59 +08:00
mozbug
53e368edcd excmds.js remove check for '../' in path 2020-02-26 19:20:38 +08:00
mozbug
fc03d64113 excmds.js add option -r to load from config dir 2020-02-26 19:17:42 +08:00
Oliver Blanthorn
539997449f
Merge pull request #2192 from tridactyl/dependabot/npm_and_yarn/types/node-13.7.6
Bump @types/node from 13.7.4 to 13.7.6
2020-02-26 09:19:04 +00:00
dependabot-preview[bot]
efbd85661a
Bump uuid from 3.4.0 to 7.0.1
Bumps [uuid](https://github.com/uuidjs/uuid) from 3.4.0 to 7.0.1.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 06:20:03 +00:00
dependabot-preview[bot]
9d85eb27fc
Bump @types/node from 13.7.4 to 13.7.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.4 to 13.7.6.
- [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-02-26 06:19:34 +00:00
glacambre
e2464e552a
excmds.ts: make a lot of functions return promises
It's important to have async functions return promises as this ensures
that composite commands run in a deterministic and unsurprising order.

Also, making `:sanitize` synchronous might fix all issues we have with
Tridactyl not sourcing tridactylrcs entirely.
2020-02-25 19:56:03 +01:00
Oliver Blanthorn
35e4dd5af1
Merge pull request #2178 from tridactyl/dependabot/npm_and_yarn/types/jest-25.1.3
Bump @types/jest from 25.1.2 to 25.1.3
2020-02-25 17:46:57 +00:00
Oliver Blanthorn
641f80a59a
Merge pull request #2179 from tridactyl/dependabot/npm_and_yarn/ts-jest-25.2.1
Bump ts-jest from 25.2.0 to 25.2.1
2020-02-25 17:46:22 +00:00
Oliver Blanthorn
fd713e8696
Merge pull request #2177 from tridactyl/dependabot/npm_and_yarn/types/node-13.7.4
Bump @types/node from 13.7.1 to 13.7.4
2020-02-25 17:45:50 +00:00
Oliver Blanthorn
45b2bd2895
Cheer up tslint 2020-02-25 17:15:31 +00:00
mozbug
9933755466 Silence lint 2020-02-25 20:17:48 +08:00
mozbug
8850b00a20 Allow js/jsb to load local javascript file.
Add a flag `-s` to source js files from user's config directory:

    :js -s test.js

With the ability to load js files, `tridactylrc` can have its javascript
code into seperate files.

Since the js code was run by calling `eval()` in local score of calling
function, the variables and functions decleared in the js file will lost
after eval().

To make the content of javascript file reusable, user could export
functions into some globals like `window.` or `tri.`.
2020-02-25 19:52:18 +08:00
josh
45cac09392 Feature: new vmap '=' to expand selection to encompass parent nodes contents 2020-02-24 17:35:35 -06:00
Oliver Blanthorn
27572a5914
Revert "Merge branch 'config_no_onchanged'"
This reverts commit fe39c3e43a, reversing
changes made to 9ceb56595c.
2020-02-20 10:23:56 +00:00
dependabot-preview[bot]
a172ef72ae
Bump ts-jest from 25.2.0 to 25.2.1
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.2.0 to 25.2.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 05:31:01 +00:00
dependabot-preview[bot]
26e9f3a296
Bump @types/jest from 25.1.2 to 25.1.3
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.2 to 25.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 05:30:34 +00:00
dependabot-preview[bot]
264a571f77
Bump @types/node from 13.7.1 to 13.7.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.1 to 13.7.4.
- [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-02-20 05:30:04 +00:00
Oliver Blanthorn
fe39c3e43a
Merge branch 'config_no_onchanged' 2020-02-19 17:04:28 +00:00
Oliver Blanthorn
051c1085f2
Hic erant errata 2020-02-19 11:55:22 +00:00
Oliver Blanthorn
9ceb56595c
Merge pull request #2176 from tridactyl/lint_addon
Make CI run AMO linter
2020-02-19 11:51:02 +00:00
Oliver Blanthorn
732907c0fd
Fix typo in CI config 2020-02-19 11:46:44 +00:00
Oliver Blanthorn
df242153dc
Make CI run AMO linter 2020-02-19 11:46:44 +00:00
Oliver Blanthorn
c6a3a01d40
Merge pull request #2175 from mozbugbox/fix-hinting-position
Fix hinting tag position for multiline links
2020-02-19 11:46:19 +00:00
Oliver Blanthorn
a1648e18e8
Fix #2172: reduce size of Tridactyl scripts by 90% 2020-02-19 11:18:48 +00:00
mozbug
1b32f65056 Give rect a default value 2020-02-19 18:30:28 +08:00
mozbug
cdc86640bc Fix hinting tag position for multiline links
Sometime a link spans multilines. The bounding rect of the link is
larger than the first line. In that case, using boundinig rect could
misplace the hinting tag.

Use the first visible clientRect to position the hinting tag.
2020-02-19 17:48:34 +08:00
Oliver Blanthorn
dc6c1b4c40
Remove delay between RC lines
Hopefully it isn't needed any more.
2020-02-18 21:12:08 +00:00
Oliver Blanthorn
f5439931d6
Restore config changelisteners 2020-02-18 21:04:35 +00:00
Oliver Blanthorn
4f498f986a
Doc fix 2020-02-18 19:06:18 +00:00
Oliver Blanthorn
6031001dcb
Unbreak Tridactyl by importing locks earlier
This is the most mad bug I've had in a while. O_o
2020-02-18 19:06:10 +00:00
Oliver Blanthorn
9b933a8c7a
Fix linter error 2020-02-18 18:54:35 +00:00
Oliver Blanthorn
998c106036
Remove onchanged listener from config 2020-02-18 18:27:59 +00:00
Oliver Blanthorn
d291277748
Merge pull request #2137 from tridactyl/state_no_onchanged
Remove onchanged listener from state
2020-02-18 18:19:28 +00:00
Oliver Blanthorn
bca999e852
Ignore errors about pages not listening 2020-02-18 17:52:28 +00:00
Oliver Blanthorn
22fa2c0354
Ignore some messageAllTab errors 2020-02-18 17:19:53 +00:00
Oliver Blanthorn
4f2bc3db03
Break most of Tridactyl by adding locks to config 2020-02-18 16:38:10 +00:00
Oliver Blanthorn
14a9630f94
Merge pull request #2169 from mozbugbox/sort-completion-filter
Sort completion result based on Fuse.js score
2020-02-18 15:11:31 +00:00
Oliver Blanthorn
d9484112e4
Fix linter errors 2020-02-18 14:51:24 +00:00
mozbug
1684cd83da Fix jump to nth tab directly with tab command 2020-02-18 22:39:15 +08:00
Oliver Blanthorn
7a092a513b
Minor perf optimisation 2020-02-18 13:00:02 +00:00
Oliver Blanthorn
525841d599
Doc fix 2020-02-18 12:46:28 +00:00
Oliver Blanthorn
b19205aa81
Make tslint happy 2020-02-18 12:45:00 +00:00
Oliver Blanthorn
3b495a209d
Fix g; by fixing background state 2020-02-18 12:39:16 +00:00
mozbug
75777d0788 Force scroll to focus in completion updateDisplay 2020-02-18 12:55:10 +08:00
mozbug
c46bd5aa59 Sort completions by score on demand 2020-02-18 09:22:41 +08:00
mozbug
4fcf8a7a44 Sort completion result based on Fuse.js score
The completion uses Fuse.js to match user filter. The matching is fuzzy,
therefore sometime looks weird. The results are much easier to follow by
putting better matched results at the top.
2020-02-18 00:12:06 +08:00
Oliver Blanthorn
d66db550c6
Merge pull request #2168 from mozbugbox/faster-tab-completion
Faster tab completion
2020-02-17 13:59:18 +00:00