1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-20 20:01:38 +03:00
Commit Graph

2937 Commits

Author SHA1 Message Date
Wez Furlong
d047cfe1e9 docs: tweak aur table 2020-06-07 15:18:13 -07:00
Wez Furlong
8008f195c5 docs: add stable setup.exe link, tweak aur table 2020-06-07 14:52:40 -07:00
Wez Furlong
566449b419 docs: update to latest tag from today 2020-06-07 14:47:55 -07:00
Wez Furlong
74889cd47a ci: whoops(2): forgot to regeneate workflows
this should have been part of 9d6594869d
2020-06-07 14:46:57 -07:00
Wez Furlong
25eaa72861 docs: add brew and AUR
closes: https://github.com/wez/wezterm/issues/208
closes: https://github.com/wez/wezterm/issues/209
2020-06-07 14:45:45 -07:00
Wez Furlong
4d6aae26e4 docs: update for todays tagged release 2020-06-07 14:34:16 -07:00
Wez Furlong
9d6594869d ci: whoops, fixup path for homebrew tap update 2020-06-07 14:26:06 -07:00
Wez Furlong
a909047ee0 ci: include escape sequence stripper in macos homebrew tap 2020-06-07 13:05:23 -07:00
Wez Furlong
cb5aed126c ci: maybe automate updating homebrew tap
refs: https://github.com/wez/wezterm/issues/208
2020-06-07 12:48:41 -07:00
Wez Furlong
52aa395bea ci: apply black to generate-workflows.py 2020-06-07 12:20:56 -07:00
Wez Furlong
d755c270e4 ci: add automation to update the wezterm-bin AUR at tag time
This is untested beyond eyeballing the locally generated file.
Will need to make a couple of tags to test this for sure.

refs: https://github.com/wez/wezterm/issues/209
2020-06-07 12:19:41 -07:00
Wez Furlong
76a1300c15 wezterm: teach get-deps about Arch 2020-06-07 10:57:41 -07:00
Wez Furlong
5d5083501e wezterm: dont stack search/copy overlays on top of each other
I noticed that repeatedly triggering copy mode kept adding the
`Copy Mode` prefix to the title!
2020-06-06 17:11:56 -07:00
Wez Furlong
344543260e wezterm: allow connui size to be specified, make update ui taller
The release notes are generally slightly taller than the default
window size.
2020-06-06 16:54:02 -07:00
Wez Furlong
bec7e36a09 wezterm: updates: link directly to setup.exe on windows
and revise the installation page links to match the currently
running OS.
2020-06-06 16:47:02 -07:00
Wez Furlong
53ad753b28 wezterm: helper env for testing the update ui 2020-06-06 16:22:28 -07:00
Wez Furlong
5caafc45e0 wezterm: hide connui immediately on connection success 2020-06-06 14:32:34 -07:00
Wez Furlong
c6b27131e4 wezterm: avoid busy loop if connui is closed early
I noticed a busy period when closing the connui when it is performing
the sleep with progress bar stage; returning from the function when
the channel disconnects seems like the right call.

