Commit Graph
823 Commits
Author SHA1 Message Date
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
Wez Furlong aaa6787cac update Cargo.lock for b251509a2f 2025-02-08 13:20:32 -07:00
Wez Furlong 2ca6658813 cargo update 2025-02-06 21:10:08 -07:00
Wez Furlong 6f375e29a2 wezterm-ssh: update pty version 2024-12-05 08:35:33 -07:00
Jeevitha Kannan K S b38b5ef327 Use serial2 crate instead of serial (#6411)
* Use serial2 crate instead of serial

* Remove mutex and add back the API methods
2024-12-05 08:30:04 -07:00
Wez Furlong 5cccee316a cargo update 2024-11-28 09:04:07 -07:00
Wez Furlong b3d1885187 cargo update 2024-09-15 08:18:46 -07:00
Wez Furlong da3df95114 deps: glium to 0.35
Not sure that this has any impact on us, as the changelog says
that the only change upstream was that glutin was updated.
We don't use glium with glutin, so probably a NOP?
2024-09-15 08:17:51 -07:00
Wez Furlong 09ac8c5377 wgpu -> 22.1
Tested on X11 and Wayland via weston and seems to work

closes: https://github.com/wez/wezterm/pull/5814
2024-09-15 05:56:56 -07:00
Sean Estabrooks caf450b873 Implement ProxyUseFDpass for ssh
This allows the ProxyUseFDpass ssh config option, to be
used on Linux and Mac OS.  This was requested in
enhancement issue #6093
2024-09-14 09:18:24 -07:00
Wez Furlong 56a27e93a9 cargo update
plus some noise around the image crate api evolving and deprecating
some type aliases.
2024-07-30 08:27:27 -07:00
Wez Furlong c9116830c2 mux: augment PKI SAN list with getaddrinfo AI_CANONNAME
This should hopefully make things a bit easier to consume
for remote clients.

refs: https://github.com/wez/wezterm/issues/5543
2024-07-15 08:09:45 -07:00
Wez Furlong 7e053d62cb cargo update 2024-07-15 06:11:09 -07:00
Wez Furlong b20c61926e switch all fuzzy matches to nucleo
Centralize the thread local state management into the selector module
to make it a bit more convenient to consume from the various other
locations.

closes: https://github.com/wez/wezterm/issues/5532
2024-07-14 11:03:54 -07:00
Wez Furlong 6b5edad360 charselect: switch to nucleo fuzzy matcher
This has more intuitive sorting; eg: `line` used to show the first match
as `linux_endeavour` but now matches `LINEAR B IDEOGRAM VESSEL B212`
first, which feels more relevant (has an exact prefix match).

refs: https://github.com/wez/wezterm/issues/5532
2024-07-14 10:41:26 -07:00
Thayne McCombs ccb7270dd7 Upgrade smithay-client-toolkit to 0.19
closes: https://github.com/wez/wezterm/pull/5781
2024-07-13 10:49:45 -07:00
dependabot[bot] b158472099 build(deps): bump the all group across 1 directory with 2 updates
Bumps the all group with 2 updates in the / directory: [http_req](https://github.com/jayjamesjay/http_req) and [gethostname](https://github.com/swsnr/gethostname.rs).


Updates `http_req` from 0.10.3 to 0.11.0
- [Release notes](https://github.com/jayjamesjay/http_req/releases)
- [Commits](https://github.com/jayjamesjay/http_req/compare/v0.10.3...v0.11.0)

Updates `gethostname` from 0.4.3 to 0.5.0
- [Changelog](https://github.com/swsnr/gethostname.rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swsnr/gethostname.rs/compare/v0.4.3...v0.5.0)

---
updated-dependencies:
- dependency-name: http_req
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: gethostname
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-13 06:49:29 -07:00
Wez Furlong d4d5c03b57 cargo update 2024-07-13 06:33:45 -07:00
Wez Furlong 552bb1d66b cargo update 2024-06-24 06:55:22 -07:00
Wez Furlong accd16e72e deps: update rstest
closes: https://github.com/wez/wezterm/pull/5512
2024-06-07 17:53:46 -07:00
Wez Furlong 9bfcb69139 deps: metrics -> 0.23
refs: https://github.com/wez/wezterm/pull/5512
2024-06-07 17:53:46 -07:00
Wez Furlong e8b96ef10d cargo update 2024-06-07 17:53:46 -07:00
Wez Furlong e4b18c41e6 cargo update 2024-06-03 19:46:16 -07:00
Wez Furlong 6fe1d4d2f8 cargo update 2024-05-19 16:40:07 -07:00
Wez Furlong 0fcd4a847c move uds stuff into new wezterm-uds crate
This centralizes the conditional imports and makes a home
for the IoSafe trait annotation for smol/async-io compat.
2024-05-13 17:56:57 -07:00
Wez Furlong a1db8a2f46 deps: missed a cocoa 2024-05-13 14:12:48 -07:00
Wez Furlong ee78f86293 deps: update macos specific packages 2024-05-13 14:10:09 -07:00
Wez Furlong eb6fc75a17 termwiz: remove semver dep
The newer version is much more strict about its inputs
and we're dealing with all sorts of weirdness as input
from the environment, so let's just roll our own simple
solution.
2024-05-13 13:03:44 -07:00
Wez Furlong 2a068cacb7 deps: update terminfo 2024-05-13 12:29:19 -07:00
Wez Furlong 723f062d0d deps: update strsim 2024-05-13 12:20:09 -07:00