Commit graph

708 commits

Author SHA1 Message Date
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
Oliver Blanthorn
b754c9e619
Merge branch 'fix_buggy_fillcmdline_tmp' of https://github.com/glacambre/tridactyl into glacambre-fix_buggy_fillcmdline_tmp 2018-07-12 16:35:54 +01:00
Oliver Blanthorn
6fc87d9121
Fix #782: document editor bind more thoroughly 2018-07-11 11:56:31 +01:00
Babil Golam Sarwar
02c76e0f00
Fix PowerShell auto-close when native-messenger installation fails 2018-07-11 17:08:44 +10:00
glacambre
c2d5f27394
excmds.ts: Make tabprev synchronous
This fixes https://github.com/cmcaine/tridactyl/issues/783.
2018-07-10 19:35:21 +02:00
Anton Vilhelm Ásgeirsson
79701139fb Remove reopenincontainer excmd. 2018-07-08 17:09:32 +00:00
Anton Vilhelm Ásgeirsson
ca5df7813a Create auconpreservetab config setting.
Improve excmd documentation of autocontain.
Alias 'autocontain' to 'aucon' in config.ts.
Make autoContain preserve tabs if originUrl is defined.
2018-07-07 18:38:06 +00:00
Anton Vilhelm Ásgeirsson
4077a7a2a9 Create autocontain excmd. 2018-07-07 11:18:02 +00:00
Anton Vilhelm Ásgeirsson
efb8d63254 Add autocontain examples in config.ts for testing purposes.
Create logic for handling autocontainers before a tab is created.
2018-07-06 10:44:08 +00:00
glacambre
6e8332fe7c
Fix scrolling on bugzilla.mozilla.org
The problem was caused by elements having their scroll-behavior set to
"smooth". This meant that offsetTop was updated with a delay. The delay
made Tridactyl that the element couldn't be scrolled at all and thus
scrolling failed.

This commit has the nice side-effect of disabling smooth scrolling ig
"smoothscroll" isn't set to "true" in the config.

This fixes https://github.com/cmcaine/tridactyl/issues/762.
2018-07-06 07:06:05 +02:00
glacambre
cb06d3b9d5
Fix fillcmdline_tmp not closing the cmdline when changing tabs 2018-07-05 19:50:32 +02:00
glacambre
2fed33c115
Fix race condition in :sanitise
This fixes https://github.com/cmcaine/tridactyl/issues/724.
What happened was that sanitise was executed,
browser.storage.{local,sync}.clear() was called, the rest of the
settings were modified and only after this was the onChange event
listener in config.ts called, which then cleared the config.

Awaiting the result of .clear() makes sure that the onChange event
listener is triggered before executing any other command that might
make modifications to the browser storage. This can (and has) been
verified by surrounding the .clear() calls with console.logs and adding
a console.log to the onChange event listener.
2018-07-05 08:05:30 +02:00
glacambre
2eea72e429
Make external clipboard settings simpler, document them 2018-07-04 06:09:09 +02:00
glacambre
587c598b18
Improve code quality in getclip()/setclip()/clipboard() 2018-07-04 06:08:20 +02:00
glacambre
a88d56e396
excmds.ts: Fix small bugs in setclip/getclip 2018-07-04 05:45:35 +02:00
glacambre
39cecd91dd
native_background.ts: Use here-documents to send data to clipcmd's stdin 2018-07-04 05:45:33 +02:00
glacambre
afd4c613c8
Implement native messenger interaction with the X selection buffer 2018-07-04 05:45:29 +02:00
Jeff King
de62321495
Fix yank canonical, short link feedback message 2018-07-03 23:40:06 +01:00
Oliver Blanthorn
cf39a9a05d
Add quiet version of fixamo 2018-07-03 19:05:20 +01:00
Oliver Blanthorn
e20a224fb8
Add message to rest of clipboard yank* 2018-07-03 14:56:18 +01:00
Oliver Blanthorn
2a3814abb6
Fix #752: yy and others broken 2018-07-03 14:41:55 +01:00
Oliver Blanthorn
e2986ecc4d
Fix yanktitle 2018-07-03 12:49:16 +01:00