Commit graph

1676 commits

Author SHA1 Message Date
Oliver Blanthorn
b7158d2dba
Fix default hint case 2018-08-03 22:25:15 +01:00
Oliver Blanthorn
cd89a1d1e9
Merge branch 'master' of github.com:cmcaine/tridactyl into glacambre-fix_hint_bug 2018-08-03 22:09:07 +01:00
Oliver Blanthorn
aaa0016fc5
Fix #386: add hintdelay setting
As a bonus, move glacambre's goal posts
2018-08-03 22:01:28 +01:00
glacambre
49309d9486
Improve hint error handling.
Instead of returning null when no hint has been selected, hinting.pipe
will now return a promise that will be resolved once a hint has been
selected or rejected if hintstate is destroyed without a hint being
explicitly selected by the user or if there are no hints to select.

Promise rejection is then handled at the end of excmds.ts:hint(), as
suggested by bovine3dom on Riot.
2018-08-03 22:56:12 +02:00
Oliver Blanthorn
20d8ec0309
Merge pull request #890 from glacambre/implement_mode_for_unbind
Implement mode for unbind
2018-08-03 07:40:06 +01:00
glacambre
e1affec065
Implement mode for unbind
Closes https://github.com/cmcaine/tridactyl/issues/887.
2018-08-03 06:50:04 +02:00
Oliver Blanthorn
9597f2facb
Merge pull request #889 from glacambre/fix_commandline_on_svgs
Fix infinite recursion on SVG
2018-08-02 08:02:26 +01:00
glacambre
b79fddf258
Fix infinite recursion on SVG
On SVG pages, trying to open the commandline results in an error. We
attempted to log this error using logger.error, which in turn tried to
open the command line. Recursion ensued.

This is fixed by not using the logger to log these errors to the. A
better solution could be to have the logger use the notification API to
tell the user about errors that happen while logging errors, but this
would require a new permission, which we shouldn't ask for until a
solution to https://github.com/cmcaine/tridactyl/issues/788 and
https://github.com/cmcaine/tridactyl/issues/708 is found.

This fixes https://github.com/cmcaine/tridactyl/issues/879.
2018-08-02 06:48:25 +02:00
glacambre
2f6bd1726e
Fix hint bug.
In hinting.ts, pipe() and pipe_elements() assumed that the resolve
function they passed to hintPage() would always be called, which wasn't
always the case (e.g. when a users goes into hint mode but presses
`<Esc>`).

This caused unresolved promises to linger in the tab. When the tab was
closed, an error was thrown about the message manager being
disconnected. This was caught by Tridactyl and displayed in the command
line.

We're fixing this bug by passing no-op functions as onSelect to
hintPage() and explicitly passing the resolve function. The resolve
function is then saved in HintState and called when destroying
HintState.

We parametrize reset() in order to be able to distinguish between resets
caused by a hint being selected and by the user pressing `<Esc>`. This
is necessary because we need to know when the function should resolve
the last focused hint and when it shouldn't.

We then add a bunch of null handling in excmds.ts:hint() in order to
make sure not to introduce other bugs.

