Commit Graph
852 Commits
Author SHA1 Message Date
Wez Furlong d658b2f2fb cargo update 2025-10-05 10:56:09 +01:00
Wez Furlong 9dbd5e16fa macos: pin legacy objc deps to version before mass deprecation
These crates are all deprecated in favor of the new objc2 crate,
but the migration to objc2 is non-trivial.  Meanwhile, the volume
of deprecation warnings is overwhelming and getting in the way.

Pin these deps back to a versions prior to the mass deprecation
so that we're not drowning in spew in the meantime.
2025-07-01 07:47:09 +01:00
Wez Furlong d3d9d8e396 env-bootstrap: migrate to objc2 2025-06-30 07:45:15 +01:00
Wez Furlong c4acbbc823 cargo update 2025-06-30 07:31:38 +01:00
Wez Furlong b249d9c427 deps: wgpu 24 -> 25 2025-06-30 07:28:05 +01:00
Wez Furlong d765b89594 gui-subcommands: remove unused anyhow dep 2025-06-30 06:52:24 +01:00
Wez Furlong 662e9b0c7b wezterm-ssh: expand a couple more ssh_config tokens
A couple of these are for things that we don't support; the intent
is not to support the associated features so much as avoid emitting
warnings when loading an ssh config that references them, especially if
the offending section of the config isn't actually being used by
wezterm.

refs: https://github.com/wezterm/wezterm/issues/6975
2025-05-24 07:25:44 -07:00
Wez Furlong 4d11d46eab cargo update 2025-05-24 06:08:23 -07:00
Wez Furlong 2bfa34fca5 Revert "cargo update"
This reverts commit 0fb80ca503.

The `windows-result` crate fails to build vendored in CI
2025-05-17 10:17:49 -07:00
Wez Furlong 0fb80ca503 cargo update 2025-05-17 09:21:10 -07:00
Wez Furlong 909573fad9 ssh: implement ServerAliveInterval for libssh backend
This is a partial implementation of keepalives; it has the good
part (the sending of the packet on the requested interval), but
not the other part (disconnecting if we don't hear anything after
some number of packets).

The reason for not having the latter is that it isn't obvious to me how
to expose whether the channel had more incoming packets since sending
the ignore, so we cannot confidently act to terminate the connection.

refs: https://github.com/wezterm/wezterm/issues/4023
2025-05-14 07:14:22 -07:00
Wez Furlong 8025483486 wezterm-escape-parser: fixup build on win32 2025-05-10 15:35:26 -07:00
Wez Furlong 6c7e3722b1 term: normalize imports to wezterm-xxx rather than termwiz re-exports 2025-05-10 15:08:56 -07:00
Wez Furlong 2b15e46421 refactor: extract wezterm-surface from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong 6740628da5 refactor: extract wezterm-cell from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong 47b6410f8f accommodate more no_std builds 2025-05-10 15:07:21 -07:00
Wez Furlong 80de3aa313 refactor: extract wezterm-char-props from termwiz
This new crate holds the unicode character properties
and other similar data on emoji and nerdfonts codepoints.
2025-05-10 15:07:20 -07:00
Wez Furlong 0cd3fe8f97 wezterm-escape-parser: allow building no_std (but with alloc)
This commit makes a number of parts of wezterm's core
parsing functionality no_std compatible, but requiring alloc.

