1447 Commits
Author SHA1 Message Date
Yanuo MaandYanuo Ma c41674ceee wezterm-gui: use PolyStyle::Outline for branch drawing glyphs (#8385)
Custom branch-drawing glyphs (U+F5D0..U+F60D) previously stroked fading lines (0xF5D2..0xF5D5) and BlockKey::Branches segments with PolyStyle::OutlineHeavy, matching heavy box-drawing glyphs instead of light box-drawing lines (U+2500/U+2502/U+256D..U+2570) and making strokes nearly as wide as the 2/5-radius commit circles.

Switch those strokes to PolyStyle::Outline so branch lines match standard light box-drawing weight and commit nodes remain distinct.

Fixes #8382

Co-authored-by: Yanuo Ma <220247883+yanuoma@users.noreply.github.com>
2026-11-26 08:48:00 +01:00
Josh Triplett 0d11cabfc4 misc: Replace uses of deprecated ::max_value() with ::MAX (#8365) 2026-11-20 07:13:41 +01:00
Eric Shen 8066067dec wezterm-gui: fix max tab title length being always at max, even on 2nd run (#7526) 2026-11-20 05:46:26 +01:00
Vikas Kumar cca5700f38 config: Show mods before key for wezterm show-keys --lua (#7539) 2026-11-20 03:31:26 +01:00
Huy Phung ce8e6b140c overlay: fix title updating only on next user action (#8031) 2026-11-12 06:19:03 +01:00
Phil Gore 2658f629cd macos: fix dictation support, with new configs for preview text (#7453)
closes: #4592 & #5180
2026-09-15 13:51:23 +02:00
Tobias Oetiker 016b96272b wezterm-gui: route OSC 52 clipboard to the pane's own window
MuxNotification::AssignClipboard was picking any window for clipboard
ownership. With 2+ windows open, OSC 52 from a pane in a newer window
set the clipboard owner as being an unrelated window.

Resolve the pane to its mux window and use the window that owns it,
only using the first/any window if the pane has no associated gui window
(e.g. a non-current workspace).
2026-09-15 13:30:58 +02:00
Huy PhungandBenoit de Chezelles 2b56c4688f tabbar: impl proper bottom fancy tabs design (#8018)
---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-09-11 02:39:05 +02:00
xtqqczze 092dcf70d8 style: Add newline after inner attribute for readability (#8130)
Add a newline after inner attributes to make it clear that the
attribute applies to the enclosing item rather than the following item.
2026-09-05 15:31:29 +02:00
Benoit de Chezelles 17d9fe1f1e mux: Rename+doc Window functions for better readability 2026-08-28 10:12:57 +02:00
NSPC911 08e50ca2cd window: Replace MouseCursor with cursor-icon from winit (#8100) 2026-08-27 13:51:50 +02:00
Rafael Steil 5c09609597 ui: Add command_palette_line_height config option (#8096) 2026-08-26 01:09:24 +02: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
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
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
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
HuaGu-Dragon fff02ca501 perf: Simplify string case conversions to ASCII only (#7890) 2026-07-07 09:37:16 +02:00
Benoit de Chezelles 38ee9f5df1 misc: fix var name 2026-07-07 09:16:51 +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
Tautik AgrahariandBenoit de Chezelles 297637504a Fix 'the the' typos across doc & code files (#7769)
* docs: fix duplicate-word typos across doc files
* code: fix duplicate 'the the' typos across code files

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-04 14:09:39 +02:00
I-Info c8a649684d fix: memory leak in macOS MetalLayer management
When using WebGPU front end, creating and closing windows will cause
VM:IOSurface memory leak, due to an unreleased object reference.

Also with some other trivial memory leak prevention measures.
2025-10-14 19:33:09 +01:00
a.e. bb297506db fix: boundary check condition in renderstate (#7274) 2025-10-14 19:25:27 +01:00
Wez Furlong 75df5e24d9 cargo fix 2025-10-05 10:58:00 +01:00
Rebecca Turner bf9a2aeeba Fix mismatched_lifetime_syntaxes warnings
Fixes a bunch of warnings like this:

```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> window/src/os/macos/window.rs:670:23
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle, HandleError> {
    |                       ^^^^^            ------------- the same lifetime is hidden here
    |                       |
    |                       the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError> {
    |                                                     ++++
```

This lint was added in Rust 1.89: https://github.com/rust-lang/rust/issues/141787
2025-09-09 07:05:12 -07:00
Chris Pick efec7001a3 Re-enable macOS' "Services" menu
Now that validating service menu items doesn't loop forever, it can be
re-enabled.

It still won't have all possible services listed until/unless validation
is implemented more thoroughly, but some are already present.
2025-07-23 08:15:24 +01:00
Wez Furlong b249d9c427 deps: wgpu 24 -> 25 2025-06-30 07:28:05 +01:00
Rain 2deb317ec0 improve pct_to_glyph algorithm for progress reporting
The current `pct_to_glyph` algorithm would unintentionally produce `\u{f0aa6}`
for percentages in the range 96..=100.

Use a different algorithm that:

* uses an empty circle for the first 5%
* uses a filled circle for the last 5%
* has a roughly even distribution for the rest of the range
2025-06-24 07:12:46 +01:00
ad44b159c2 feat(mark-last-tab): append last tab name with '*' (#6895)
* feat(mark-last-tab): append last tab name with '*'

I think there should be a better method instead of make the save function so crowded.
But this works for now similar to `tmux` windows. But, `tmux` is using '*' for current and '-' for last
Hardcoded '*'

* Revert "feat(mark-last-tab): append last tab name with '*'"

This reverts commit 6f11c16dd9b034977088820fbc86a4456df9d513.

* feat(tab): add is_last to indicate previous active tab - last tab.

Add usage example to format-tab-title.md
Add docs to TabInformation.md

Couldn't add tests, perhapse can you guide on adding test for this?

* Update docs/config/lua/TabInformation.md

renaming as suggested.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update wezterm-gui/src/termwindow/mod.rs

renaming as suggested.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update docs/config/lua/window-events/format-tab-title.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* refactor: rename `TabInformation` attribute to `is_last_active`

---------

Co-authored-by: Omar Elmasri <omarmasri@duck.com>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-11 22:20:21 -07:00
mgpinf 4a32feaa7e feat: add configuration option for Launcher label bg and fg
Add below configuration option in config.colors:
- launcher_label_bg
- launcher_label_fg

If above mentioned options are not set in the configuration file then:
- launcher_label_bg defaults to default background color
- launcher_label_fg defaults to default foreground color
2025-05-11 09:59:01 -07:00
Vincent BesanceneyandWez Furlong 0bb382bf54 fix: honor environment variables and cwd unconditionally for SpawnCommand (#6850)
* fix: honor environment variables and cwd unconditionally for SpawnCommand

The SpawnCommand specifies information about a new command to be spawned.
If the args field is omitted, the default program for the target domain
is spawned. However, this also causes other fields like environment
variables and cwd to be wiped out.

The command builder now behaves consistently for all fields, whether the
args field is set or omitted.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-11 06:22:11 -07:00
Wez Furlong 4a210168e1 add new text_min_contrast_ratio option
This can help improve readability by forcing the foreground
color luminance to adjust to increase the contrast ratio to
the specified value.
2025-05-10 09:29:08 -07:00
James HurstandWez Furlong af8d521ef6 feat: enforce minimum contrast ratio for reverse video cursor (#6584)
* feat: enforce minimum contrast ratio for reverse video cursor

* feat: add reverse_video_cursor_min_contrast to config

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-09 09:54:39 -07:00
HAMANO TsukasaandWez Furlong 8ec1f2451c add cell_widths option #6289
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-03 06:56:33 -07:00
juster-0 77d97d4892 fix: aliasing when using Center in window_content_alignment 2025-05-03 06:36:41 -07:00
Benjamin Bergman e587f878bd Fix code style issues with cmp and BlendMode default 2025-04-15 05:02:01 -07:00
Benjamin Bergman 72d93c09db Fix spinner rendering glitch at certain font sizes 2025-04-15 05:02:01 -07:00
Benjamin Bergman 18049faf61 Add spinner glyphs 2025-04-15 05:02:01 -07:00
Benjamin Bergman 275833e21c Add new graph branch glyphs 2025-04-15 05:02:01 -07:00
Benjamin Bergman 2edbb81d29 Add progress bar glyphs 2025-04-14 18:31:45 -07:00
mgpinf 7053748e4d refactor: remove redundant character checks in Launcher, InputSelector
We don't need to check if the alphabet includes 'j', 'k' because if a
character is included in the alphabet, the code corresponding to the
first arm is executed
2025-03-17 06:29:59 -07:00
Wez Furlong 46cfda6665 shapecache: fixup for noto font update 2025-03-09 07:37:51 -07:00
Wez Furlong 5c6db3d9be unicode_names: update for unicode 16 2025-03-09 05:51:00 -07:00
mgpinfandWez Furlong 413ebd5681 Add configuration option for InputSelector label background and foreground color (#6682)
* feat: add configuration option for InputSelector label bg and fg

Add below configuration option in config.colors:
- input_selector_label_bg
- input_selector_label_fg

If above mentioned options are not set in the configuration file then:
- input_selector_label_bg defaults to default background color
- input_selector_label_fg defaults to default foreground color

* docs: add InputSelector label bg, fg options to Colors & Appearance

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-09 04:29:13 -07:00
mgpinfandWez Furlong 46f74a5bf7 Add alphabet to launcher args (#6677)
* feat: add alphabet argument to ShowLauncherArgs

- The labels are now based on the provided argument or the default value
- The 'alphabet' string defaults to "1234567890abcdefghilmnopqrstuvwxyz"
- Optional argument 'alphabet' is added to 'ShowLauncherArgs'

* docs: update documentation for ShowLauncherArgs

* fix: push (max_label_len+3) whitespaces if always_fuzzy false in InputSelector

This is to handle the edge case in InputSelector when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.

* fix: push (max_label_len+3) whitespaces if 'FUZZY' not present

This is to handle the edge case in Launcher when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.

* feat: add configuration option for Launcher alphabet

- This is in order to be able to configure the alphabet for
  actions corresponding to KeyAssignment enums 'ShowLauncher',
  'ShowTabNavigator'
- If `launcher_alphabet` configuration option not set, the value
  defaults to '1234567890abcdefghilmnopqrstuvwxyz'

* docs: add launcher_alphabet documentation

* docs: update documentation for ShowLauncherArgs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-08 10:22:11 -07:00
mgpinfandWez Furlong 2dda592ba6 Add Confirmation to Key assignment (#6707)
* feat: add Confirmation to KeyAssignment

This displays a confirmation menu similar to close menu.
An optional cancellation action that is triggered when the user
cancels/declines.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-08 10:18:40 -07:00
mgpinf 8ae3d27b09 feat: display quick select label and match in bold 2025-03-08 05:11:07 -08:00
mgpinf 85409e57a3 Option to disable attributes for non matching text in quick select mode (#6683)
* feat: optionally disable non-matching text attributes in Quick Select

Add a configuration option
'disable_attributes_for_non_matching_text_in_quick_select' that disables
all attributes for non-matching text in Quick Select Mode.
The default value for
'disable_attributes_for_non_matching_text_in_quick_select' is false

This resolves the issue https://github.com/wezterm/wezterm/issues/4022

* docs: documentation for disabling attributes for non matching text in QuickSelect

Add documentation for the below configuration option:
- `disable_attributes_for_non_matching_text_in_quick_select`

* feat: display quick select label and match in bold

* refactor: fetch colors from existing reference to config

* fix: reset additional attributes for non matching text

Reset additional below mentioned attributes to default for non matching
text if the configuration option
disable-attributes-for-non-matching-text-in-quick-select-mode is true
- Italic
- Blink
- StrikeThrough
- Invisible
- Hyperlink

* fix: update attributes to reset

* feat: add reset_attributes function in termwiz cell

Add reset_attributes function in termwiz cell
Use the above function to reset cell attributes for the cell

* refactor: update method name to clear_attributes

* termwiz: update version because public method has been added

Update termwiz version because a new method 'reset_attributes' has been
added in termwiz/src/cell.rs

* fix: update get_lines method in quickselect to be same as with_lines_mut

* termwiz: simpler method name, implementation to clear cell attributes

Use simpler method name and implementation as per suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966596988

* refactor: clear cell attributes for every line if flag is set

Clear attributes for every line if the configuration option
disable-attributes-for-non-matching-text-in-quick-select has been set
Partially implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966597826

* refactor: replace for loop with for_each method to iterate through cells

Partially implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966597826

* refactor: rename configuration option to quick_select_remove_styling

Rename option to remove styling in quick select from
'disable_attributes_for_non_matching_text_in_quick_select' to
'quick_select_remove_styling'
Implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966598496

* fix: remove bold attribute when displaying quick select label, match

This is in order to raise this in a separate PR

Suggestion mentioned here
https://github.com/wezterm/wezterm/pull/6683#issuecomment-2676394535

* docs: update documentation for quick_select_remove_styling

* termwiz: just bump minor part

Since the only change in termwiz is addition of a public method, it
should be forward compatible, so we can just bump the minor part

Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966600258

* fix: clear attributes for each cell in all lines in get_lines method

Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966848308

* fix: clear appdata for line after clearing attributes of each cell

Move call to clear appdata for line after the call to clear attributes
from each cell when configuration option 'quick_select_remove_styling'
is enabled
Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966848015
2025-02-23 15:37:09 -07:00