Commit graph

2522 commits

Author SHA1 Message Date
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
Oliver Blanthorn
bd08cfb9e2
Update changelog for 1.14.5 2018-12-13 14:36:44 +00:00
Oliver Blanthorn
393a4b033e
Fix #1233: check modeState exists 2018-12-13 14:19:36 +00:00
Oliver Blanthorn
dd103fd524
Update package-lock 2018-12-13 13:38:59 +00:00
Oliver Blanthorn
d922f37a47
Prevent unbound keys from appearing in indicator 2018-12-13 13:38:51 +00:00
Oliver Blanthorn
6d28707629
Fix indentation 2018-12-13 13:27:41 +00:00
Oliver Blanthorn
be2618c352
Merge branch 'config_api' 2018-12-13 13:03:42 +00:00
Oliver Blanthorn
e7046af8ad
Merge pull request #1231 from glacambre/fix_binding_space
Fix binding space
2018-12-13 08:16:27 +00:00
glacambre
e35901bcce
Fix binding space
Before storing bindings in the config, bindings are first converted to
their canonical representation by using toMapstr. The problem is that
toMapstr returns " " instead of "<Space>" when asked to convert a
minimalkey representing a space.
This was a problem while trying to bind/unbind keys that were already
bound in the config (e.g. `unbind --mode=ex <Space>` to disable
inserting completions).
This commit fixes that. It also comes with a config updater in order to
make sure that we do not break `<Space>` bindings for users who might
have created some.
2018-12-13 08:49:26 +01:00
Oliver Blanthorn
74b3b5de81
release 1.14.4 2018-12-12 17:57:28 +00:00
Oliver Blanthorn
ee21e6bca2
Update changelog for 1.14.4 2018-12-12 17:57:14 +00:00
Oliver Blanthorn
ff31701e08
Add nativeupdate alias to updatenative to make it more discoverable 2018-12-12 17:43:32 +00:00
Oliver Blanthorn
feb996c53f
Merge branch 'furgerf-master' 2018-12-12 17:38:07 +00:00
Oliver Blanthorn
255602ba6f
Merge pull request #1228 from glacambre/fix_1204
native_main.py: Add ".txt" suffix to temporary file names
2018-12-12 12:39:12 +00:00
glacambre
a56c185935
native_main.py: Add ".txt" suffix to temporary file names
Reasons explained in https://github.com/tridactyl/tridactyl/issues/1204

Closes #1204
2018-12-12 07:14:20 +01:00
Fabian Furger
42cdadb97c Fix minor issue with active hint when filtering
Previously, the focussed hint may be unfocussed after it's being hidden,
adding the `TridactylHintElem` class is again which makes it visible.

Also, undo a change to the filter if no hints remain. This is consistent
with the behavior of ignoring keys that wouldn't match any hints.
2018-12-10 16:16:33 +01:00
Fabian Furger
9c01f57f2d Cycle the hint focus through the available hints 2018-12-10 16:16:33 +01:00
Fabian Furger
f505afe880 Add comment about ´vimperator-reflow´ to config
Based on
https://github.com/tridactyl/tridactyl/issues/1028#issuecomment-424473945,
since I was also looking for the difference between the two modes.

Also: fix a typo in my alias :)
2018-12-10 16:16:33 +01:00
Oliver Blanthorn
1577a8e32e
Merge pull request #1225 from glacambre/fix_1223
Fix "tab" alias breaking completions
2018-12-10 08:39:39 +00:00
glacambre
4a6305df47
Fix "tab" alias breaking completions
PR#1183 broke completions for users that had a tab -> buffer alias. This
is because having such an alias created a loop, which made
BufferCompletionSource throw errors when being instanciated, which
resulted in the activeCompletions array not being created.

This is fixed in two ways: first, a config updater is created in order
to remove the alias. Second, completions are instantiated in
try/catchs, which should hopefully prevent a faulty completion source
constructor from breaking every completion source.
2018-12-10 07:00:11 +01:00
Oliver Blanthorn
2e0774df79
Merge branch 'thwart-yellow' 2018-12-08 19:59:43 +00:00
Oliver Blanthorn
2aad15177e
Make updatecheck only fire once per new version 2018-12-08 19:59:21 +00:00
Oliver Blanthorn
84d26ec063
Merge pull request #1221 from glacambre/hint_selectors
excmds.ts: Make hint -c use all given selectors
2018-12-08 12:07:45 +00:00
glacambre
504db0f8c0
excmds.ts: Make hint -c use all given selectors
Before this commit, hint -c would only use the `selectors` parameter in
order to find the elements it needed to add hints to. This was a problem
when using invocations such as `:hint -c a, b`, because `b` would be put
in the rest argument by the excmd parser and `:hint` would end up trying
to use the `a, ` selector alone, which isn't a valid selector and then
would make the whole command fail.

This commit fixes that by making sure `hint -c` uses all available
arguments as selectors.
2018-12-08 05:59:49 +01:00