In the no_std environment, several lookup tables that would
normally have been used to accelerate some operations are
not available and we instead fall back to an O(n) operation.
2025-05-10 15:07:20 -07:00
Wez Furlong 304fb40567 switch termwiz over to wezterm-escape-parser 2025-05-10 14:54:05 -07:00
Wez Furlong 5306090f6c extract wezterm-escape-parser into its own crate 2025-05-10 14:54:05 -07:00
parthandWez Furlong 4d6b83585f feat: Added support for window blur on KDE Wayland (#6905)
* added config flag for kde blur

* added deps for wayland-protocol-plasma

* added kde background blur

* keeping inner functions together

* updated docs with kde_blur

* added kde_blur ss to docs

* removed unneeded dep

* removed redundant default value for bool

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

* updated default for kde_blur in config

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

* Update docs/config/lua/config/kde_window_background_blur.md

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

* Update blur logic in os/wayland/window.rs

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

* simplified blur_manager creation in wayland/state.rs

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

* removed unnecessary panic paths

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

* removed unnecessary panic path

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

* put the right screenshot for kde_blur

* fixed build issues

* reverted window/src/os/windows/window.rs

* fixed formatting

* Update window/src/os/windows/window.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-04 06:29:27 -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
Wez Furlong d4b50f6cc3 update xcb-imdkit to fix IBus IME issues
refs: https://github.com/wezterm/wezterm/issues/5125
refs: https://github.com/fcitx/xcb-imdkit/issues/16
refs: https://github.com/wezterm/xcb-imdkit-rs/pull/2
2025-05-02 06:59:51 -07:00
Wez Furlong 3bfe6df191 bump vtparse version 2025-04-19 07:37:32 -07:00
Wez Furlong 289c5f548f cargo update 2025-04-12 22:07:20 -07:00
Wez Furlong 736f73f153 vtparse: allow building in no_std environments 2025-04-12 22:06:14 -07:00
Jun Wu 50ea8c3811 termwiz: lazy_static => std::sync::LazyLock
`LazyLock` is a stdlib drop-in replacement to drop the lazy_static
dependency.
2025-04-12 22:05:40 -07:00
Wez Furlong a873585160 update lock file 2025-03-20 07:21:07 -07:00
Wez Furlong 994c0a39b6 add Cargo.lock 2025-03-19 07:24:24 -07:00
Jay Madden c0b29fef24 feat(macos): add support for titlebar background matching theme background on macos
closes: #6558
2025-03-08 17:13:37 -07:00
Wez Furlong f5b38ec46d deps: cargo update 2025-03-06 15:23:38 -07: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
Wez Furlong 8ca496682b deps: update various unicode deps
(this is really a NOP)
2025-02-12 11:37:13 -07:00
Wez Furlong 6f245de85a deps: siphasher -> 1.0.1 2025-02-12 11:26:16 -07:00
Wez Furlong df5490a0eb deps: rusqlite/sqlite-cache update 2025-02-12 11:24:47 -07:00
Wez Furlong 4c04835b0e deps: update mac/objc-ish deps 2025-02-12 11:15:00 -07:00
Wez Furlong 3b994de290 deps: remove once_cell in favor of std functionality 2025-02-12 10:00:31 -07:00
Wez Furlong e801a8b215 deps: git2 -> 0.20 2025-02-12 09:52:33 -07:00
Wez Furlong b53ea4119c deps: base64 -> 0.22 2025-02-12 09:49:12 -07:00
Wez Furlong f78f72f2f1 deps: nix -> 0.29 2025-02-12 09:44:41 -07:00
Wez Furlong dff2ac6d69 deps: bump starship-battery to 0.10
This should make things buildable on NetBSD again

refs: https://github.com/wezterm/wezterm/issues/6665
2025-02-12 09:43:42 -07:00
Wez Furlong edcdefda3b workspace-ify the deps
There have been a couple of attempts at this in the past, which
had some usability warts in what I recall as an earlier, less
useful set of features overall.

Whether that was collective misunderstanding at the time, or things
have gotten better since then, now is a good time to adopt the workspace
dep syntax, because wezterm has many crates to keep on top of, and
automation like dependabot can't see a lot of them.

This will help to manage the versions of deps in wezterm centrally.

Let's try this out in CI: the Cargo.lock changes here are minimal
(eliminated a second version of base64 from one crate, terminal_size
from another, and removed an explicit dep on serde_derive) so
hopefully this sails through on !linux.

closes: https://github.com/wezterm/wezterm/pull/6668
2025-02-12 09:43:36 -07:00
Wez Furlong 23789c971c deps: update wgpu from 22.1 -> 24.0.1
There's a long list of fixes and changes with these two major
version bumps.
2025-02-11 18:35:20 -07:00
Wez Furlong 958804c8ac termwiz: update dynamic dep for publish 2025-02-10 08:47:22 -07:00
Wez Furlong 4d3911b5e2 termwiz: prep for making a new release 2025-02-10 08:45:17 -07:00
Wez Furlong ee4f6b0d27 blob-leases: update deps
refs: https://github.com/wezterm/wezterm/issues/6649
2025-02-10 07:55:10 -07:00
Wez Furlong 44866cc137 new: ConEmu progress reporting OSC sequence
This commit parses and captures the progress state as set by
ConEmu style progress reporting escape sequences.

Changes to the state will propagage through the mux via the
existing MuxNotification Alert system, and should also transit
across multiplexer connections.  However, there is no separate
multiplexer state transfer for the progress state, so reconnecting
to a mux in the middle of a progress sequence will show as None
for the progress state, until the next update occurs.

Aside from propgating and exposing the state to lua via PaneInformation
and a Pane::get_progress method, wezterm doesn't do anything with
the progress information at this time.

This commit includes an example of how you might customize your
tab title to reflect the progress in the active pane.

refs: https://github.com/wezterm/wezterm/issues/6581
2025-02-09 18:26:23 -07:00
Wez Furlong a95a584344 bump libssh-rs again 2025-02-09 13:49:11 -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 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