Commit graph

1285 commits

Author SHA1 Message Date
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
glacambre
25eb07193a
logging.ts: Fix bug introduced in previous commit 2018-07-29 12:10:59 +02: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
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
Oliver Blanthorn
c3d0ef60c8
Add C-f,b to scroll up/down
Apparently C-b being forcibly bound to bookmarks doesn't happen any more.
2018-07-25 17:26:00 +01:00
Oliver Blanthorn
5e7b1dbc51
Add link to tutor to help 2018-07-25 17:18:39 +01:00
Oliver Blanthorn
47f90395eb
Rerename Windows native install script 2018-07-25 14:39:59 +01:00
Anton Vilhelm Ásgeirsson
7639a6ffa2 Improve domain matching regex slightly.
Matched excmd documentation to the one in lib/autocontainers.ts.
Removed a stray console.log.
2018-07-25 12:33:23 +00:00
Anton Vilhelm Ásgeirsson
369fbd56b5 Improve autocontain excmd documentation. 2018-07-25 12:32:53 +00:00
Oliver Blanthorn
198c2b155d
Wow 2018-07-25 12:57:15 +01:00
Anton Vilhelm Ásgeirsson
515b7f4c95 Add exalias for containerdelete for backwards compat. 2018-07-25 11:35:13 +00:00
Oliver Blanthorn
9eb8a12792
Remove more code I can't see the point of 2018-07-25 12:25:56 +01:00
Oliver Blanthorn
d26402929d
Remove obsolete code >:D 2018-07-25 12:08:04 +01:00
Oliver Blanthorn
99f6dc4e8e
Hack keyseq into working with ignore 2018-07-25 11:44:34 +01:00
Oliver Blanthorn
c799c9a39d
Start thinking about generic parser 2018-07-24 18:52:32 +01:00
Oliver Blanthorn
6e6532503d
Move misleading comment 2018-07-24 18:04:27 +01: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
93e895e446
Make source ignore visually empty lines 2018-07-23 12:00:15 +01:00
Oliver Blanthorn
7c9e2b3759
Make rapid hinting less rapid if there's only one link 2018-07-23 11:34:42 +01:00
glacambre
5b30812361
completions: Make selected completion option undefined on change
Before this patch, selected completion options weren't properly
deselected when available options changed. This commit fixes this.

This does not break completion option autoselect because the reset
happens before autoselection.

This fixes https://github.com/cmcaine/tridactyl/issues/833.
2018-07-23 08:27:27 +02:00
Oliver Blanthorn
58dafc685a
Merge pull request #846 from glacambre/make_guiset_error_message_easier_to_understand
excmds.ts: Actually make guiset error message easier to understand
2018-07-22 17:59:06 +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
Oliver Blanthorn
8c5c07af4b
Merge pull request #845 from glacambre/make_guiset_error_message_easier_to_understand
excmds.ts: Make guiset error message easier to understand
2018-07-22 17:26:36 +01:00
glacambre
c2e736170b
excmds.ts: Make guiset error message easier to understand 2018-07-22 17:57:36 +02:00
glacambre
7025c9e2fc
History.ts: Add missing space when inserting completion options
e5d2be7 introduced a bug while trying to fix
https://github.com/cmcaine/tridactyl/issues/838: when the command line
contains `tabopen -flag ` and the user tries to insert the selected
completion option in the command line by pressing <Space>, the resulting
command line will be `tabopen -flagurl` instead of `tabopen -flag url`.

This is fixed by appending a trailing space to the `options` variable if
it isn't an empty string.
2018-07-21 21:30:46 +02:00
Oliver Blanthorn
def998a5a5
Fix help again 2018-07-21 18:29:19 +01:00
Oliver Blanthorn
e5d2be73eb
Fix #838: remove errant space 2018-07-21 17:52:58 +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
edae721c2e
Remove dead code 2018-07-21 13:18:50 +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
Oliver Blanthorn
a2e95035dd
Reduce the size of hinting*.ts
by adding some more lines of code
2018-07-20 17:39:00 +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
Chris Pickard
e476817663 Ctrl-Y should scroll up 2018-07-19 15:04:19 -04:00