Commit graph

2461 commits

Author SHA1 Message Date
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
Oliver Blanthorn
2aa36f7554
Check for updates at start, only nag if it's been a while 2018-12-07 15:40:20 +00:00
Oliver Blanthorn
5857b561b8
Merge pull request #1219 from glacambre/hint_a_priority
hinting.ts: Give higher z-index to <a> hints
2018-12-07 11:46:54 +00:00
glacambre
b501930aa6
hinting.ts: Give higher z-index to <a> hints
Closes #1215.
2018-12-07 06:37:53 +01:00
Oliver Blanthorn
a5ff5ccbca
Add rudimentary version checker 2018-12-07 00:31:16 +00:00
Oliver Blanthorn
27e8ca3701
Merge branch 'urlspecific_noiframe' 2018-12-06 14:47:02 +00:00
Oliver Blanthorn
fb42dad708
Update package-lock 2018-12-06 14:46:52 +00:00
Oliver Blanthorn
c706a6630f
Merge pull request #1216 from glacambre/fix_style
styling.ts: Fix style not being loaded when opening tabs in bg
2018-12-06 09:44:40 +00:00
glacambre
950b149fcc
styling.ts: Fix style not being loaded when opening tabs in bg
By default, insertCSS and removeCSS operate in the active tab. This is a
problem when opening tabs in the background (e.g. with `hint -b`)
because the transformations will be applied to the current tab instead
of the newly opened one.
This commit fixes that.
2018-12-06 07:05:57 +01:00
Oliver Blanthorn
7c7d59ef46
Merge pull request #1213 from glacambre/fix_1209
lib/editor.ts: Make editor functions work on input where type = "email"
2018-12-05 19:37:22 +00:00
arcnmx
2e0a55a4eb
lib/editor.ts: Make editor functions work on input where type = "email"
Before this commit, editor functions that read or modified caret
position in input fields did not work on input fields the type of which
was "email". This was because browsers implement the selectionStart and
selectionEnd attributes only for a few input types.
This problem is fixed by first converting the input field to text,
applying the wanted modifications and then changing the input field's
type back to whatever it was before.

Closes #1209.
2018-12-05 19:24:45 +01:00
Oliver Blanthorn
55aadcb5c7
release 1.14.3 2018-12-04 15:24:43 +00:00