Commit Graph
424 Commits
Author SHA1 Message Date
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
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
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
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 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
Joe Xue 6688566ba5 fix: dead lock in domain_was_detached
refs: #6749
2025-03-06 10:40:26 -08:00
Joe Xue 574e531901 fix: window version stack overflow when run "tmux -CC"
refs: #6671
2025-02-22 13:16:55 -08:00
Wez Furlong 1e52779742 fix brain-o with c_int on windows
clearly not properly awake yet.

refs: https://github.com/wezterm/wezterm/issues/6665
2025-02-13 06:58:34 -07:00
Wez Furlong 04b50b9f6c mux: fix setsockopt invocation for NetBSD
refs: https://github.com/wezterm/wezterm/issues/6665
2025-02-13 06:55:00 -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 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
Sunjay Cauligi 78195866fc keep pane index calculation immutable 2025-02-09 13:31:52 -07:00
Sunjay Cauligi 1d72e79e6a fix: update pane index when moving panes in same tab 2025-02-09 13:31:52 -07:00
Wez Furlong 11c4b11669 s,wez/wezterm,wezterm/wezterm,
I moved the repo to an org of its own. Update various things
to reference the new location.
2025-02-07 13:08:01 -07:00
Wez Furlong 00644d4e1a update for new wezterm.org domain 2025-02-06 21:13:50 -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
Sean Estabrooks c63195f880 Handle # and ? characters in directory path
When referencing the current-working-directory, before
it is set by an OSC 7 escape sequence, we ask the OS
for the correct path.  This path was then being parsed
as a URL; where a "#" or "?" character would be
interpreted as the start of a fragment or query
component of a URL -- which is a mistake.

So this change parses the returned directory as such,
where those characters will be treated as a normal
character in the path.

Nothing is changed for the OSC 7 escape sequence case.
In that case, the application must percent-encode the
path before sending, so that those characters are not
misinterpreted.

As per issue #6158 reported by Syntaxheld
2024-09-21 13:50:42 -07:00
Greg Kuruc bc2f3668a6 fix: add short circuit to set active pane 2024-09-14 11:43:32 -07:00
Wez Furlong 4884f31762 fix potential panic on shutdown when mux_enable_ssh_agent=true
refs: https://github.com/wez/wezterm/issues/5518
2024-07-13 15:50:03 -07:00
Ivan MoiseevandKen Chou 72465af6d7 Add arrows support for search field (#5416)
* feat: add arrows support for search field
* refactor: extract LineEditBuffer from LineEditor
* refactor: migrate search field to LineEditBuffer
* feat: add key bindings for search field

Co-authored-by: Ken Chou <kenchou77@gmail.com>
2024-06-14 11:21:07 -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
Ivan MoiseevandWez Furlong 4f190b0ff6 Fix: slow close non last tab (#5441)
* fix: slow close non last tab

* fix: found better place

* Update mux/src/window.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2024-06-07 17:53:31 -07:00
Wez Furlong 2a068cacb7 deps: update terminfo 2024-05-13 12:29:19 -07:00
Wez Furlong 84bb2fdc46 deps: dedup some nix versions 2024-05-13 11:53:27 -07:00
Wez Furlong 70c4e03750 deps: update flume 2024-05-13 10:29:12 -07:00
Wez Furlong 1ca5e6cc90 deps: upgrade smol to 2.0 2024-05-13 10:26:29 -07:00
Wez Furlong 6c890c3995 update metrics to latest version (0.22) 2024-05-13 09:41:12 -07:00
Wez Furlong 281b6e2740 deps: update metrics to a more recent version
This isn't the latest version of metrics; it's just a more recent
version that allows us to remove a duplicate ahash dependency from the
build graph.
2024-05-13 09:41:11 -07:00
Wez Furlong 14d426fea8 add cargo deny config, update lru 2024-05-13 08:29:36 -07:00
Wez Furlong 0711455135 add default_ssh_auth_sock option
This is useful (essential!) for fixing up the default auth sock
under gnome, as we do not have a way to do that via whatever
logic may be present in the shell startup files.
2024-05-09 14:27:03 -07:00