8795 Commits
Author SHA1 Message Date
Wez Furlong 2168709836 minor tidy up of hover handling for maximize button
Remove an unsafe global variable and replace with a member variable
that works similarly to the drag tracking.

Doing this from a mac... may not compile on a windows box!
2023-03-31 23:10:12 -07:00
Wez Furlong ba34f9608e rename PushOval -> Oval 2023-03-31 23:10:11 -07:00
Wez Furlong 0a4932cf29 tab bar: fixup placement of macos native titlebar buttons 2023-03-31 22:47:40 -07:00
Wez Furlong 8b03890b8b macos: correctly synthesize WindowState::MAXIMIZED 2023-03-31 22:06:22 -07:00
Wez Furlong a278dbf43f remove redundant mix operation from shader
The o_fg_color_mix alpha should already be in range and we
shouldn't need to alter it here.
2023-03-31 21:56:01 -07:00
Wez Furlong 929e86225d cheaper case insensitive compare 2023-03-31 21:52:54 -07:00
Wez Furlong 706db2650d avoid bespoke lightness calc, reuse hsl function 2023-03-31 21:47:12 -07:00
Wez Furlong 422ae51577 allow using Gnome and Windows styles on macos.
Rename macos to MacOsNative to make its intended purpose clearer
2023-03-31 20:35:26 -07:00
Wez Furlong 5b5ae93052 remove some macos conditional compilation
Prefer to configure based on runtime config
2023-03-31 20:23:20 -07:00
Wez Furlong fb4e5b0f7b macos: fixup window_decorations w/ INTEGRATED_BUTTONS+RESIZE
Our docs strongly suggest that RESIZE be kept in the mask, so let's
ensure that it continues to work.
2023-03-31 20:13:51 -07:00
YuraIz 6b2137de0b integrated-title-bar: Add Native button style parameter 2023-03-31 19:59:03 -07:00
YuraIz ab52277393 integrated-title-bar: Replace window button recoloring
also change shape of rounded corners to ovals
2023-03-31 19:59:01 -07:00
YuraIz bcd1b03569 integrated-title-bar: Use snap layouts for any maximize button 2023-03-31 19:55:13 -07:00
YuraIz eab21a669d integrated-title-bar: Improve windows support 2023-03-31 19:53:45 -07:00
YuraIz 01aeb506c0 integrated-title-bar: Update config options
and rename the "FANCY" option to "INTEGRATED_BUTTONS"
2023-03-31 19:51:46 -07:00
YuraIz c553646ea4 integrated-title-bar: Remove commented line 2023-03-31 19:45:28 -07:00
YuraIz baebf907f6 integrated-title-bar: Remove macos button style
macos uses native buttons
2023-03-31 19:45:28 -07:00
Yuri Izmer e354791c34 integrated-title-bar: Add macOS support 2023-03-31 19:45:28 -07:00
YuraIz 7d79933d28 integrated-title-bar: Ignore style config on macos and windows 2023-03-31 19:45:28 -07:00
YuraIz fc7a8a8914 integrated-title-bar: Add x11 support 2023-03-31 19:45:28 -07:00
YuraIz 6c40c2397e integrated-title-bar: Add button style option 2023-03-31 19:45:28 -07:00
YuraIz d39bccca10 integrated-title-bar: Add option to remove useless buttons 2023-03-31 19:45:28 -07:00
YuraIz 2333046e1b integrated-title-bar: Add button placement option 2023-03-31 19:45:26 -07:00
YuraIz 0401dc26d6 integrated-title-bar: Add libadwaita styled buttons 2023-03-31 19:44:20 -07:00
YuraIz 2cd325fecd integrated-title-bar: Add initial shape for macos buttons 2023-03-31 19:44:19 -07:00
YuraIz 29fe4709ce integrated-title-bar: Add color configuration 2023-03-31 19:44:19 -07:00
YuraIz 93308317d7 integrated-title-bar: Add windows support 2023-03-31 19:44:19 -07:00
YuraIz 36f41af81e integrated-title-bar: Add window buttons to the tabbar 2023-03-31 19:44:13 -07:00
Wez Furlong 74da631430 mux: allow client to provide palette to mux server
The server-side ownership of the palette is a stumbling block for
many users, so let's fix it.

This commit allows the client to pass its configured palette to
the server when it connects, and when the config is changed.

That palette takes precedence over the palette from the server config.

However, if the remote application uses any escape sequences that
redefine the color palette, the color palette that was active at
that point in time is forked and use as the basis, and will remain
the active palette until the palette is reset via escape sequences.

