Commit graph

1590 commits

Author SHA1 Message Date
Oliver Blanthorn
2c39676679
Mention web console in troubleshooting; simplify 2018-07-23 11:27:17 +01:00
Oliver Blanthorn
f36b012af4
Merge pull request #847 from glacambre/reset_selected_completion_option_on_options_change
completions: Make selected completion option undefined on change
2018-07-23 11:18:30 +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
Oliver Blanthorn
6a684f5780
Merge pull request #843 from glacambre/fix_history_arguments
History.ts: Add missing space when inserting completion options
2018-07-21 22:32:23 +01: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
181fca56bd
Fix #841: add installnative docs to readme 2018-07-21 17:55:44 +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
Oliver Blanthorn
12459b139b
Faff with issue template some more 2018-07-20 12:36:47 +01:00
Oliver Blanthorn
fc94b750dc
Fix problems introduced by pretty 2018-07-20 12:28:31 +01:00
Oliver Blanthorn
fe30bb62e0
Merge pull request #840 from glacambre/issue_template
Issue template
2018-07-20 12:28:03 +01:00
Oliver Blanthorn
3ca667386d
Add note about unset logging to troubleshooting 2018-07-20 12:24:40 +01:00
Oliver Blanthorn
aef71635ab
Reword and expand issue template 2018-07-20 12:24:15 +01:00
Oliver Blanthorn
1cbb4ff396
Fix #842: Warn that tridactylrc is only an example 2018-07-20 11:53:33 +01:00
glacambre
8d96c89907
Add issue_template.md
Related issue: https://github.com/cmcaine/tridactyl/issues/522
2018-07-20 08:41:41 +02:00
glacambre
058cc12c84
Add troubleshooting.md
This file contains steps about how to fix tridactyl yourself. Related
issue: https://github.com/cmcaine/tridactyl/issues/824.
2018-07-20 08:36:26 +02:00
Oliver Blanthorn
a7ddf7d30e
Merge pull request #839 from chrispickard/fix-ctrl-y-keybind
Ctrl-Y should scroll up
2018-07-19 23:22:53 +01:00
Chris Pickard
e476817663 Ctrl-Y should scroll up 2018-07-19 15:04:19 -04:00
Colin Caine
6ed83eacdb Add DocLoad aucmd 2018-07-18 14:36:35 +01:00
Oliver Blanthorn
2cce4f3571
Merge branch 'master' of github.com:cmcaine/tridactyl into native-stdin 2018-07-18 13:12:59 +01:00
Oliver Blanthorn
1d69d86c4d
Fall back to heredoc if native messenger out of date 2018-07-18 13:12:55 +01:00
Oliver Blanthorn
4e9b601ee1
Merge pull request #829 from glacambre/polish_newtab
Fix Tridacyl not working on about:blank newtab page.
2018-07-18 09:50:23 +01:00
Jeff King
60a1bfb6fc native_background: replace clipboard here-doc with stdin parameter
This is simpler, as we do not have to worry about:

  - randomly generating a unique here-doc tag to avoid
    colliding with the yanked content

  - newline munging as in 4a5dcd7557

  - whether "sed -z" is portable (it's not in POSIX, though
    I'd expect most modern implementations to have it)
2018-07-18 01:36:40 -04:00
Jeff King
1b2c406e7c native_background: add client side of stdin-passing
This is the client side that matches the stdin handling
added in the previous commit. Note that we _don't_ check a
nativegate here. It's the responsibility of a caller sending
a non-empty content parameter to do so.
2018-07-18 01:30:23 -04:00
Jeff King
fb0bfc0807 native: feed stdin of subprocess for "run"
There's currently no way to tell the native messenger to
provide a particular stdin to a "run" command. This leads to
awkward uses of here-docs, which in turn require hacks like
the one in 4a5dcd7557.

Instead, let's take the "content" field from the message
body and feed that to the command's stdin, which gives us a
more robust channel for passing arbitrary bytes.

Note that we have to switch to using subprocess.Popen's
communicate() method, which will make sure we don't deadlock
if the input or output exceeds a pipe buffer.

Note also that when no stdin is provided by the caller
(i.e., all current cases), we'll pass an empty string. This
actually fixes a minor bug. Because we didn't override the
command's stdin argument, it's hooked to the messenger's
stdin, which is the pipe coming from firefox. If the command
tries to read, it (and the messenger) will hang forever,
since firefox is waiting for the messenger to respond before
writing anything else.

I bumped the native messenger version. This is mostly
backwards compatible (existing callers just don't send any
stdin content at all). But a caller that wants to send stdin
should check to make sure we have at least 0.1.7.
2018-07-18 01:18:13 -04:00
Jeff King
a9fb9b65e9 native: use os.join instead of backslashes for debug path
This makes debugging work correctly on Linux.  Otherwise
you'll generally get EPERM as `/home/user\.tridactyl` is a
path in `/home`, which you likely don't have access to
write.
2018-07-18 01:03:12 -04:00
glacambre
2ced3ae54d
Fix Tridacyl not working on about:blank newtab page.
Apparently, Firefox can't give you key events for the window if <body>
is `display: none`. This is fixed by turning the page transparent
instead of not displaying it. Since the scrollbar is still visible when
the page is transparent, we also set the page's height to 0px.

All of these modifications are reversed when the page needs to be
displayed.
2018-07-18 06:20:33 +02:00
Oliver Blanthorn
950863b721
Fix #678: hack about:blank back 2018-07-17 19:05:31 +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
Oliver Blanthorn
0d0cbb3b4c
Add vimium style tabmove binds 2018-07-17 16:17:25 +01:00
Oliver Blanthorn
e4fc98bf26
Add GitHub pull request helper 2018-07-17 13:10:29 +01:00
Oliver Blanthorn
c28b5aee49
Merge pull request #818 from Susexe/patch-1
Tab pinning keybind
2018-07-16 14:46:46 +01:00
Susexe
56c1f1a159
Add <A-p> keybind to toggle tab pinning 2018-07-16 15:25:30 +02:00
Oliver Blanthorn
07da708223
Merge pull request #813 from antonva/feature-mute
Add `mute` excmd.
2018-07-16 11:04:33 +01:00
Anton Vilhelm Ásgeirsson
95e411ab7b Add <A-m> keybind to toggle mute on tabs. 2018-07-16 09:50:18 +00: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