Commit Graph
8663 Commits
Author SHA1 Message Date
Benoit de Chezelles 2582d8b04a macos: Unify BOOL conversion behind from_yes_no/to_yes_no helpers
Introduce two small conversion fns to easily convert to/from objc' BOOL
type.

Update all places that benefits from this conversion to/from Rust-bool
to more easily compare & manipulate boolean values in logic/conditions.
2026-08-18 23:33:06 +02:00
xtqqczze 1300cfb9b2 filedescriptor: Replace winapi with windows-sys (#8026) 2026-08-18 21:38:28 +02:00
wezterm-bot[bot] e70244973c deps: update Cargo.lock via cooldown (#8040)
Co-authored-by: wezterm-bot[bot] <312868691+wezterm-bot[bot]@users.noreply.github.com>
2026-08-17 23:21:08 +02:00
yoonhc 9c04f79f86 docs: mention Fcitx5 X11 inline preedit setup (#8055) 2026-08-15 14:38:15 +02:00
Wez Furlong fe3006aefc term: reset more state on RIS full reset
When a program turns on modifyOtherKeys and exits uncleanly, it can
leave ctrl keys emitting escape sequences the shell doesn't understand.
The obvious recovery is the "Reset the terminal emulation state in the
current pane" command in the command palette, which sends RIS.  However,
RIS wasn't clearing modifyOtherKeys, so it didn't help. This commit
fixes RIS to reset that state, and a sweep for the same kind of
omission turned up missing resets for left/right margin mode and bidi
overrides, which it now resets too. This brings RIS in line with the
state a soft reset (DECSTR) already clears.
2026-08-12 07:01:21 +01:00
Benoit de Chezelles e723cf5005 docs: fix typo 👀 2026-08-10 04:35:11 +02:00
Benoit de Chezelles ad5abbaf21 docs(internal): Add README for wezterm-dynamic 2026-08-10 02:37:04 +02:00
Benoit de Chezelles 4b1c3c151e termwiz: Add Action::ClearLine for LineEditor (#8014) 2026-08-05 10:40:32 +02:00
xtqqczze 21ad43049b filedescriptor: Add into_stdio conversion (#7789) 2026-08-05 10:12:36 +02:00
Benoit de Chezelles 26270fd8d4 termwiz(lineedit): Add Ctrl-u for Kill to StartOfLine
Similar Clrt-k was already implemented, so adding Ctrl-u feels like a
logical addition.
2026-08-05 06:34:07 +01:00
Benoit de Chezelles 6d97010c40 fix rust fmt 2026-08-05 04:28:06 +02:00
Benoit de Chezelles 63061d7797 overlay(debug,prompt): Rewrite resolve_action to be more extensible 2026-08-05 03:59:22 +02:00
John Xu 1af8f19b56 termwiz-pane: handle IME committed text in prompt overlays (#7556) 2026-08-05 02:38:07 +02:00
Jesse Portnoy b16aa977e3 docs: fix typos (#8008) 2026-08-04 16:07:57 +02:00
Benoit de Chezelles 41e56c899d nix: make flatpak tooling available in dev shell for linux only 2026-08-04 15:32:39 +02:00
Benoit de Chezelles 2bd22e73f7 tmuxcc: fix typo in command for send-keys, use LF instead of CR at eol
refs: #8001
2026-08-04 14:03:24 +02:00
Wez Furlong a48710522b ci: revert to simpler approach, which also enables signing 2026-08-04 12:06:17 +01:00
wezterm-bot[bot] 9cd957c74b deps: update Cargo.lock via cooldown 2026-08-04 11:55:44 +01:00
Wez Furlong d1b7c0c90a ci: try to have cooldown use verified commits 2026-08-04 08:53:33 +01:00
Wez Furlong 2326b21dc8 ci: have the cooldown commits show as authored by the bot identity 2026-08-04 08:44:55 +01:00
Wez Furlong 51f32073e1 ci: add automation for doing cooldown based dep updates 2026-08-04 08:32:01 +01:00
Benoit de Chezelles 4af230bc01 deps: bump serde_with to 3.x to fix GHSA-7gcf-g7xr-8hxj security issue
Cargo cooldown change report:
```
    Removing base64 v0.13.1
     Keeping base64 0.22.1
      Adding bs58 v0.5.1
    Updating darling v0.20.11 -> v0.23.0 (latest: v0.20.11)
    Updating darling_core v0.20.11 -> v0.23.0 (latest: v0.20.11)
    Updating darling_macro v0.20.11 -> v0.23.0 (latest: v0.20.11)
      Adding dyn-clone v1.0.20
      Adding ref-cast v1.0.26
      Adding ref-cast-impl v1.0.26
      Adding schemars v0.9.0
      Adding schemars v1.2.2
    Updating serde_with v2.3.3 -> v3.21.0 (latest: v2.3.3)
    Updating serde_with_macros v2.3.3 -> v3.21.0 (latest: v2.3.3)
```
2026-08-04 08:35:27 +02:00
Benoit de Chezelles ec1bf1fbbf deps: bump all deps using cargo-cooldown
Change report:
```
    Updating anyhow v1.0.102 -> v1.0.104
    Updating arrayvec v0.7.6 -> v0.7.8
    Updating async-trait v0.1.89 -> v0.1.91
    Removing base64 v0.21.7
     Keeping base64 0.13.1
     Keeping base64 0.22.1
    Updating benchmarking v0.4.13 -> v0.4.15
    Removing bitflags v2.11.1
      Adding bitflags v2.13.1
     Keeping bitflags 1.3.2
    Updating bstr v1.12.1 -> v1.13.0
    Updating bytemuck v1.25.0 -> v1.25.2
    Updating bytemuck_derive v1.10.2 -> v1.11.0
    Updating bytes v1.11.1 -> v1.12.1
    Updating camino v1.2.2 -> v1.2.4 (latest: v1.2.5)
    Updating cc v1.2.63 -> v1.3.0 (latest: v1.4.0)
    Updating cfg_aliases v0.2.1 -> v0.2.2
    Updating chacha20 v0.10.0 -> v0.10.1
    Updating chrono v0.4.44 -> v0.4.45
    Updating clap v4.6.1 -> v4.6.2 (latest: v4.6.5)
    Updating clap_builder v4.6.0 -> v4.6.2 (latest: v4.6.5)
    Updating clap_complete v4.6.5 -> v4.6.7 (latest: v4.6.8)
     Keeping clap_derive 4.6.1 (latest: v4.6.4)
    Updating crossbeam-channel v0.5.15 -> v0.5.16
    Updating crossbeam-deque v0.8.6 -> v0.8.7
    Updating crossbeam-epoch v0.9.18 -> v0.9.20
    Updating crossbeam-queue v0.3.12 -> v0.3.13
    Updating crossbeam-utils v0.8.21 -> v0.8.22
      Adding defmt v1.1.1
      Adding defmt-macros v1.1.1
      Adding defmt-parser v1.0.0
     Keeping displaydoc 0.2.6 (latest: v0.2.7)
     Keeping either 1.16.0 (latest: v1.17.0)
    Updating env_filter v1.0.1 -> v2.0.0
    Removing env_logger v0.11.10
      Adding env_logger v0.11.11
     Keeping env_logger 0.10.2
     Keeping event-listener 5.4.1 (latest: v5.4.2)
    Updating exr v1.74.0 -> v1.74.2
    Updating fastrand v2.4.1 -> v2.5.0
     Keeping foreign-types-macros 0.2.3 (latest: v0.2.4)
    Updating futures v0.3.32 -> v0.3.33
    Updating futures-channel v0.3.32 -> v0.3.33
    Updating futures-core v0.3.32 -> v0.3.33
    Updating futures-executor v0.3.32 -> v0.3.33
    Updating futures-io v0.3.32 -> v0.3.33
    Updating futures-macro v0.3.32 -> v0.3.33
    Updating futures-sink v0.3.32 -> v0.3.33
    Updating futures-task v0.3.32 -> v0.3.33
    Updating futures-util v0.3.32 -> v0.3.33
    Removing getrandom v0.4.2
      Adding getrandom v0.4.3
     Keeping getrandom 0.2.17
     Keeping getrandom 0.3.4
     Keeping glob 0.3.3 (latest: v0.3.4)
    Updating globset v0.4.18 -> v0.4.19
    Updating gpu-alloc v0.6.0 -> v0.6.2
    Updating gpu-alloc-types v0.3.0 -> v0.3.1
    Updating h2 v0.4.14 -> v0.4.15
    Updating hdrhistogram v7.5.4 -> v7.6.0
    Updating http v1.4.1 -> v1.4.2 (latest: v1.5.0)
    Updating http-body v1.0.1 -> v1.1.0
    Updating http-body-util v0.1.3 -> v0.1.4
    Updating humantime v2.3.0 -> v2.4.0
     Keeping hyper 1.10.1 (latest: v1.11.0)
    Removing id-arena v2.3.0
    Updating ignore v0.4.25 -> v0.4.30 (latest: v0.4.31)
    Updating imgref v1.12.1 -> v1.12.2
    Updating inotify-sys v0.1.5 -> v0.1.8
     Keeping ipnet 2.12.0 (latest: v2.12.1)
    Updating jiff v0.2.28 -> v0.2.34 (latest: v0.2.35)
      Adding jiff-core v0.1.0
    Updating jiff-static v0.2.28 -> v0.2.34 (latest: v0.2.35)
    Updating jobserver v0.1.34 -> v0.1.35
    Updating js-sys v0.3.99 -> v0.3.103
    Updating kqueue v1.1.1 -> v1.2.0
    Updating leb128 v0.2.6 -> v0.2.7
    Removing leb128fmt v0.1.0
     Keeping libc 0.2.186 (latest: v0.2.189)
     Keeping libflate 2.3.0 (latest: v2.3.1)
    Updating libfuzzer-sys v0.4.12 -> v0.4.13
     Keeping libgit2-sys 0.18.5+1.9.4 (latest: v0.18.7+1.9.6)
    Updating libredox v0.1.17 -> v0.1.18 (latest: v0.1.19)
    Updating libssh2-sys v0.3.1 -> v0.3.2
    Updating libz-sys v1.1.28 -> v1.1.29
    Updating log v0.4.30 -> v0.4.33
    Updating memchr v2.8.1 -> v2.8.3
    Removing memmap2 v0.9.10
      Adding memmap2 v0.9.11
     Keeping memmap2 0.8.0
    Removing mio v1.2.1
      Adding mio v1.2.2
     Keeping mio 0.8.11
    Updating num-bigint v0.4.6 -> v0.4.8
    Updating num-iter v0.1.45 -> v0.1.46
    Updating openssl v0.10.80 -> v0.10.81
    Updating openssl-src v300.6.0+3.6.2 -> v300.6.1+3.6.3
    Updating openssl-sys v0.9.116 -> v0.9.117
    Updating pest v2.8.6 -> v2.8.7 (latest: v2.8.8)
    Updating pest_derive v2.8.6 -> v2.8.7 (latest: v2.8.8)
    Updating pest_generator v2.8.6 -> v2.8.7 (latest: v2.8.8)
    Updating pest_meta v2.8.6 -> v2.8.7 (latest: v2.8.8)
    Updating portable-atomic v1.13.1 -> v1.14.0
    Removing prettyplease v0.2.37
    Updating proc-macro2 v1.0.106 -> v1.0.107
      Adding pulp v0.22.3
      Adding pulp-wasm-simd-flag v0.1.1
    Updating pxfm v0.1.29 -> v0.1.30
    Updating quote v1.0.45 -> v1.0.47
    Removing rand v0.8.6
    Removing rand v0.9.4
    Removing rand v0.10.1
      Adding rand v0.8.7
      Adding rand v0.9.5
      Adding rand v0.10.2
      Adding raw-cpuid v11.6.0
      Adding reborrow v0.5.5
    Removing redox_syscall v0.8.0
      Adding redox_syscall v0.9.0
     Keeping redox_syscall 0.5.18
    Updating regex v1.12.3 -> v1.13.1
    Updating regex-automata v0.4.14 -> v0.4.16
    Updating regex-syntax v0.8.10 -> v0.8.11
    Updating rustc-demangle v0.1.27 -> v0.1.28
    Removing rustc-hash v2.1.2
      Adding rustc-hash v2.1.3
     Keeping rustc-hash 1.1.0
    Updating rustls v0.23.40 -> v0.23.42 (latest: v0.23.43)
    Updating rustls-pki-types v1.14.1 -> v1.15.0 (latest: v1.15.1)
    Updating rustversion v1.0.22 -> v1.0.23
    Updating serde v1.0.228 -> v1.0.229
    Updating serde_core v1.0.228 -> v1.0.229
    Updating serde_derive v1.0.228 -> v1.0.229
     Keeping serde_json 1.0.150 (latest: v1.0.151)
    Updating serde_repr v0.1.20 -> v0.1.21
     Keeping serial2 0.2.37 (latest: v0.2.38)
    Updating sha1 v0.10.6 -> v0.10.7
    Updating simd-adler32 v0.3.9 -> v0.3.10
    Updating smallvec v1.15.1 -> v1.15.2
    Updating smawk v0.3.2 -> v0.3.3
    Removing socket2 v0.6.4
      Adding socket2 v0.6.5
     Keeping socket2 0.5.10
    Updating spin v0.9.8 -> v0.9.9
    Updating ssh2 v0.9.5 -> v0.9.6
    Removing syn v2.0.117
      Adding syn v2.0.119
      Adding syn v3.0.1
     Keeping syn 1.0.109
    Removing thiserror v2.0.18
      Adding thiserror v2.0.19
     Keeping thiserror 1.0.69
    Removing thiserror-impl v2.0.18
      Adding thiserror-impl v2.0.19
     Keeping thiserror-impl 1.0.69
    Updating time v0.3.47 -> v0.3.53 (latest: v0.3.55)
    Updating time-core v0.1.8 -> v0.1.9
    Updating time-macros v0.2.27 -> v0.2.31 (latest: v0.2.32)
    Updating tinyvec v1.11.0 -> v1.12.0
    Updating tokio v1.52.3 -> v1.53.0 (latest: v1.53.1)
    Updating tokio-macros v2.7.0 -> v2.7.1 (latest: v2.7.2)
     Keeping tokio-util 0.7.18 (latest: v0.7.19)
    Removing toml_edit v0.25.12+spec-1.1.0
      Adding toml_edit v0.25.13+spec-1.1.0
     Keeping toml_edit 0.22.27
     Keeping toml_parser 1.1.2+spec-1.1.0 (latest: v1.1.3+spec-1.1.0)
    Updating unicode-segmentation v1.13.2 -> v1.13.3
    Removing unicode-xid v0.2.6
    Updating uuid v1.23.2 -> v1.24.0
    Updating wasip2 v1.0.3+wasi-0.2.9 -> v1.0.4+wasi-0.2.12
    Removing wasip3 v0.4.0+wasi-0.3.0-rc-2026-01-06
    Updating wasm-bindgen v0.2.122 -> v0.2.126
    Updating wasm-bindgen-futures v0.4.72 -> v0.4.76
    Updating wasm-bindgen-macro v0.2.122 -> v0.2.126
    Updating wasm-bindgen-macro-support v0.2.122 -> v0.2.126
    Updating wasm-bindgen-shared v0.2.122 -> v0.2.126
    Removing wasm-encoder v0.244.0
    Removing wasm-metadata v0.244.0
    Removing wasmparser v0.244.0
     Keeping wayland-backend 0.3.15 (latest: v0.3.16)
     Keeping wayland-client 0.31.14 (latest: v0.31.15)
    Updating wayland-protocols v0.32.12 -> v0.32.13
     Keeping wayland-scanner 0.31.10 (latest: v0.31.11)
    Updating web-sys v0.3.99 -> v0.3.103
    Removing winnow v1.0.3
      Adding winnow v1.0.4
     Keeping winnow 0.7.15
    Removing wit-bindgen v0.51.0
     Keeping wit-bindgen 0.57.1
    Removing wit-bindgen-core v0.51.0
    Removing wit-bindgen-rust v0.51.0
    Removing wit-bindgen-rust-macro v0.51.0
    Removing wit-component v0.244.0
    Removing wit-parser v0.244.0
     Keeping xcursor 0.3.10 (latest: v0.3.11)
    Updating yoke v0.8.2 -> v0.8.3
    Updating zerocopy v0.8.50 -> v0.8.54 (latest: v0.8.55)
    Updating zerocopy-derive v0.8.50 -> v0.8.54 (latest: v0.8.55)
    Updating zeroize v1.8.2 -> v1.9.0
    Updating zmij v1.0.21 -> v1.0.23
```

openssl deprecation is confirmed: https://github.com/rust-openssl/rust-openssl/pull/2652
2026-08-04 08:35:27 +02:00
Benoit de Chezelles 6f8b1d41b2 ci: Unify shebangs to be portable on systems without /bin/bash (→NixOS) 2026-08-03 05:46:20 +02:00
Benoit de Chezelles cce7d7a000 nix(vm): Add base fonts, to try ensure baseline good font selection 2026-08-03 04:36:30 +02:00
JoelandDiego Dassie b65d09d212 fix(wayland): disable titlebar when TITLE decos not requested (#7601)
* fix: explicitly request no decorations in xdg calls
* wayland: Only disable decoration when TITLE decoration not requested
  Copied from 5ebe5f7db3779e071 by @ddss-kalpa

---------

Co-authored-by: Diego Dassie <diego.dassie@kalpa.it>
2026-08-03 04:10:42 +02:00
Benoit de Chezelles 92cd0e0863 ci: use newer ubuntu26 target for flatpak/linuxbrew/appimage packaging 2026-08-03 00:58:04 +02:00
Benoit de Chezelles db4652c935 ci: Add ubuntu:26.04 target 2026-08-03 00:58:04 +02:00
Benoit de Chezelles fa0a1da0f9 flatpak: bump runtime to 25.08
Previous 23.08 runtime has been EOL for a while and some flatpak app
stores even discourage use of apps without outadated runtimes.

refs: #7767 flathub/org.wezfurlong.wezterm#19
2026-08-02 17:43:40 +02:00
Benoit de Chezelles f232de08a8 Unify & document flatpak distribution workflow (for local/release) 2026-08-02 17:41:28 +02:00
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