refs: https://github.com/wez/wezterm/issues/2686
refs: https://github.com/wez/wezterm/issues/3397
2023-03-31 08:02:32 -07:00
Wez Furlong 0360619e4b docs: fix list syntax 2023-03-31 05:46:51 -07:00
Evgeny 20b0933d74 doc: mention that hyperlink prefix is required 2023-03-31 05:33:27 -07:00
Artyom Nesterenko 78a4477688 Add Homebrew tap for nightly build 2023-03-30 22:27:27 -07:00
Doctor Who 35a1882280 Update webgpu_preferred_adapter.md
Added missing `Gpu` prefix in test condition.
2023-03-30 22:20:27 -07:00
Wez Furlong d1c2257bd8 macos: fix CTRL key behavior when use_ime=true
refs: https://github.com/wez/wezterm/pull/2435
refs: https://github.com/wez/wezterm/issues/2771
refs: https://github.com/wez/wezterm/issues/2630
2023-03-30 21:49:48 -07:00
Wez Furlong 76060b7cc2 win:perform_action now works with Copy Mode and other overlays
refs: #3209
2023-03-30 19:46:02 -07:00
Wez Furlong 4a555be7d9 gui: win:perform_action now awaits the underlying perform_key_assignment
This should help a bit with https://github.com/wez/wezterm/issues/3405
even though there is a better solution for the scenario mentioned there.
2023-03-30 19:31:40 -07:00
Wez Furlong 72410a266f mux: don't request lines if we think we are dead
refs: https://github.com/wez/wezterm/issues/3386
2023-03-30 16:34:11 -07:00
Wez Furlong 29d10946aa surface config errors when running wezterm connect
Broken config could cause the gui to exit before it would normally
print the config warnings and errors, making it harder to understand
what is going on.

This commit bundles the config error text together with whatever
caused it to error out in the fatal error case.
2023-03-30 16:19:25 -07:00
Wez Furlong c766d5e465 fix is_zoomed property in tab:get_panes_with_info()
refs: #3404
2023-03-30 07:44:38 -07:00
Wez Furlong d6e8271b5b update libssh-rs dep to latest build
Don't need to point to the git repo for this any more, just
use the published release.
2023-03-30 06:39:56 -07:00
Seto Kuslaksono b50a646b4f Fix minor typo
As a new user I got confused why there's nothing happen when I create config file named `wezterm.lua` while it should be named `.wezterm.lua`
2023-03-29 22:32:50 -07:00
Wez Furlong e9feb578c8 docs: cover new default ssh domain behavior and function 2023-03-29 21:01:54 -07:00
Wez Furlong 2c9fd0ef6c serial: fix some FIXMEs
Now that we have a more regular domain-shaped serial thingy,
refactor the `wezterm serial` command to re-use the common
gui setup and running logic.  This removes some FIXMEs from
around the wonky setup of the domain, which is nice.
2023-03-29 19:34:10 -07:00
Wez Furlong ab4af5ce11 docs: fixup a couple of Since thingies 2023-03-29 19:17:16 -07:00
Wez Furlong 1e688a5128 Add serial_ports config
This commit teaches the config about SerialDomains, and the mux
layer about constructing a SerialDomain, then changes the GUI
layer to use those pieces to set up `wezterm serial`.

A new `serial_ports` config is added, and the GUI layer knows how
to apply it to the set of domains in the mux.

The result of this is that you can now define a domain for each
serial port and spawn a serial connection into a new tab or window
in your running wezterm gui instance.
2023-03-29 19:05:13 -07:00
Ruben Laguna e38a06d640 Fix broken link to list of features
The website https://wezfurlong.org/wezterm/ has a broken link , the "A full list of features can be found here" points to https://wezfurlong.org/wezterm/features.md (404 not found).

This fix uses the type of hyperlink that will work properly when rendered as HTML.
2023-03-29 12:00:13 -07:00
Wez Furlong a5b52de02c populate ssh domains from your ssh config by default
If you haven't assigned `config.ssh_domains` to something else,
this commit will populate it from the hosts it finds in your
ssh config file.

First it will emit no-multiplexing entries that allow ad-hoc
ssh connections.

Then it will emit wezterm multiplexing enabled versions of those
entries.
2023-03-29 11:51:59 -07:00
Wez Furlong 4b2e386df2 fix broken link on features page 2023-03-29 11:32:26 -07:00
Wez Furlong 338174b430 mux: fix pid file locking
This got broken around the time we started to re-exec the mux
server.  Since the fd was CLOEXEC we'd essentially unlock and
ignore the lock at the point we'd re-exec.

This commit allows the fd to remain open and locked across
the exec, and causes the exec'd process to set CLOEXEC by
explicitly telling it about the log fd, so that shells and
things spawned by the mux don't hold the lock.
2023-03-29 06:10:11 -07:00
Wez Furlong ea92df9486 mux server: propagate config CLI options when daemonizing
refs: #3397
2023-03-29 05:40:15 -07:00