Commit graph

2339 commits

Author SHA1 Message Date
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
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
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
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
mozbug
5590160510 Don't reload options of tabs on completion update 2020-02-17 20:17:39 +08:00
mozbug
ba9cce3e37 Speedup tab completion 2020-02-17 19:22:28 +08:00
Oliver Blanthorn
e3ca8e3f80
Use named locks 2020-02-16 20:40:50 +00:00
Oliver Blanthorn
a54ec6bbbd
Fix typo
One day I will rebase something without mangling it.

Today was not that day.
2020-02-16 20:34:20 +00:00
Oliver Blanthorn
731f56d113
Remove onchanged listener from state 2020-02-16 20:26:12 +00:00
Oliver Blanthorn
7d9e7d5ab4
Switch to Ricard-Agrawala locks 2020-02-16 20:19:30 +00:00
Oliver Blanthorn
acae10a8cd
Add locks library 2020-02-16 20:19:26 +00:00
Oliver Blanthorn
56f69a7814
Fix #2158: add R to tri object 2020-02-16 16:06:28 +00:00
mozbug
d17fd9c531 Hint for partially visible links
Links with only bottom half visible are hinted too.
2020-02-16 15:41:46 +08:00
Oliver Blanthorn
a6c23999cc
Make mergeDeep less misleading 2020-02-14 19:29:34 +00:00
Oliver Blanthorn
84d8a3d9eb
Rename configrm to setnull 2020-02-14 19:21:13 +00:00
Oliver Blanthorn
691d1bbc59
Add configrm command to remove part of default config 2020-02-14 15:25:46 +00:00
Oliver Blanthorn
a1b78709df
Update unbound binds from '' to null 2020-02-14 15:24:39 +00:00
Oliver Blanthorn
498fb7fa82
Switch from '' to null 2020-02-14 15:14:39 +00:00
Oliver Blanthorn
240d251a61
Tidy up generic mode parser 2020-02-14 10:11:26 +00:00
Oliver Blanthorn
d0d21af51a
Fix #2156: allow users to remove defaults 2020-02-14 10:11:26 +00:00
yuri
9bf2643252 Add tabsort option to control how tabs are sorted. default = per index, mru = most recent 2020-01-31 10:55:04 +01:00
Oliver Blanthorn
65033343ae
Fix #2088: restore automatic exit from visual mode
You can toggle this with the visualexitauto setting.
2020-01-12 12:44:37 +00:00
Oliver Blanthorn
7510fb32fe
Fix #2087: add visualenterauto setting 2020-01-12 12:30:51 +00:00
Oliver Blanthorn
71ae00534b
Fix #2077: swap tab/shift-tab binds in hint mode 2020-01-09 11:36:54 +00:00