Commit Graph
8633 Commits
Author SHA1 Message Date
Benoit de Chezelles d69264df66 docs: changelog for #7385 2026-07-31 08:32:16 +02:00
Calle Helmertz 9554bdd04d feat: smart case search (#7385)
Add "smart-case" into the cycling of already existing search modes.

Fixes #6018
2026-07-31 08:32:02 +02:00
Hagai Gold 46a166d6dc Update SshDomain.md (#7988)
identity file should be the private key
2026-07-29 11:52:29 +02:00
tianrkingandtianrking 76b606ec59 Guard shell integration against unset ZSH_NAME (#7942)
Co-authored-by: tianrking <tianrking@users.noreply.github.com>
2026-07-16 19:55:52 +02:00
Benoit de Chezelles 2ef4bef4ac wayland: Update blur surface on window resize (#7939)
ref: #7937
2026-07-16 10:25:32 +02:00
Dylan Ullrich 1578017a2c nix: fix flake headless package eval error (#7934)
- `cargoLock` is not available in `finalAttrs`, so the headless variant will
 fail to evaluate with "error: attribute 'cargoLock' missing."

- `buildRustPackage` lists `cargoLock` in `excludeDrvArgNames`, so
 `cargoLock` is stripped before `mkDerivation`:

https://github.com/NixOS/nixpkgs/blob/3b32825de172d0bc85664f495edb096b10862524/pkgs/build-support/rust/build-rust-package/default.nix#L34-L37

Solution:
Inherit `cargoDeps` instead, which is available through `finalAttrs`.
2026-07-15 23:50:14 +02:00
Wez Furlong 3658b656ad screen_line.rs: fix warning
I know, this is a bit crappy.  This variable is intended to help
with logical/physical mapping for RTL text.  It is calculated
but not used.

Ideally we'd just delete this code, but this particular bit
of logic is thorny enough that I want to preserve it for
when someone does sit down to finish this bit.
2026-07-15 17:41:04 +01:00
Wez Furlong 31c758f1cd tabbar: animate an indeterminate progress spinner
Draws a braille spinner in the tab title when a pane reports
Indeterminate progress, advancing one frame every 100ms.

This only shows when no format-tab-title event is used, and
leverages some of the infra we have for git animation scheduling.
2026-07-15 17:28:30 +01:00
Wez Furlong d96ba57121 docs: fix pages ci workflow
the ../CONTRIBUTING.md link wasn't valid because it escaped
the doc root.

Perhaps we should consolidate CONTRIBUTING.md with docs/contributing.md?
2026-07-14 22:06:16 +01:00
Benoit de Chezelles d13ed704b2 fix: remove useless unsafe blocks around safe functions
As reported by `rustc` during compilation
2026-07-14 11:23:41 +02:00
Benoit de Chezelles e28fe2f41b doc: Add few comments around pane mux loop 2026-07-14 11:14:16 +02:00
Benoit de Chezelles b32556667f docs: changelog for #7444 & #7928 2026-07-13 21:24:14 +02:00
Benoit de Chezelles 489972d8c8 nix: Add NixOS-based VMs for live testing in clean desktop env (#7928)
- Separate perSystemOutputs & globalOutputs in flake.nix
  (lots of indent changes!)
- Add NixOS VM configs for Gnome & Plasma testing
- Add section in contrib docs
2026-07-13 21:15:04 +02:00
Jafar Uruç d9dc7f5130 Fix render loop freeze when closing workspaces (#7444)
During workspace switches, the mux subscription callback would cancel itself when receiving WindowRemoved notifications for a stale mux_window_id.
This caused the render loop to stop receiving PaneOutput events, freezing
the display until next user input.

So we keep the subscription alive during transient "window not found"
conditions instead of cancelling it, and only mark it as dead when the Window
is Drop'ed.
2026-07-13 20:45:54 +02:00
1Capito1andBenoit de Chezelles 6f3d3d84f2 wayland: Support blur via ext-background-effect-v1 protocol (#7615)
* Add ext-background-effect-v1 support for wayland
* Deprecate `kde_window_background_blur`; use `wayland_window_background_blur`
* Update changelog (replace old kde… option entry with wayland…)

---------

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-07-13 18:57:32 +02:00
HuaGu-Dragon fff02ca501 perf: Simplify string case conversions to ASCII only (#7890) 2026-07-07 09:37:16 +02:00
Benoit de Chezelles c645d79a67 fix formatting 👀 2026-07-07 09:30:22 +02:00
Benoit de Chezelles 38ee9f5df1 misc: fix var name 2026-07-07 09:16:51 +02:00
Wez Furlong 5cc2d1ef0b deps: bump libssh-rs to v0.3.8
This picks up a couple of important fixes:

https://github.com/wez/libssh-rs/commit/5584ba1d9873df48c8fddafdfc20743656c7fdff
which includes a libssh fix to compensate for a somewhat nutty
symlink(2) syscall parameter order flip that was present in older
versions of openssh, but fixed in more recent versions, such as the
one now shipped in macos 26.

and https://github.com/wez/libssh-rs/commit/9f9e7149602eb93880a39c0c630a40ff61cf06b2
which may or may not be a side effect of the above bump, but we
couldn't tell because the windows ci over there stopped
running a while back.
2026-07-05 07:54:40 +01:00
Cédric Schieli 59d94d19f5 fix(deps): enable chrono clock, allows single crates build (#7894)
Building individual crates like `cargo build -p mux` failed with:

    error[E0599]: no associated function or constant named `now`
                  found for struct `Utc`

The workspace declares chrono with `default-features=false` and only
`["unstable-locales", "serde"]`.
Starting with chrono 0.4.43 (we now resolve 0.4.44, up from 0.4.42),
`Utc::now()` and `Local::now()` were moved behind a new `now` cargo feature
(`#[cfg(feature = "now")]`), which is pulled in by the `clock` feature.
Since neither was enabled, those constructors no longer exist.

A full `cargo build` kept working only by accident: Cargo unifies the
features of a shared dependency across the whole build graph, and other
crates in the tree (`spa`, pulled by `time-funcs`, and `serde_with`'s
`std` feature) request chrono with `clock` feature
(which transitively enabled `now` for every crate).

Assisted-by: Claude Opus 4.8 (1M context)
2026-07-03 14:23:20 +02:00
Benoit de Chezelles 858a9c98a9 refactor(wayland): restructure drag-and-drop session handling
Introduce a session-based approach for drag-and-drop, replacing the
previous state management with a clearer DragAndDropSession type.
This improves readability and makes the lifecycle of a drag operation
more explicit.

- Replace DragAndDrop with Option<DragAndDropSession> in pointer state.
- Rename SurfaceAndOffer and SurfaceAndPipe to reflect their roles.
- Minor: adjust visibility and add doc comments for public types.
2026-07-03 00:34:36 +02:00
Benoit de Chezelles 5f0694571c wayland: Skip data device event to non-toplevel surfaces
refs: #7880
2026-07-03 00:34:36 +02:00
Eric Shen 09d05700ae nix: Fix binary/resources locations for built macos app (#7892)
* fix binary locations in macos app
* move shell-integration to Resources
2026-07-02 10:23:13 +02:00
Joe Xue e46fe38c5a fix: tmux -CC unicode input (#7154)
refs: #7144
2026-06-27 11:08:29 +02:00
tooknox 09e52dd85c docs: add installation steps for Gentoo Linux (#7876) 2026-06-23 21:23:01 +02:00
crimist 6ff5492866 wayland: fix protocol error when buffer size isn't a multiple of buffer_scale (#7746)
ref: #7333
2026-06-22 12:01:02 +02:00
Benoit de Chezelles 9edc0c09fc refactor(wayland): share one CopyPasteOffer across all windows (#7869)
Previously each window held its own CopyAndPaste (one per surface),
causing the data_device selection handler to broadcast the incoming
offer to every window on each clipboard change.

Since the compositor sends one selection event per client (not per
surface), a single shared CopyPasteOffer on WaylandState is sufficient.
The broadcast loop is replaced by a single confirm_selection() call.

Also add doc comments on all clipboard-related fields in WaylandState.

Assisted-by: Claude Sonnet 4.6; iterated, reviewed & tested manually

ref: #6685
2026-06-21 22:47:48 +02:00
zakradandBenoit de Chezelles d6e1859782 fix(term): avoid divide-by-zero crashes in inline image placement (#7872)
assign_image_to_cells contained two unguarded divisions that could panic
with 'attempt to divide by zero' and take down the pane (and, under the mux,
the pane's reader thread):

1. A Kitty graphics escape requesting a zero-sized placement (eg: an explicit
   w=0/h=0, or a source origin outside the image bounds) yields a
   draw_width/draw_height of 0, used as a divisor when sizing the image.
   This is the case reported in #6344.

2. Displaying a cell-sized image (one without explicit c=/r=) on a pane whose
   pty reported no pixel dimensions makes cell_pixel_width/height 0, which is
   then used as a divisor. A zero pixel size is the default PtySize and is what
   tmux/headless domains report, so a perfectly valid image crashes there.

Guard both: refuse the placement when the drawable region or the cell pixel
size is zero.
The error flows into the existing logging handlers for the Kitty, iTerm and
Sixel paths, so no callers change.
Real GUI panes always have a non-zero pixel size, so valid images are
unaffected.

Adds regression tests for both cases (each panics on main, passes with the
fix) and enables kitty graphics in the test terminal config (off by default)
so the path is exercised.

Closes #6344

---------

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-21 22:45:33 +02:00
Benoit de Chezelles c4b1d89fd3 docs: changelog for #7787 2026-06-20 00:45:09 +02:00
Mikhail f. Shiryaev aea9b9f2e2 Fix ESC key encoding in kitty mode with disambiguate flag (#7787) 2026-06-20 00:38:14 +02:00
Benoit de Chezelles cd4b4fd27c nix: Fix nix-continuous gha workflow 2026-06-19 10:08:49 +02:00
Benoit de Chezelles 65c1c1f17e docs: Update changelog for recent merges 2026-06-17 23:11:51 +02:00
Benoit de Chezelles 988133f533 docs: Improve 'see also' links between QuickSelect & QuickSelectArgs 2026-06-17 23:11:22 +02:00
Mikhail f. ShiryaevandBenoit de Chezelles ba54898cf2 quickselect: Improve UX by filtering non-matching labels (#7752)
* Improve UX for quick selection: hide non-matching labels
* Simplify & remove redundant tests, use pre-existing `recompute_results`

---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-17 22:38:32 +02:00
Benoit de Chezelles 95ffc53235 nix: Revert use of inputs.self.submodules — breaks github: inputs (#7867)
refs:
- https://github.com/wezterm/wezterm/pull/7854#issuecomment-4718011398 (previous attempt)
- https://github.com/NixOS/nix/issues/13571
- https://github.com/NixOS/nix/issues/14982
2026-06-16 16:05:35 +02:00
Benoit de Chezelles b1cc82bb51 fix: prevent infinite loop when pane search regex fails (#7864)
`fancy_regex` returns Err (e.g. backtracking limit exceeded)
without advancing the iterator position, causing `captures_iter`
to loop forever on the same offset. 😬
👉 Break out and warn instead.

fixes: #7773
2026-06-16 09:42:32 +02:00
Benoit de Chezelles 1ec372f179 docs: Fix link to Matrix room to be client agnostic 2026-06-16 09:28:50 +02:00
Benoit de ChezellesandXeroOl 40daec8934 fix: Save wayland selection offer to every surface (#7863)
In Wayland, when something is copied to the clipboard, an "offer"
is given to every "device". WezTerm holds these offers in a
'CopyAndPaste' struct, and reads from the offer when the user presses
paste. WezTerm has one 'CopyAndPaste' for each window.

When WezTerm receives a data offer, it previously only saved it to
one 'CopyAndPaste' based on the active surface id.
With this change, it writes it to every CopyAndPaste.

Fixes #6685
Replaces #7034

---------

Co-authored-by: XeroOl <xerool@protonmail.com>
2026-06-16 00:20:39 +02:00
Benoit de Chezelles 956d905835 nix: Simplify flake.nix; update Nix-related workflows (#7854)
- ci/cd: Update nix-related workflows

- nix: Simplify flake.nix

  With recent enough Nix we can now remove the explicit submodules
  dependencies and let Nix do the heavy lifting.
  Improve Nix code to match modern Nix standards (finalAttrs).

- Includes #4986 with comments, for nicer package version
- Lock actions to a major branch, at least
- Various tweaks and readability improvements
- Only push built result to Cachix if workflow triggered
  by schedule or manual workflow_dispatch event
2026-06-15 20:47:52 +02:00
Leo Heitmann Ruiz 69d1fb3ef0 docs: Update Flathub badge (#7831)
ref: https://flathub.org/en/badges
2026-06-14 19:16:20 +02:00
Tautik Agrahari 891bed31b7 docs: fix linuxbrew install command (#7768) 2026-06-10 15:08:05 +02:00
Xuntao Chi 8afe0ad307 pty: windows: fix kill() (#7709)
Fix inverted logic when considering the return value from the TerminateProcess call.
2026-06-07 08:24:27 +01:00
Anton Novoselov 29d01fc8e5 fix: prevent stack overflow from process tree cycles in build_proc (#7706)
The `build_proc` function in procinfo recursively walks the process
tree to build child process information. If a cycle exists in the
parent PID chain (which can happen on Windows in particular due to PID
reuse or race conditions during process snapshot enumeration),
the recursion never terminates and overflows the stack.

Add a `visited` HashSet to track already-visited PIDs and skip them,
preventing infinite recursion. Applied to all three platforms (Windows,
Linux, macOS)

Fixes #7705
Related: #6671
2026-06-07 08:22:04 +01:00
KOGA Mitsuhiro 900bab10d6 Fix RefCell borrow conflict when toggling IME on Windows (#7529)
* Fix RefCell borrow conflict when toggling IME on Windows

When IME is active, the `key` function was holding a borrow on the
window's inner RefCell while calling `TranslateMessage`. This Windows
API can trigger other window messages (like WM_SIZE) via
`CtfImeCreateInputContext`, which then attempt to borrow the same
RefCell, causing a panic with "RefCell already borrowed".

Similarly, `ime_set_context` was holding a borrow while calling
`DefWindowProcW`, which can also trigger recursive window messages.

Fix by dropping the borrow prior to triggering potentially recursive calls.

Fixes the crash that occurred when toggling IME (e.g., pressing
Hankaku/Zenkaku key) after splitting a pane on Windows.
2026-06-07 08:17:27 +01:00
093bf6bf2b nix: Update flake.lock (#7463)
* flake.lock: Update

  Flake lock file updates:

  • Updated input 'nixpkgs':
      'github:NixOS/nixpkgs/23258e0' (2025-11-30)
    → 'github:NixOS/nixpkgs/f3ce60d537 (2026-06-06)
  • Updated input 'rust-overlay':
      'github:oxalica/rust-overlay/3bfa664' (2025-11-30)
    → 'github:oxalica/rust-overlay/27b7e78c6 (2026-06-06)

* fix(flake): remove deprecated xorg.* package aliases

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alex Wicks <alex@awicks.io>
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-07 01:32:57 +02:00
Benoit de Chezelles 05c5c9cc15 docs: changelog for #7137 & #7710 2026-06-06 15:53:43 +02:00
Wez Furlong 8a8cf6a75f docs: update for build/distro changes 2026-06-06 11:47:17 +01:00
Wez Furlong 3054d107fd ci: deploy: match cygwin -> windows as well 2026-06-06 11:46:14 +01:00
Wez Furlong 62fcc23bf8 ci: bump windows, add debug
The OSTYPE isn't matching in the deploy script any longer, which
suggests that "something changed" in the image.  Let's explicitly
point to a newer image: that was previously blocked because the
installer tools were not present.  The associated issue has been
closed, so since we're broken right now anyway, let's move this
up and troubleshoot on the newer image.
2026-06-06 10:32:38 +01:00
Wez Furlong 95d7b634e0 ci: make dependabot match 2-week cooldown settings for rust 2026-06-06 08:52:10 +01:00