Commit graph

528 commits

Author SHA1 Message Date
Mohammad AlSaleh
6bab32f99b tabmove: Treat pinned and unpinned tabs as separate groups
Fixes #877

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2018-08-04 15:44:47 +03:00
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
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
glacambre
e1affec065
Implement mode for unbind
Closes https://github.com/cmcaine/tridactyl/issues/887.
2018-08-03 06:50:04 +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
Colin Caine
876050d410 milliseconds aren't strings 2018-07-30 23:51:08 +01: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
dd94e5a493
Fix #671: support _ prefix for RC, improve docs 2018-07-30 17:56: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
59da8d417f
Fix #867: deprecate !js{,b}. 2018-07-30 14:37:52 +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
66af0b8be4 Fix tuple unpacking on the wrong side of brackets. 2018-07-26 17:02:09 +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
Oliver Blanthorn
5e7b1dbc51
Add link to tutor to help 2018-07-25 17:18:39 +01:00
Anton Vilhelm Ásgeirsson
369fbd56b5 Improve autocontain excmd documentation. 2018-07-25 12:32:53 +00:00
Oliver Blanthorn
926d2ad0fe
Fix autocontain grammar 2018-07-24 17:40:36 +01:00
Oliver Blanthorn
5afdaa0564
Merge pull request #851 from glacambre/fix_bufferall_selecting_wrong_window
Fix bufferall selecting the wrong window.
2018-07-24 08:57:56 +01:00
glacambre
96d0b20cc5
Fix bufferall selecting the wrong window.
The problem was that when calling sort on an array of numbers without
specifying the sort function that should be used, the array will be
sorted according to the lexicographic order of the elements.

This is fixed by specifying what function should be used to sort the
array.

This fixes https://github.com/cmcaine/tridactyl/issues/819.
2018-07-24 08:03:02 +02:00
Anton Vilhelm Ásgeirsson
1de3f76d21 Autocontainers only contain the domains specified.
Added comments and documentation notifying people that autocontainers
are experimental. Removed autocontainer section from the containers
tutor page. Autocontainers will now correctly open external links in the
default container. Removed a couple of config checks that were
unnecessary.
2018-07-23 12:38:35 +00:00
Oliver Blanthorn
7c9e2b3759
Make rapid hinting less rapid if there's only one link 2018-07-23 11:34:42 +01:00
glacambre
9d45675720
excmds.ts: Actually make guiset error message easier to understand
The previous version correctly displayed an error on `:guiset_quiet` but
hid error messages for `guiset`.
2018-07-22 18:35:14 +02:00
glacambre
c2e736170b
excmds.ts: Make guiset error message easier to understand 2018-07-22 17:57:36 +02:00
Oliver Blanthorn
def998a5a5
Fix help again 2018-07-21 18:29:19 +01:00
Oliver Blanthorn
e06516fec0
If a major feature is only broken for a few minutes
does it really count as broken?
2018-07-21 17:03:44 +01:00
Oliver Blanthorn
2e6e2b0167
Merge branch 'sane-hints' of github.com:cmcaine/tridactyl
Also add a bind for rapid hint mode: `gF`.
2018-07-21 16:53:42 +01:00
Oliver Blanthorn
e99b30f297
Copy and paste hint code over to excmds 2018-07-21 16:44:11 +01:00
Oliver Blanthorn
7ec89f9d32
Move most of hinting to content 2018-07-21 13:12:48 +01:00
Oliver Blanthorn
4a5a25cf47
Move most of hinting to content 2018-07-21 13:02:50 +01:00
Colin Caine
247fc05d1c Simplify open() 2018-07-20 13:40:24 +01:00
Anton Vilhelm Ásgeirsson
6278346c39 Add a container page to :tutor.
Renamed containerremove to containerdelete to be more in line with the
current naming scheme and added some preliminary documentation on
containers and autocontainers.
2018-07-20 11:12:03 +00:00
Colin Caine
6ed83eacdb Add DocLoad aucmd 2018-07-18 14:36:35 +01:00
Oliver Blanthorn
9199938dc8
Fix #827: typo 2018-07-17 18:00:46 +01:00
Oliver Blanthorn
6e200cd516
Improve tabmove help 2018-07-17 16:18:48 +01:00
Anton Vilhelm Ásgeirsson
171bed6eac Rename '-u' to 'unmute', reflect that in documentation and config.ts 2018-07-16 09:28:50 +00:00
Anton Vilhelm Ásgeirsson
4e8d3f707b Add mute excmd.
Mute takes a couple of arguments that are a bit loosely defined. `-u`
unmutes, as seen by the `unmute` exalias. `toggle` toggles between the
states. `all` applies `mute/unmute/toggle` on all the tabs in the current window.
2018-07-15 23:46:13 +00:00
glacambre
77595f7e4d
excmds.ts: Implement guiset_quiet.
This fixes https://github.com/cmcaine/tridactyl/issues/802.
2018-07-14 15:18:09 +02:00
Oliver Blanthorn
2a43d0b910
Merge branch 'x_selection' of https://github.com/glacambre/tridactyl into glacambre-x_selection 2018-07-12 18:13:49 +01:00
Oliver Blanthorn
a3dd4ed119
Merge branch 'url2args' of https://github.com/glacambre/tridactyl 2018-07-12 18:12:20 +01:00
Oliver Blanthorn
047c9d2918
Rename rmautocmd to autocmddelete to be more like Vim
Also remove au! as I would expect these to merely allow overwriting the autocommand, not just wipe it clean
2018-07-12 16:51:25 +01:00
Oliver Blanthorn
e548d03b96
Merge branch 'remove-autocmds' of https://github.com/friedm/tridactyl into friedm-remove-autocmds 2018-07-12 16:40:20 +01:00
Oliver Blanthorn
e1bee5e8c4
Merge branch 'dismiss_fillcmdline_tmp' of https://github.com/glacambre/tridactyl into glacambre-dismiss_fillcmdline_tmp 2018-07-12 16:38:11 +01:00