Commit graph

2236 commits

Author SHA1 Message Date
Oliver Blanthorn
ec8e2cebef
Merge pull request #1271 from glacambre/add_reset_button
help.ts: Add config-resetting button
2019-01-05 20:17:31 +00:00
glacambre
c2f1538366
help.ts: Add config-resetting button
As mentionned in https://github.com/tridactyl/tridactyl/issues/57 and
https://github.com/tridactyl/tridactyl/pull/502.
2019-01-05 19:51:52 +01:00
Oliver Blanthorn
253aac3d02
Merge pull request #1268 from mandre/doc-fixups
Doc fixups
2019-01-02 16:32:15 +00:00
Martin André
208435208c Fix rendering for reset and reseturl related links
Wrong indentation caused the "See also" section for `reset` and
`reseturl` commands documentation to render HTML <a> tags instead of
links.
2019-01-02 16:53:40 +01:00
Martin André
eefa9ceb50 Fix followpagepatterns examples
The example for followpagepatterns.prev was wrongly using `»` and `>>`
instead of `«` and `<<`.
2019-01-02 16:51:12 +01:00
Oliver Blanthorn
c04316c231
Merge pull request #1266 from glacambre/warn_rsscmd
config.ts: Warn about rsscmd being potentially very dangerous
2018-12-31 20:18:15 +00:00
glacambre
f310c9343d
config.ts: Warn about rsscmd being potentially very dangerous 2018-12-31 21:06:44 +01:00
glacambre
ad737c4689
excmds.ts: Make getRssLinks() return more matches
Standards are for nerds and the BBC isn't for nerds, that's why they use
regular anchors instead of alternate links in order to point to rss
documents on the following page:
https://www.bbc.com/news/10628494

This commit makes sure these links are also picked up by rssexec.
2018-12-29 21:05:45 +01:00
glacambre
b491bcbb29
Turn rsscmd into an ex command
As suggested by bovine3dom in #1263.
2018-12-28 11:21:11 +01:00
glacambre
be315ac967
Implement getrss completions 2018-12-27 11:05:47 +01:00
glacambre
10eade5646
{excmds,lib/config}.ts: implement getrss ex command
The getrss command lives in the background for easy communication with
the native messenger and uses a helper, getRssLinks, that lives in the
content script.
2018-12-27 11:05:22 +01:00
Oliver Blanthorn
5e7d716a0b
Merge pull request #1262 from glacambre/remove_return_await
Replace `return await promise` with `return promise`
2018-12-26 14:56:24 +00:00
glacambre
ab196175ac
Replace return await promise with return promise
Awaiting a promise before returning it doesn't make sense if the await
isn't in a try/catch as awaiting forces a function to be async and thus
turns its return value and any error it might throw into a promise.
Worse than that, it can result in an unnecessary context switch which
could be bad for performance.
2018-12-26 15:33:22 +01:00
Oliver Blanthorn
c2324d68a7
Merge pull request #1259 from glacambre/refresh_completions_faster_on_fillcmdline
commandline_frame.ts: stop using dirty hacks for completions
2018-12-24 08:35:04 +00:00
glacambre
55d6a1e0e6
commandline_frame.ts: stop using dirty hacks for completions
The previous code simulated an input event in order to trigger the input
event handler which recomputed completions. This was ok until delays
were added to the input event handlers in order to reduce the lag that
could happen when typing fast/keeping a key pressed. This delay also
affects completion computation on other actions, such as fillcmdline.

In order to remove this delay, we move completion computation out of the
event handler and directly call this functions everywhere we previously
triggered an input event.