I also made the loop slightly more efficient by only repainting if
the line has changed.
2020-06-06 14:18:39 -07:00
Wez Furlong
bb5ee76296 docs: fix another typo 2020-06-06 12:01:02 -07:00
Wez Furlong
542fede5a5 window: update smithay-client-toolkit 2020-06-06 11:58:38 -07:00
Wez Furlong
afe72f3bc5 wezterm: fix occasional hang when initiating a mux connection
I don't really like this as a solution, however: I'd rather
spend time transitioning towards async IO for this instead of
troubleshooting further here.
2020-06-06 11:44:22 -07:00
Wez Furlong
9e493fa0ef docs: fix typo 2020-06-06 10:14:30 -07:00
Wez Furlong
35121a0761 cargo update 2020-06-06 10:08:02 -07:00
Wez Furlong
adb0ae6576 wezterm: remove workaround for ssh crate
All of the types in that crate are now Send so we don't have
to force that here.
2020-06-06 10:05:25 -07:00
Wez Furlong
bd57029427 wezterm: allow specifying the remote wezterm path for mux clients
both tls and ssh domains now have a `remote_wezterm_path` config
option.
2020-06-06 10:01:39 -07:00
Wez Furlong
2e7f082bd7 wezterm: improve error reporting around mux connection failures 2020-06-06 09:46:25 -07:00
Wez Furlong
d660f53f86 wezterm: render release notes as markdown in the update UI
This adds a markdown -> termwiz render helper for the update UI
to make the release notes look a bit more intelligible.
2020-06-06 06:33:54 -07:00
Wez Furlong
8204a1a6b6 termwiz: recognize wezterm as supporting iterm2 images 2020-06-05 23:08:17 -07:00
Wez Furlong
cb6944f5eb wezterm: add buffer to termwiztermtab
I noticed that the launch menu was a bit flickery when moving
the mouse around, and I think a buffer will help.
2020-06-05 18:03:19 -07:00
Wez Furlong
cadbb6fbb5 docs: add note about open wezterm here in explorer.exe 2020-06-05 08:56:07 -07:00
Wez Furlong
60d579b00f docs: fixup typo 2020-06-05 08:54:16 -07:00
Wez Furlong
62cd4665d2 wezterm: search mode: add PageUp + PageDown
These move one page at a time, which is useful when there are a lot
of matches in a given page.

refs: https://github.com/wez/wezterm/issues/91
2020-06-05 08:50:38 -07:00
Wez Furlong
47ca722456 docs: a couple of tweaks 2020-06-05 08:19:23 -07:00
Wez Furlong
0399ecb340 wezterm: add docs for copy mode 2020-06-05 08:07:46 -07:00
Wez Furlong
954a05919d pty: remove dead code 2020-06-05 07:33:23 -07:00
Wez Furlong
c5f270f48b wezterm: windows: automatically add WSL entries to the launcher menu
This feels like a better out of the box experience.
The list can be disabled through the config if desired.
2020-06-05 07:25:35 -07:00
Wez Furlong
03ba1a98f0 wezterm: scroll the viewport when dragging to select text
closes https://github.com/wez/wezterm/issues/8
2020-06-04 20:39:51 -07:00
Wez Furlong
927129a97f wezterm: add word movement in the copy mode overlay 2020-06-04 08:40:23 -07:00
Wez Furlong
1049e92ce6 wezterm: fixup open wezterm here for drive letters
Drives need a single extra trailing \ to work, whereas other paths
seem to need two!
2020-06-03 21:40:36 -07:00
Wez Furlong
970db64314 docs: fix typo 2020-06-03 08:48:37 -07:00
Wez Furlong
82261ff16d wezterm: enable scrollback in the error window
This commit doesn't do anything specific to scrollback though!
It moves the implementation of the TermWizTermTab away from
a directly manipulated Surface and over to using the term::Terminal,
making the renderer look more like the one used by the local tab
and domain implementation.

As a side effect of doing this, we get scrollback management
for free.

refs: https://github.com/wez/wezterm/issues/201
2020-06-03 08:45:03 -07:00
Wez Furlong
42e2775f36 wezterm: more fun with SS3 vs CSI and cursor key encoding
I noticed that we still weren't quite right.
I think the net change is really just that we must force
the use of the CSI representation when using CTRL/SHIFT
modifiers.

refs: https://github.com/wez/wezterm/issues/203
2020-06-01 18:59:18 -07:00
Wez Furlong
f6171056f0 github: tweak issue templates 2020-06-01 08:23:08 -07:00
Wez Furlong
3946fc6738 wezterm: config: only trigger error display for reloads
Otherwise, during early startup we'll trigger one before the frontend
is started and show a toast message, and then later on we'll also
show the wezterm error window, which feels a bit redundant.

