Commit Graph
8397 Commits
Author SHA1 Message Date
Wez Furlong 9aac7b3dec docs: changelog for #6682 2025-03-09 04:32:04 -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
Joe XueandWez Furlong 4ce83f093a fix: tmux -CC error on %config-error (#6773)
* fix: tmux -CC error on %config-error

refs: #6763

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-09 04:25:53 -07:00
Joe Xue dd546c9d98 Reorg the code to put rules/events in alphabet order 2025-03-08 19:24:19 -08:00
Wez Furlong cdd70030ea docs: docs and changelog for #6558 2025-03-08 17:21:09 -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 7aadebfe48 termwiz: fix panic when appending long runs to clusterline
There were two different overflows that could happen here when
resizing the terminal from a narrow width to a much wider width,
when the input consists of very very long logical lines.

The first was that we could overflow the maximum number of
cells in the ClusteredLine struct, which had u16 as its type.

The second, after changing u16 to u32, was the maximum length
of a run of cells with the same attribute.

The former could be fixed, preserving the smaller integer type,
by adjusting the API to allow it to return the overflow, but
that feels awkward and we could just increase the size of
the integer type.

The latter can be caught with an overflowing_add operation
and breaking the run in the overflow case.

That is what this commit does.

+bump codec version because this causes a small change
in the serialization of line data used by the mux
protocol.

refs: https://github.com/wezterm/wezterm/issues/6729
2025-03-08 12:25:06 -07:00
Wez Furlong e8d84eeb53 docs: changelog for #6677 2025-03-08 10:24:14 -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
Wez Furlong 4e5341efd0 docs: changelog for #6707 2025-03-08 10:19:53 -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
Wez Furlong 18371a158c termwiz: add update-changelog.sh
This has the appropriate invocation of git-cliff to update
the changelog

refs: https://github.com/wezterm/wezterm/pull/6709
2025-03-08 06:38:09 -07:00
Josh McKinney e6a323745e Update termwiz Changelog with git-cliff
This is not perfect, but maybe useful
2025-03-08 05:18:00 -08:00
mgpinf 8ae3d27b09 feat: display quick select label and match in bold 2025-03-08 05:11:07 -08:00
Joe Xue 18f7c03d6c Tmux -CC: disable win32 input mode in the control pane (#6768)
On windows, if win32 input mode is active, key presses are encoded by the GUI and will bypass
the key_down logic that we use to detect when the user presses `q` to exit from `tmux -CC` mode.

This commit forces the keyboard encoding to be standard Xterm encoding for the pane
that is running `tmux -CC` mode so that we can catch the `q` press.
2025-03-08 05:33:48 -07:00
S H 622e404be2 Update custom_block_glyphs.md
Correct link for u2500
2025-03-07 12:08:43 -08:00
Wez Furlong 88905822bf fix: SO_SNDBUF too large on *BSD
closes: https://github.com/wezterm/wezterm/issues/6712
2025-03-07 10:37:29 -07:00
Wez Furlong 2d78db855a mux: fixup debug level for tmux -CC control pane
No need to log an error for each key press
2025-03-07 10:16:19 -07:00
Wez Furlong 60c3f756e4 docs: changelog for #6602 #336 2025-03-07 10:02:37 -07:00
Joe Xue 7e0e15a132 Tmux control: address comments, second round, remove unwrap()
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 238896fc41 Tmux control: Address the comments, second round
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 36007dca65 Tmux control: Fix the session id prefix
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue b19fceeba9 Tmux control: put bootstrap pane and tmux panes in same window
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 920602eccd Tmux control: address the comments, prevent duplicate outputing
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue b9e35b6804 Tmux Control: address comments, add history_limit, backlog 2025-03-07 09:00:48 -08:00
Joe Xue 985dfe5cdc Tmux control: address comments, prevent capturing new pane
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 279bf50711 Tmux control: address the comments
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 9c35d65dae Tmux control: add AttachState to prvent unexpected action in attaching stage
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 80299a6321 Tmux control: window name, active panel, active tab
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 967d727e3a Tmux control: use async way to handle split pane
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 6064ed161f Tmux control: performance improvements
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 9954299499 Tmux control: add backward compatibility for tmux
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 337efce7ed Tmux control: reflect client window size change to back end
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 6821fa5ceb Old tmux versions don't support -f for filter and option default-size
Use other way to archive them
2025-03-07 09:00:48 -08:00
Joe Xue 7ddaddaf3c remove the commented code 2025-03-07 09:00:48 -08:00
Joe Xue 327a4dd135 Prune panes, tabs
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 9fbf154029 Split panel
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 3a8c6b66ae Spawn new tab(tmux window)
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue fbb7aecd9f Tmux controle mode, sync remote windows, layouts, panels
refs: #336
2025-03-07 09:00:48 -08:00
Joe Xue 718d91a62f tmux: fix the crash when start the control mode by "tmux -CC"
refs: #336
2025-03-07 09:00:48 -08:00
Wez Furlong 7212327453 no-response: maybe fix waiting-on-op tags 2025-03-06 15:32:18 -07:00
Wez Furlong f5b38ec46d deps: cargo update 2025-03-06 15:23:38 -07:00
Wez Furlong 9574ded6cd deps: update harfbuzz to 10.4.0 2025-03-06 15:23:38 -07:00
Wez Furlong 15506bf3ef term: moved saved cursor from ScreenOrAlt -> Screen
refs: #6669
2025-03-06 15:23:38 -07:00
Dimitris ApostolouandWez Furlong 0f180b0008 cairo: use libc from workspace (#6718)
* Avoid duplicate crates

* Update deps/cairo/Cargo.toml

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-06 15:22:17 -07:00
dependabot[bot] 178befee68 build(deps): bump actions/stale from 9.0.0 to 9.1.0
Bumps [actions/stale](https://github.com/actions/stale) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 14:18:30 -08:00
Christopher Plewright 8b4a751f3c Update config.toml, fix minor syntax issue
Fixed the syntax to also work with ms command prompt.
2025-03-06 14:07:56 -08:00
Thomas Buckley-Houston d1a077527b Add Clone derive to termwiz::surface::Surface 2025-03-06 11:52:48 -08:00
Thomas Buckley-Houston ccc3911e55 Minor typos to CONTRIBUTING.md 2025-03-06 11:40:03 -08:00
Wez Furlong f61e9d9f7d docs: changelog for #6749 2025-03-06 11:42:04 -07:00