Commit Graph
8271 Commits
Author SHA1 Message Date
Wez Furlong 0eed1166a3 docs: changelog for #6606 2025-02-09 13:08:35 -07:00
mgpinf 4c32d6fd50 Add help_text and fuzzy_help_text arguments to ShowLauncherArgs (#6606)
* feat: add help_text, fuzzy_help_text arguments in ShowLauncherArgs

Add help_text, fuzzy_help_text optional arguments in ShowLauncherArgs.
Similar to description, fuzzy_description arguments present in
InputSelector.
If help_text argument is not provided, default value of `"Select an item
and press Enter=launch Esc=cancel  /=filter"` is displayed
If fuzzy_help_text argument is not provided, default value of `"Fuzzy
matching: "` is displayed

* docs: update documentation for ShowLauncherArgs

* perf: pass LauncherActionArgs struct rather than reference

Since fields are being cloned in the callee function, pass the struct
rather than reference to it.
2025-02-09 13:05:54 -07:00
Wez Furlong a441669a36 docs: missing entry for updated freetype 2025-02-09 13:01:22 -07:00
Wez Furlong 10a5a4c232 deps: update harfbuzz to 10.2.0 2025-02-09 12:59:51 -07:00
Wez Furlong 9270da12c5 update libssh to 0.11.1
refs: https://github.com/wezterm/wezterm/pull/6156
2025-02-09 12:53:31 -07:00
Wez Furlong 6fe9d01e65 ci: remove fedora 38
It's EOL

refs: https://github.com/wezterm/wezterm/pull/6156
2025-02-09 12:24:08 -07:00
Wez Furlong 836a0855fd ci: bump sccache action
closes: https://github.com/wezterm/wezterm/pull/6212
2025-02-09 12:19:19 -07:00
Wez Furlong 1bd7e9ec39 ci: maybe fixup pushing to the nightly release 2025-02-09 10:27:36 -07:00
mgpinf ef689c5eee fix: display whitespace before reset of attributes in InputSelector (#6609)
* fix: display whitespace before reset of attributes in InputSelector

Display white space before reset of background and setting attributes to
default in InputSelector. This is in order for whitespace after the
option to be highlighted in the same background color as the currently
selected option.
The above mentioned points are currently reflected in ShowLauncherArgs
but not in InputSelector.

* fix: emit CRLF after attributes have changed

Moving to the next line before the others are applied might lead to some
wonky behavior in some edge cases. So to be on the safe side, emit CRLF
after attributes have changed
2025-02-09 09:54:21 -07:00
Wez Furlong c79f8d59c4 macos: MACOSX_DEPLOYMENT_TARGET 10.9 -> 10.12
rustc emits:

```
warning: deployment target in MACOSX_DEPLOYMENT_TARGET was set to 10.9, but the minimum supported by `rustc` is 10.12
```

and so we follow that min requirement
2025-02-09 09:51:38 -07:00
Wez Furlong 9abf85cabf macOS: switch to UNUserNotificationCenter for toast notifs
I want to move all the objc stuff over to the objc2 crate.

The older notification center is deprecated and doesn't
have any bindings that are supported by the objc2 crate.

This is mostly straightforward, except I lost hours running
down the delegate was being dropped. Best guess is that
there's some autorelease pool magic that I don't understand;
I tried stashing the object into a global but that still didn't
keep it retained.

In the end, the simplest solution is to take it out of its
Retained wrapper and just leak it; it doesn't hold any
meaningful amount of data anyway, but it is vital to keep
it alive for the notification center callbacks to trigger.

Note that UNUserNotificationCenter requires that the application be
code-signed in order to function. I don't like this, but that's the way
that apple want it: sponsors are supporting the cost of my apple
developer account to enable this.
2025-02-09 09:50:12 -07:00
Wez Furlong a3b4d5e85a docs: changelog for #6405 2025-02-08 19:40:37 -07:00
nhurlockandWez Furlong b374d383ce QuickSelectArgs: optionally bypass custom action on paste (#6405)
* QuickSelectArgs: optionally bypass performing action on paste

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-02-08 19:38:40 -07:00
Wez Furlong 0736e4f9d1 docs for #6587 2025-02-08 19:26:49 -07:00
Wez Furlong 011ea313b6 rustfmt
refs: https://github.com/wezterm/wezterm/pull/6587
2025-02-08 19:22:10 -07:00
amadeusandWez Furlong fcae187b29 feat(macOS): add support to disable rounded corners on macOS (#6587)
* feat(macOS): add support to disable rounded corners on macOS

* Update wezterm-input-types/src/lib.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-02-08 19:21:44 -07:00
Wez Furlong 4accc376f3 update bundled conpty build
These are the win10 x64 bits taken from
https://dev.azure.com/shine-oss/terminal/_artifacts/feed/TerminalDependencies/NuGet/Microsoft.Windows.Console.ConPTY/overview/1.22.250204002

thread: https://mas.to/@DHowett/113969428709942718
2025-02-08 16:01:06 -07:00
Brian Di Palma 7b127d6d2e Update troubleshooting.md
Flatpak debugging instructions.
2025-02-08 15:46:46 -07:00
Wez Furlong f442417fce docs: changelog for #6629
closes: #1124
2025-02-08 15:37:19 -07:00
Shiphan 94a4252f28 Add config option to adjust window alignment 2025-02-08 15:34:15 -07:00
Wez Furlong b535b14e91 termwiz: fixup regex range
Avoids a panic on startup:

```
thread 'main' panicked at config/src/config.rs:1671:86:
called `Result::unwrap()` on an `Err` value: Error(Regex(CompileError(InnerError(Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
    ^(?:\s|$|[^_-/a-zA-Z0-9])
               ^^^
```

refs: #6391
2025-02-08 14:48:50 -07:00
Wez Furlong 6ad113d04e docs: changelog for #6320 2025-02-08 14:45:32 -07:00
mgpinf f55293262e Select active tab choice as initial choice in ShowTabNavigator (#6320)
* Select current tab option as initial choice in ShowTabNavigator

This introduces the following changes
- Select the choice corresponding to the active tab as the initial choice

* docs: Add current tab choice documentation in ShowTabNavigator

This changes the following
- Update ShowTabNavigator.md with current tab choice documentation

* refactor: remove redundant local variable
2025-02-08 14:43:34 -07:00
Ha Pham 656e62541f Update log_(error|info|warn).md to include using ShowDebugOverlay to view logs (#6316)
* Update log_error.md to include using ShowDebugOverlay to view logs

* Update log_info.md to include using ShowDebugOverlay to view logs

* Update log_warn.md to include using ShowDebugOverlay to view logs
2025-02-08 14:42:04 -07:00
Ha Pham 47df25dc7e Update leader_is_active.md
I think it should be `window:leader_is_active()` instead of `wezterm.leader_is_active()`
2025-02-08 14:40:45 -07:00
Kreijstal 364a158b6c Add Fallbacks for Setting WEZTERM_HOST in Non-Systemd and Minimal Environments
This PR addresses issues with setting the WEZTERM_HOST environment variable in environments lacking certain hostname utilities, specifically hostname and hostnamectl, which may not be available in minimal or non-Systemd setups.
2025-02-08 14:24:23 -07:00
Wez Furlong 8baa9a4008 docs: changelog for #4061 #6388 2025-02-08 14:21:32 -07:00
Bowei Zhang ca671d649b fix: don't clear ime_last_event when a key is UP 2025-02-08 14:19:32 -07:00
Wez Furlong 99b94b3bd8 docs: changelog for #6391 2025-02-08 14:17:10 -07:00
Bowei Zhang dd7ae90f1f fix: better handling of hyperlinks with parentheses 2025-02-08 14:14:28 -07:00
Wez Furlong c3cfaa8458 docs: changelog for #6403 2025-02-08 14:09:30 -07:00
Wez Furlong b6be5e547f docs: changelog for #6502 2025-02-08 14:08:46 -07:00
Wez Furlong 55e6322685 docs: changelog for #5406 2025-02-08 14:08:45 -07:00
MikkaandWez Furlong 6e2eeed6e5 fix: opening the InputSelector resulted in invalid pane ids (#6403)
* fix: opening the InputSelector resulted in invalid pane ids

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

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-02-08 14:08:31 -07:00
boredcoder411 84ece8790c added bash example to portable_pty crate 2025-02-08 13:47:55 -07:00
faint 0351015ad0 docs: replace %HOME% with %USERPROFILE% for Windows (#6482) 2025-02-08 13:47:05 -07:00
Erik Schnetter 94610314e8 Support Unicode 16 octant characters (#6502)
* Support Unicode 16 octant characters

* Add missing Unicode 16 block characters

* Simplify sextant/octant implementation

* Add missing octant, correct indexing error

* Correct sextant/octant lookups
2025-02-08 13:43:33 -07:00
MaeIsBad d1684d38e8 Fix crash on hidpi with wayland (#6508) 2025-02-08 13:33:12 -07:00
Wez Furlong 5243d73353 docs: changelog for #6262
closes: #6262
2025-02-08 13:28:56 -07:00
Wez Furlong 10b7f55f18 docs: changelog for #6548 2025-02-08 13:28:56 -07:00
Aliaksandr Truš 80b9ffd14c fix(wayland): fix issue with tiled and maximized window
Potential fix for #6262
2025-02-08 13:26:35 -07:00
Jared Baur 444ed2309a wayland: prevent setting cursor when window is not focused 2025-02-08 13:22:54 -07:00
Wez Furlong 6044939d12 docs: changelog for #6554 2025-02-08 13:20:44 -07:00
Wez Furlong aaa6787cac update Cargo.lock for b251509a2f 2025-02-08 13:20:32 -07:00
saltkid 3a6c7a8c83 fix: setting width and height to Contain is not preserving aspect ratio of tall images (#6554)
* fix: `Contain` not preserving aspect ratio of tall images

When both width and height is set to `Contain`, the scaling uses the
wrong direct proportional scaling formula for tall images. This is due
to `aspect` being `width / height`:
By dividing (original), the formula expands to `scaled_width /
scaled_height : height / width` which inversely scaled the width of tall
images. By multiplying instead, the formula correctly expands to
`scaled_width / scaled_height : width / height` which preserves aspect
ratio when scaling.

* refactor: simplify "Contain" and "Cover" formulas; use max for "Cover", min for "Contain"

This was derived from the principle of direct proportion `x=ky` where
`k` is the scaling factor, and `x` `y` are the dimensions. Scaling
factor is based on image's dimension relative to the window's.

Contain needs the minimum scaling factor to ensure both dimensions fit
within the window. Cover needs maximum scaling factor to ensure the
image's smaller dimension fits in the window, allowing the larger
dimension to crop, as expected.
2025-02-08 13:18:12 -07:00
Jakob Hellermann b251509a2f remove unused tempfile dependency 2025-02-08 13:03:37 -07:00
Wez Furlong 8953b211e8 wezterm-ssh: self-skip tests if sshd not installed 2025-02-08 12:52:12 -07:00
Wez Furlong 1191b629cf ci: cirrus: install deps for testing 2025-02-08 12:26:13 -07:00
Wez Furlong 092bc6ce07 ci: delete cirrus freebsd task
It's not working; I suspect a cirrus environmental issue, but
have no time or energy to debug, and I want to free up the
compute credit and disable this source of noise.
2025-02-08 12:17:22 -07:00
Wez Furlong 2b7d557ffe ci: okay, last but one 2025-02-08 09:49:52 -07:00