This should help with https://github.com/tridactyl/tridactyl/issues/1242
2018-12-24 09:26:57 +01:00
Oliver Blanthorn
828703ecc4
Merge pull request #1257 from glacambre/use_browserbg
completions: Use browserBg instead of messaging background
2018-12-23 16:02:00 +00:00
glacambre
b97b6dc62e
completions: Use browserBg instead of messaging background
commandline_background.ts:history() isn't used anywhere and is wrong (it
doesn't respect the historyresults setting) so this commit removes it.
Also, currentWindowTabs and allWindowTabs are both used in a single
place (respectively Tab and TabAll completions) and do not perform anything
complicated, thus it's better to have completions juste use browserBg
instead of manually messaging the background process.
2018-12-23 16:37:34 +01:00
Oliver Blanthorn
1ed5823057
Merge branch 'move_fillcmdline_content' 2018-12-23 15:01:45 +00:00
Oliver Blanthorn
3e4e77fe10
Update package-lock 2018-12-23 15:01:32 +00:00
Oliver Blanthorn
2b18552716
Update changelog 2018-12-20 23:04:14 +00:00
Oliver Blanthorn
367de75bcc
Merge branch 'MilanV-master' 2018-12-20 23:02:37 +00:00
Oliver Blanthorn
45b7dcc526
Rename showcmd to modeindicatorshowkeys 2018-12-20 22:58:32 +00:00
Oliver Blanthorn
056d881851
Add snow_mouse_mode 2018-12-20 22:32:24 +00:00
glacambre
b6d358969d
excmds.ts: Move fillcmdline* to content script 2018-12-20 08:15:44 +01:00
glacambre
c259283e96
excmds.ts: Move hidecmdline to content script 2018-12-20 07:47:54 +01:00
glacambre
c9bcd37033
excmds.ts: Move showcmdline to content script 2018-12-20 07:47:33 +01:00
Oliver Blanthorn
3a59fe79e4
Merge pull request #1252 from glacambre/improve_doc
Improve doc
2018-12-19 11:18:44 +00:00
glacambre
033dd91604
excmds.ts: hide internal symbols
No need to show TRI_VERSION and fullscreenApiIsPrefixed in the
doc/completions.
2018-12-19 08:16:33 +01:00
glacambre
e1d408dcd2
excmds.ts: Fix raw html appearing in documentation
Closes #1170.
2018-12-19 08:12:26 +01:00
glacambre
8be9428fc4
excmds.ts: document ignore mode behavior
Closes #1193.
2018-12-19 08:04:23 +01:00
glacambre
076381cb81
{excmds,lib/config}.ts: Better document searchurls
Closes #1107
2018-12-19 07:53:11 +01:00
glacambre
4527cfd455
config.ts: Mention :editor in editorcmd doc
Closes #814
2018-12-19 07:28:08 +01:00
Oliver Blanthorn
d54fbbda6c
Merge pull request #1248 from glacambre/remove_perf_now
background.ts: Replace performance.now() with a simple count
2018-12-18 10:02:52 +00:00
glacambre
820b35b984
background.ts: Replace performance.now() with a simple count
Using performance.now() was a pretty dumb idea that didn't completely
protect us against race conditions and I don't know why I did that
instead of the new code in this commit, which does completely protect us
against race conditions.
2018-12-18 05:27:46 +01:00
Oliver Blanthorn
0a073079fc
Add no_mouse_mode and documentation 2018-12-17 17:30:58 +00:00
Oliver Blanthorn
cee8cb0437
Merge pull request #1245 from glacambre/attempt_fix_1237_v2
commandline_frame.ts: Fail on init if cmdline already inserted
2018-12-16 18:00:22 +00:00
glacambre
78f3785d53
content.ts: Implement lock
Issue #1237 is caused by multiple content scripts being inserted in the
page. According to https://bugzilla.mozilla.org/show_bug.cgi?id=1491994
, declarations might be shared between inserted content scripts. This
means that we can implement a lock that the first content script would
grab and that would make the others fail to load entirely.
2018-12-16 17:46:52 +01:00
Oliver Blanthorn
065d95706c
Update number of unstable users 2018-12-15 21:43:56 +00:00
Oliver Blanthorn
7e6d0ca64f
Merge branch 'attempt_fix_1237' 2018-12-15 21:35:14 +00:00
Oliver Blanthorn
5d02dcf280
Revert "Merge pull request #1243 from glacambre/attempt_fix_1237"
This reverts commit a5e09fd162, reversing
changes made to 815140392b.
2018-12-15 21:34:02 +00:00
glacambre
12669411b0
commandline_content.ts: Don't instantiate multiple command lines
https://github.com/tridactyl/tridactyl/issues/1237 is caused by multiple
command lines being instantiated in the tab. All command lines receive
the "fillcmdline tabopen" message, only one receives the key events
generated by typing stuff in the command line and then they all receive
the "ex.accept_line" message.

There can be two causes ; either Firefox loads multiple Tridactyls
(unlikely) or we load multiple commandlines (more likely). Moving
command line creation out of init() should fix this as the worst that
can happen now when init() is called twice is that the command line is
re-inserted in the document (before that we could have created multiple
command lines).
2018-12-15 22:25:48 +01:00
Oliver Blanthorn
a5e09fd162
Merge pull request #1243 from glacambre/attempt_fix_1237
commandline_content.ts: Don't instantiate multiple command lines
2018-12-15 20:43:06 +00:00
glacambre
5258b6f2cb
commandline_content.ts: Don't instantiate multiple command lines
https://github.com/tridactyl/tridactyl/issues/1237 is caused by multiple
command lines being instantiated in the tab. All command lines receive
the "fillcmdline tabopen" message, only one receives the key events
generated by typing stuff in the command line and then they all receive
the "ex.accept_line" message.

There can be two causes ; either Firefox loads multiple Tridactyls
(unlikely) or we load multiple commandlines (more likely). Moving
command line creation out of init() should fix this as the worst that
can happen now when init() is called twice is that the command line is
re-inserted in the document (before that we could have created multiple
command lines).
2018-12-15 21:04:15 +01:00
Oliver Blanthorn
815140392b
Temporary fix to stop builds being broken
I'll make the minimum actually check for a minimum sometime before Wine 5 is released
2018-12-14 21:34:50 +00:00
Oliver Blanthorn
3283a71d4d
Remind me to use the checklist when I do a release 2018-12-14 21:09:47 +00:00
Oliver Blanthorn
af36ebc3f5
release 1.14.6 2018-12-14 20:51:37 +00:00
Oliver Blanthorn
b69c795998
Update changelog for 1.14.6 2018-12-14 20:51:09 +00:00
Oliver Blanthorn
6cb5816557
Fix #1235 - updatenag was checking the wrong date 2018-12-14 20:47:28 +00:00
Oliver Blanthorn
bc01010512
Fix #1230: document winopen -private 2018-12-13 14:40:25 +00:00
Oliver Blanthorn
bb60ddce26
release 1.14.5 2018-12-13 14:37:17 +00:00