This way we reserve the toasts for panics and will generally
use the wezterm window.
2020-06-01 08:11:56 -07:00
Wez Furlong
a91d30f2e7 wezterm: fixup tests for lua/serde change
refs: https://github.com/wez/wezterm/issues/201
2020-05-31 20:06:37 -07:00
Wez Furlong
d0095f6bba wezterm: improve config deserialization error messages
This is a bit fiddly because the serde library doesn't let us know
eg: which key in a map had an error, so we have to show the information
from the value and hope that there is enough context for the user.

This commit adds our own Debug impl for ValueWrapper as that one
provided by mlua isn't useful for tables; our impl will iterate
the pairs in the table and pretty print them.

The struct error message has been adjusted to include the lua
value that failed to deserialize in addition to the type name.
Because the config structs can get quite large, this commit adjusts
the ordering of the components in the error message; we now print
the outermost error first and leave the most specific portion at
the bottom.  This is so that the error window is more likely to
show the most useful information at the bottom.

I've added some similar improvements when processing enums.
It's not perfect but hopefully more useful when figuring out
a config problem.

This invalid config:

```lua
local wezterm = require 'wezterm';
return {
  keys = {
    {key="{", mods="SHIFT|ALT", action="Search"},
  }
}
```

yields:

```
While (re)loading configuration: Error converting lua value returned by script /tmp/issue-201.lua to Config struct: while processing a struct of type `Config` with value:
{
    "keys": [
        {
            "mods": "SHIFT|ALT",
            "key": "{",
            "action": "Search",
        },
    ],
}
while processing a struct of type `Key` with value:
{
    "mods": "SHIFT|ALT",
    "key": "{",
    "action": "Search",
}
while processing an enum of type `KeyAssignment` and value "Search"
which has allowed variants `ActivateCopyMode`, `ActivateTab`, `ActivateTabRelative`, `ClearScrollback`, `CloseCurrentTab`, `CompleteSelection`, `CompleteSelectionOrOpenLinkAtMouseCursor`, `Copy`, `DecreaseFontSize`, `DisableDefaultAssignment`, `ExtendSelectionToMouseCursor`, `Hide`, `HideApplication`, `IncreaseFontSize`, `MoveTab`, `MoveTabRelative`, `Nop`, `OpenLinkAtMouseCursor`, `Paste`, `PastePrimarySelection`, `QuitApplication`, `ReloadConfiguration`, `ResetFontSize`, `ScrollByPage`, `Search`, `SelectTextAtMouseCursor`, `SendString`, `Show`, `ShowLauncher`, `ShowTabNavigator`, `SpawnCommandInNewTab`, `SpawnCommandInNewWindow`, `SpawnTab`, `SpawnWindow`, `ToggleFullScreen`
Expected a variant with parameters but got a unit variant instead
```

refs: https://github.com/wez/wezterm/issues/201
2020-05-31 17:56:39 -07:00
Wez Furlong
ccf9fc141b wezterm: fixup DECKPAM/DECANM/DECCKM interaction
We were treating DECCKM as the sole thing to enable application
cursor reporting, but looking closely at the docs, that mode only
takes effect when both DECANM (Vt52 emulation mode) AND DECKPAM
(application keypad mode) are both active.

neovim enables DECCKM and DECKPAM but not DECANM.

refs: https://github.com/wez/wezterm/issues/203
2020-05-31 15:45:25 -07:00
Wez Furlong
7f450482a7 wezterm: clamp viewport to scrollbar range
fixes https://github.com/wez/wezterm/issues/202
2020-05-31 15:16:21 -07:00
Wez Furlong
29239c632b wezterm: add mouseless-copy overlay
This allows navigating the scrollback and selecting text using
only the keyboard.
2020-05-31 10:41:25 -07:00
Wez Furlong
1ec37da248 wezterm: move search overlay to overlay dir 2020-05-30 23:15:43 -07:00