Commit Graph
8262 Commits
Author SHA1 Message Date
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
Wez Furlong 66687e99fc ci: cirrus: try fbsd 15-0
This is my last try to get the build back in shape on fbsd;
if this one also fails, I'll remove it.
2025-02-08 09:48:41 -07:00
Wez Furlong 022510d531 ci: tweak cirrus bits
remove cache stuff from freebsd build in case that is what is
borking it.

build test all on the newly added ubuntu container
2025-02-08 09:37:23 -07:00
Wez Furlong a0717e33d8 ci: add basic cirrus amd64 ubuntu runner
While GH actions is borked, let's have some additional coverage
2025-02-08 09:25:32 -07:00
Wez Furlong 77a533b423 ci: cirrus: update tokens for wezterm org 2025-02-08 08:55:33 -07:00
Wez Furlong 36f9b38af3 ci: cirrus: adjust repo owner for org move 2025-02-08 08:35:22 -07:00
Wez Furlong 4c11cd6533 ci: kick cirrus 2025-02-08 08:23:25 -07:00
Wez Furlong b2ead807bc ci: cirrus: freebsd 14-0 -> 14-1
14-0 seems to persistently fail to accept github's ssl certificate,
tanking the build there.

Let's see if this makes it happier.
2025-02-08 08:15:51 -07:00
Wez Furlong 783f8eff3b docs: show how to set the PATH for Finder on macos
per https://github.com/wezterm/wezterm/discussions/6630#discussioncomment-12060141
2025-02-08 07:38:46 -07:00
Max von Webel cdfa86aebd Update user-var-changed.md (#6368)
* Update user-var-changed.md

By default base64 inserts a line break at some column which will truncate the user var. `-w 0` disables line wrapping

* added a note instead of changing the base64 command
2025-02-08 07:20:00 -07:00