Commit graph

1540 commits

Author SHA1 Message Date
Oliver Blanthorn
7e8c159a97
Merge pull request #767 from WorldCodeCentral/master
Add condition for the -b open in background argument for completions
2018-07-14 21:15:59 +01:00
WorldCodeCentral
5d7e8aba78
Update History.ts
Correct mistake that tabopen -b took two arguments when it should take only one
2018-07-14 20:38:48 +02:00
Oliver Blanthorn
c6d055b994
Merge pull request #806 from glacambre/implement_guiset_quiet
excmds.ts: Implement guiset_quiet.
2018-07-14 15:49:46 +01: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
4beccba119
Merge pull request #798 from gsbabil/gsbabil/enforce-powershell-minimum-version
Add support to enforce minimum version for PowerShell
2018-07-13 09:05:51 +01:00
Oliver Blanthorn
6367fbfa68
Merge pull request #799 from glacambre/fix_clipboard_selection_adding_newline
native_background.ts: Fix clipboard() adding newlines to copied strings
2018-07-13 09:03:02 +01:00
glacambre
4a5dcd7557
native_background.ts: Fix clipboard() adding newlines to copied strings
Here-documents require a newline at the end of their content and there's
no way around it. In order to prevent the newline to be sent to the
clipboard command, we can do two things: not use here-documents or pipe
the content to sed first to remove the newline.

Not using here-documents means doing a lot of string manipulations to
escape the string properly. Using here-documents is conceptually
simpler.

Hence, we keep using here-documents and pipe the string to sed in order
to remove the newline.
2018-07-13 06:35:13 +02:00
Babil Golam Sarwar
92e99aabbb
Add support to enforce minimum version for PowerShell 2018-07-13 08:46:09 +10: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
93c5fc3176
Merge pull request #771 from glacambre/fix_buggy_scoredOptions
completions.ts: Remove unused and buggy code
2018-07-12 18:05:17 +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
deef62cfbd
Merge branch 'fix_shydactyl' of https://github.com/glacambre/tridactyl into glacambre-fix_shydactyl 2018-07-12 16:31:16 +01:00
Oliver Blanthorn
6fc87d9121
Fix #782: document editor bind more thoroughly 2018-07-11 11:56:31 +01:00
Oliver Blanthorn
39c9dbf63a
Merge pull request #786 from gsbabil/gsbabil/fix-native-messenger-exe-download
Fix native_main.exe download failure, PowerShell auto-close etc.
2018-07-11 11:38:10 +01:00
Babil Golam Sarwar
02c76e0f00
Fix PowerShell auto-close when native-messenger installation fails 2018-07-11 17:08:44 +10:00
Babil Golam Sarwar
be245d5dfa
Add TLS 1.1/1.2 support to Invoke-WebRequest 2018-07-11 11:37:34 +10:00
Oliver Blanthorn
eb118c9fbd
Merge pull request #785 from glacambre/make_tabprev_synchronous
excmds.ts: Make tabprev synchronous
2018-07-10 18:45:40 +01: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
Oliver Blanthorn
64a494adb8
Fix #778: add warning to RC about requirement for beta 2018-07-09 15:29:13 +01:00
glacambre
c0c83fb320
completions.ts: Remove unused and buggy code
This commit removes an if statement that is always true and a caching
optimization that can go wrong.

The caching optimization is the `if (!this.fuse)` statement. This
optimization can be buggy because it relies on this.options not
changing between two calls to scoredOptions but as far as I can tell,
this.options always changes between two scoredOptions calls.

If this.options changes, the array indexes used in searchThis do not
point to the right elements anymore and everything can break
(completions that should be matched disappear, completions with a lower
score get higher priority etc).

As far as I can tell, removing this optimization does not make
completions slower, but I couldn't test this with a large history.
2018-07-07 20:10:42 +02:00
Oliver Blanthorn
e00900c128
Merge pull request #770 from glacambre/fix_focus_hijacking
dom.ts: Fix focus hijacking again
2018-07-07 12:41:36 +01:00
glacambre
729035ff2e
dom.ts: Fix focus hijacking again
The previous code called realFocus unconditionally. This fixed
https://github.com/cmcaine/tridactyl/issues/768 but broke
allowautofocus.

The new code makes sure to check the user's allowautofocus setting
before calling realFocus. I am not sure why it fixes #768 but I believe
it might be because bandcamp relies on synchronicity and that the
previous code used await.
2018-07-07 12:17:59 +02:00
Oliver Blanthorn
283166e464
Merge pull request #769 from glacambre/fix_focus_hijacking
dom.ts: Fix focus hijacking
2018-07-07 10:39:39 +01:00
glacambre
e9c636f5c6
dom.ts: Fix focus hijacking 2018-07-06 22:07:25 +02:00
WorldCodeCentral
34ac1240ca
Merge pull request #1 from WorldCodeCentral/WorldCodeCentral-patch-completion-openbackground
Update History.ts
2018-07-06 14:58:33 +02:00
WorldCodeCentral
f1bfc853e6
Update History.ts
Add condition for the -b open in background argument for completions
2018-07-06 14:55:15 +02:00
Oliver Blanthorn
581fda074e
Merge branch 'enhance_tabopen_container_completion' of https://github.com/glacambre/tridactyl into glacambre-enhance_tabopen_container_completion 2018-07-06 12:43:20 +01: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
034d561da8
History.ts: Make winopen completion ignore -private arg 2018-07-05 19:07:00 +02:00
Oliver Blanthorn
35c027b695
Merge pull request #763 from bodograumann/statuspanel
Make guiset hoverlink compatible with firefox 61
2018-07-05 17:02:30 +01:00
Bodo Graumann
f017f74973
Make guiset hoverlink compatible with firefox 61
In firefox 61 there has been a medium change to how the status panel
(that shows the link the user hovers over) is created. Compare firefox
changeset 18bbbdc02213:
https://hg.mozilla.org/releases/mozilla-release/rev/18bbbdc02213

In particular there is no more statuspanel tag. Instead there is an hbox
with id="statuspanel".
2018-07-05 17:51:46 +02:00
Oliver Blanthorn
409f27069e
Merge pull request #759 from glacambre/fix_sanitize_race_condition
Fix race condition in :sanitise
2018-07-05 09:26:19 +01: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
b6792a9ec3
History.ts: Make tabopen completion ignore -c arg 2018-07-05 06:04:05 +02:00
glacambre
b3e5aa6238
Fix shydactyl
As mentionned in https://github.com/cmcaine/tridactyl/issues/748,
https://github.com/cmcaine/tridactyl/pull/736 and
https://github.com/cmcaine/tridactyl/pull/728 broke shydactyl by
changing the number of cells in the completion buffer, which resulted in
the wrong cells being displayed and hidden.

This is fixed by using classes.
2018-07-04 08:14:38 +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
c0c0abbcab
Add binds for yankmd and yanktitle 2018-07-03 19:12:04 +01:00
Oliver Blanthorn
cf39a9a05d
Add quiet version of fixamo 2018-07-03 19:05:20 +01:00
Oliver Blanthorn
b4fbdaf2ad
Merge pull request #755 from antonva/fix-containercreate
Fix containercreate.
2018-07-03 15:58:54 +01:00
Anton Vilhelm Ásgeirsson
41f3cbc563 Fix containercreate by deleting the cookieStoreId property after calling fromString. 2018-07-03 14:43:11 +00:00