This fixes https://github.com/cmcaine/tridactyl/issues/855.
2018-08-01 20:41:01 +02:00
Oliver Blanthorn
083abf029e
Mention hint case setting in hint help 2018-08-01 14:04:47 +01:00
Oliver Blanthorn
74117e29ee
Merge branch 'master' of github.com:cmcaine/tridactyl into hint 2018-08-01 14:03:36 +01:00
Lucian Poston
9263b3f213 hintuppercase to toggle CSS overriding hint case 2018-08-01 02:50:36 -07:00
Oliver Blanthorn
8840b4008e
Merge pull request #884 from antonva/fix-autocontainers
Add auconenable config check.
2018-08-01 09:57:27 +01:00
Anton Vilhelm Ásgeirsson
3f0edaf202 Change auconenable check to check size of autocontain object. 2018-07-31 22:21:42 +00:00
Anton Vilhelm Ásgeirsson
e7524f191c Add auconenable config check.
Ignores all autocontain directives unless config variable is set to
"true".
2018-07-31 21:56:18 +00:00
Colin Caine
876050d410 milliseconds aren't strings 2018-07-30 23:51:08 +01:00
Colin Caine
6bd55f842d Better workaround 2018-07-30 23:47:02 +01:00
Colin Caine
7cd0468752 Workaround loop forever bug in help.ts 2018-07-30 21:36:39 +01:00
Oliver Blanthorn
5e0c8243f3
Merge pull request #881 from poinck/patch-1
native_messenger: fix invalid syntax
2018-07-30 19:04:40 +01:00
André Klausnitzer
5cb26902e9
fix invalid syntax for os.path.join(... 2018-07-30 19:54:34 +02:00
Oliver Blanthorn
bf1a2ad5c0
Fix #866: add yet another flag syntax, this time for binds 2018-07-30 18:27:08 +01:00
Oliver Blanthorn
24a568d5d7
Fix wrong directory 2018-07-30 17:57:08 +01:00
Oliver Blanthorn
dd94e5a493
Fix #671: support _ prefix for RC, improve docs 2018-07-30 17:56:05 +01:00
Oliver Blanthorn
e958d977c5
Improve issue template for Windows
Thanks @clange.
2018-07-30 15:13:05 +01:00
Oliver Blanthorn
ab94d9dd4e
Merge branch 'master' of github.com:cmcaine/tridactyl into container-aucmds 2018-07-30 14:56:53 +01:00
Oliver Blanthorn
3f64853114
Merge branch 'master' of github.com:cmcaine/tridactyl into MoSal-master 2018-07-30 14:51:14 +01:00
Oliver Blanthorn
d00d84c0fc
Add magic indices to tabmove 2018-07-30 14:51:06 +01:00
Oliver Blanthorn
d974be1d05
Fix #863: add some insert mode binds
Also add C-^, same as C-6.
2018-07-30 14:41:19 +01:00
Oliver Blanthorn
59da8d417f
Fix #867: deprecate !js{,b}. 2018-07-30 14:37:52 +01:00
Oliver Blanthorn
27100b0872
Merge branch 'master' of github.com:cmcaine/tridactyl into modespecific_suppression 2018-07-30 14:32:21 +01:00
Oliver Blanthorn
49bcd06592
Improve symmetry 2018-07-30 14:27:20 +01:00
Oliver Blanthorn
c86b472b2f
Merge pull request #873 from MoSal/fix
Fix another tuple unpacking on the wrong side of brackets
2018-07-29 23:11:58 +01:00
Mohammad AlSaleh
50d1ddae8d Fix another tuple unpacking on the wrong side of brackets
Missed in 66af0b8be4

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2018-07-29 23:12:56 +03:00
Mohammad AlSaleh
fcfb9afda6 Make tabmove circular
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2018-07-29 17:46:01 +03:00
Anton Vilhelm Ásgeirsson
27a543e21c Refactor modeSpecificSuppression.
Normal, input, insert and ignore modes all use the new genericResponse
function to map their specific keys.
2018-07-29 13:21:13 +00:00
Anton Vilhelm Ásgeirsson
1a89a85bd1 Add <C-[> binds to all relevant modes. 2018-07-29 13:20:19 +00:00
Oliver Blanthorn
86c135996d
Merge pull request #870 from glacambre/help_i_cant_stop_breaking_tridactyl
logging.ts: Fix bug introduced in previous commit
2018-07-29 11:32:26 +01:00
glacambre
25eb07193a
logging.ts: Fix bug introduced in previous commit 2018-07-29 12:10:59 +02:00
Oliver Blanthorn
bf671cfaba
Merge pull request #868 from glacambre/make_logger_log_stacktraces
logging.ts: Make logger log stack traces on errors
2018-07-29 10:56:28 +01:00
glacambre
e705297915
logging.ts: Make logger log stack traces on errors 2018-07-29 11:31:09 +02:00
Oliver Blanthorn
d64fadbcd5
Fix #859 and #374: stop GitHub from stealing / from Firefox
Most of this code came from https://superuser.com/questions/168087/how-to-forbid-keyboard-shortcut-stealing-by-websites-in-firefox#answer-670040.

If anyone really wants to use GitHub's / search, just `set leavegithubalone true` and reload the page.

This commit should be reverted once #623 is done.
2018-07-26 20:47:51 +01:00
Oliver Blanthorn
48dc51bd60
Merge branch 'master' of github.com:cmcaine/tridactyl into rapidhint_fix 2018-07-26 20:31:14 +01:00
Anton Vilhelm Ásgeirsson
66af0b8be4 Fix tuple unpacking on the wrong side of brackets. 2018-07-26 17:02:09 +00:00
Oliver Blanthorn
b8b896dabd
Merge pull request #861 from antonva/docload-config
Add DocLoad object to config.ts.
2018-07-26 17:29:11 +01:00
Anton Vilhelm Ásgeirsson
093300d053 Add DocLoad object to config.ts.
This fixes that annoying TypeError in the browser console.
2018-07-26 16:23:26 +00:00
Anton Vilhelm Ásgeirsson
524bce91c5 Remove traces of old rapid hint fix and address the correct element of
hinting.pipe.
2018-07-26 13:21:38 +00:00
Anton Vilhelm Ásgeirsson
4b8576646a Refactor hinting.pipe to return a tuple.
Now returns a tuple of the element and the number of hints available
when the function was run. This mainly fixes the rapid hint bug
encountered when the user enters rapid hint mode with only one link
available.

Another application idea would be modeline info or something in that
vein.
2018-07-26 12:05:49 +00:00
Oliver Blanthorn
041d8f6388
Hide some internal functions from help 2018-07-26 10:45:11 +01:00
Oliver Blanthorn
e0f9fa4e45
Add abnormal binds to help page
That was about 1000x easier than I was expecting. Thanks @glacambre!
2018-07-26 10:38:54 +01:00
Oliver Blanthorn
756c29673a
Fix #850: Dodgy yy
I don't quite understand how it worked at all without focusing the commandline first.

Peppered code with some more awaits as part of debugging and couldn't be bothered to test which were necessary.
2018-07-26 10:17:46 +01:00