1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-29 21:44:24 +03:00
Commit Graph

8102 Commits

Author SHA1 Message Date
nburlett
abf748095d Add links to Ubuntu24 nightly .deb images 2024-09-14 08:28:28 -07:00
Wez Furlong
641014fa89
docs: changelog for #6012 2024-09-14 08:27:14 -07:00
Sean
e5387997ba
Restrict bell events to the proper window. (#6012)
* Restrict bell events to the proper window.

As per the comment in mod.rs, bell events are sent to
all windows; not just the window containing the pane
which generated the event.

To prevent each bell ringing multiple times, the window
event handler must check if it has the pane, and ignore
the bell event if it doesn't.

This fixes bug #5985

Co-authored-by: Sean Estabrooks <sean.estabrooks@eztux.com>
2024-09-14 08:25:44 -07:00
C.D. MacEachern
2bb1e757c0 Update appearance.md docs to clarify TOML is used
Clarify that these files are in TOML format, and add a link to TOML.
2024-09-14 08:20:54 -07:00
Wez Furlong
51fddb3484
docs: changelog for #6063 2024-09-14 08:19:57 -07:00
Rian McGuire
024a8eebb5 Handle non-sRGB displays on macOS 2024-09-14 08:18:50 -07:00
mozumasu
3fc45caf1f fix: Correctly rearrange lines in the modified diffs 2024-09-14 07:39:33 -07:00
mozumasu
f1f87df044 fix: docs typos 2024-09-14 07:39:33 -07:00
Silas Bue Handgaard
b9c34ce7c7 fix: link to launcher menu
The link was pointing to the top of the page instead of the correct section.
2024-09-14 07:38:03 -07:00
Wez Furlong
dd53cee8d8
docs: changelog for #6084 2024-09-14 06:56:38 -07:00
Sean Estabrooks
030bc46e30 Avoid potential panic, when starting in Wayland.
As per the documentation for the OutputState info method:

/// This may be none if the output has been destroyed or the
/// compositor has not sent information about the output yet.

Unwrapping its return has lead to crashes at startup, which to
the user can appear as WezTerm refusing to start.
2024-09-14 06:55:27 -07:00
Wez Furlong
d7ede9fb04
cairo: fix unexpected cfg condition value
This crate references features that were not defined in Cargo.toml.
Add those features, even though we don't use them, so that we are
not warned to death and don't drown in the noise.
2024-09-14 06:53:27 -07:00
Wez Furlong
c0649ad4bb
remove cfg_attr(feature = "cargo-clippy" noise
I never liked clippy for dropping turds like this throughout the
code. I'm glad it is no longer required, but now rust is warning
about this syntax being redundant.
2024-09-14 06:49:13 -07:00
Wez Furlong
45ec2464e5
docs and related fix for #6099
We should avoid nudging the scrollback position when there is no
scrollback allowed in this other case as well.

refs: https://github.com/wez/wezterm/pull/6099
2024-09-14 06:42:10 -07:00
Till Bungert
f911e48a95 fix: only change stable row offset if screen has scrollback 2024-09-14 06:37:36 -07:00
Antoine Cotten
bcf77a711c shell-integration: be resilient to nounset 2024-09-14 06:33:59 -07:00
Yerke Tulibergenov
30345b36d8 fix typo in CONTRIBUTING.md 2024-08-12 21:57:03 -07:00
Wez Furlong
0ac1e948c5
docs: changelog for #5923 #5802 2024-08-11 11:29:22 -07:00
blukai
a0a415d1cb improve x11 startup times
related issue: wez#5802

requesting `GetScreenResourcesCurrent` instead of `GetScreenResources`
brings startup times down from 1.5 seconds to 30 microseconds on my
machine (measured with dumb printlns).

according to some findings `GetScreenResourcesCurrent` may return
nothing, so i kept `GetScreenResources` there as a fallback, just in
case, although I'm not 100% sure that it's necessary. see:
- c234700c83/src/plugins/platforms/xcb/qxcbscreen.cpp (L963)
- c234700c83/src/plugins/platforms/xcb/qxcbconnection_screens.cpp (L390)

also worth to note that i3 does not rely on
`xcb_randr_get_screen_resources`, but only on
`xcb_randr_get_screen_resources_current`, see:
- https://github.com/search?q=repo%3Ai3%2Fi3%20get_screen_resources&type=code
2024-08-11 11:28:35 -07:00
Wez Furlong
56a27e93a9
cargo update
plus some noise around the image crate api evolving and deprecating
some type aliases.
2024-07-30 08:27:27 -07:00
Wez Furlong
9f5c2adb29
docs: changelog for #5750 #5871 2024-07-30 07:45:10 -07:00
Thayne McCombs
03407cae99 fix: Use cols not rows for left margin bound
The location of the left margin should depend on the width, not the
height.

Fixes: #5750
2024-07-30 07:40:42 -07:00
Wez Furlong
7e8fdc118d
docs: changelog for #4924 2024-07-22 08:09:56 -07:00
Leszek Swirski
fef52df952
Add a CloseWithoutClear copy mode key assignment (#4924)
* Add a CloseWithoutClear copy mode key assignment

Closing the copy overlay currently unconditionally clears the viewport,
in particular resetting scroll. For the search overlay, we don't
necessarily want to scroll back to the prompt after finding a match --
indeed, the old search overlay (which didn't use copy mode) had this
behaviour.

Add a CloseWithoutClear key assignment which has this desired behaviour,
and make it the default for ESC in search mode.

* Change CloseWithoutClear into normal Close, and add ResetViewport

* Remove ResetViewport, add helper for keys
2024-07-22 08:06:54 -07:00
github-actions[bot]
574e0221fa flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8b5a3d5a1d951344d683b442c0739010b80039db?narHash=sha256-po3TZO9kcZwzvkyMJKb0WCzzDtiHWD34XeRaX1lWXp0%3D' (2024-07-12)
  → 'github:NixOS/nixpkgs/6e14bbce7bea6c4efd7adfa88a40dac750d80100?narHash=sha256-pFSxgSZqZ3h%2B5Du0KvEL1ccDZBwu4zvOil1zzrPNb3c%3D' (2024-07-20)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/92f0608ab66c9770e931056b1c7a1b6249dbc43a?narHash=sha256-WMwo/kZ3o2h5Bls4dEyQ3XFZ4nw2UbbOUFpq3aVlkms%3D' (2024-07-13)
  → 'github:oxalica/rust-overlay/b7996075da11a2d441cfbf4e77c2939ce51506fd?narHash=sha256-gYGX9/22tPNeF7dR6bWN5rsrpU4d06GnQNNgZ6ZiXz0%3D' (2024-07-20)
2024-07-21 07:34:31 -07:00
Thiago Kenji Okada
643d85f8c9 nix: add meta.mainProgram
To avoid the following warning while using `lib.getExe`:

```
warning: getExe: Package wezterm does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
```
2024-07-19 08:17:40 -07:00
Wez Furlong
c9116830c2
mux: augment PKI SAN list with getaddrinfo AI_CANONNAME
This should hopefully make things a bit easier to consume
for remote clients.

refs: https://github.com/wez/wezterm/issues/5543
2024-07-15 08:09:45 -07:00
Wez Furlong
ae9cdad228
ssh domains: use default local echo threshol
The implementation of this is a bit gnarly, because we have
an optional value with a default that *is* populated by the
dynamic config stuff, but that isn't part of the derive(Debug)
impl.

closes: https://github.com/wez/wezterm/issues/5547
2024-07-15 07:27:46 -07:00
Wez Furlong
fe17be2973
docs: fix some anchors 2024-07-15 07:00:13 -07:00
Wez Furlong
d249c4933d
sync color schemes 2024-07-15 06:39:26 -07:00
Wez Furlong
0fd76a77c5
docs: fixup absolute link warning for {{since(nightly)}}
We can now compute a relative link instead
2024-07-15 06:23:31 -07:00
Wez Furlong
d701a8fcea
docs: changelog for #5494 #5479 2024-07-15 06:15:30 -07:00
Naitik Shah
463df9ebed kill and reap ProxyCommand
The wrapper struct ensures ensures the child process spawned for
the ProxyCommand is cleaned up under all the various error scenarios
(such as auth failures etc), as well as in the normal successful use
case. This includes killing it if necessary, and then waiting for it.
2024-07-15 06:14:04 -07:00
Wez Furlong
57be095264
docs: changelog for #4657
closes: #4657
2024-07-15 06:12:57 -07:00
Wez Furlong
7e053d62cb
cargo update 2024-07-15 06:11:09 -07:00
Wez Furlong
04e443b5f1
docs: changelog
tweak sctk bit for #5781
2024-07-15 06:11:08 -07:00
Roy
f0416016dc
chore: Updating docs for macOS Homebrew
closes: https://github.com/wez/wezterm/pull/5815
closes: #5466
closes: #5805
closes: #5433
2024-07-15 06:10:26 -07:00
Wez Furlong
b20c61926e
switch all fuzzy matches to nucleo
Centralize the thread local state management into the selector module
to make it a bit more convenient to consume from the various other
locations.

closes: https://github.com/wez/wezterm/issues/5532
2024-07-14 11:03:54 -07:00
Wez Furlong
6b5edad360
charselect: switch to nucleo fuzzy matcher
This has more intuitive sorting; eg: `line` used to show the first match
as `linux_endeavour` but now matches `LINEAR B IDEOGRAM VESSEL B212`
first, which feels more relevant (has an exact prefix match).

refs: https://github.com/wez/wezterm/issues/5532
2024-07-14 10:41:26 -07:00
github-actions[bot]
30ecc426ca flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4284c2b73c8bce4b46a6adf23e16d9e2ec8da4bb?narHash=sha256-i4vJL12/AdyuQuviMMd1Hk2tsGt02hDNhA0Zj1m16N8%3D' (2024-07-05)
  → 'github:NixOS/nixpkgs/8b5a3d5a1d951344d683b442c0739010b80039db?narHash=sha256-po3TZO9kcZwzvkyMJKb0WCzzDtiHWD34XeRaX1lWXp0%3D' (2024-07-12)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/05ccbe21233d4e9110fc6428d2c3d74b430c3c69?narHash=sha256-eR5glZHS2bLpzUgTDhWGm04j%2Bj5KMYKoDsY5DXAiuKQ%3D' (2024-07-06)
  → 'github:oxalica/rust-overlay/92f0608ab66c9770e931056b1c7a1b6249dbc43a?narHash=sha256-WMwo/kZ3o2h5Bls4dEyQ3XFZ4nw2UbbOUFpq3aVlkms%3D' (2024-07-13)
2024-07-14 08:14:26 -07:00
Wez Furlong
824def9e2c
remove some unused fields 2024-07-14 07:59:25 -07:00
Wez Furlong
616eb2fc21
fix: PaneInformation.pixel_height returned width!
Thank you to Rust's unread field warning!
2024-07-14 07:52:05 -07:00
Wez Furlong
209d13bd6b
allow some unused fields
I want these for the future, and they are harmless now
2024-07-14 07:50:30 -07:00
Wez Furlong
5b0642d2dc
fix unused mut warning 2024-07-14 07:45:54 -07:00
Wez Furlong
f7a0a0f1a6
blob-lease: improve error handling
If someone removed the directory structure, or otherwise messed with
the files, there was a good chance that we'd end up in a panic.

This commit improves the error messaging produced by the blob
lease layer to provide the path as context, log the error,
and then translate the error case to an empty frame so that
the rest of the rendering machinery can proceed in a more reasonable
way.

We take care to log this sort of corrupt frame error only once,
as it is most likely to occur in an animated gif and will thus
trigger multiple times per second for such a file.

refs: #5422
2024-07-14 07:45:10 -07:00
Wez Furlong
ff4528e783
fix: blob leases could be broken by tmpwatch
Let's put them in an application-specific cache directory
location instead.

refs: #5422
2024-07-14 07:10:17 -07:00
Wez Furlong
4884f31762
fix potential panic on shutdown when mux_enable_ssh_agent=true
refs: https://github.com/wez/wezterm/issues/5518
2024-07-13 15:50:03 -07:00
Wez Furlong
4e8eb7c2ca
fix: quickselect now matches paths with //
closes: https://github.com/wez/wezterm/issues/5763
2024-07-13 14:25:01 -07:00
Przemek Pawlas
749ddc9ffe
Update quick_select_patterns.md to include info about capturing groups
closes: https://github.com/wez/wezterm/pull/5082
2024-07-13 12:00:26 -07:00
Wez Furlong
ad11815e87
deps: harfbuzz -> 9.0.0 2024-07-13 11:42:20 -07:00