Commit Graph
7019 Commits
Author SHA1 Message Date
Wez Furlong 7735602bfa suppress dead code warning for locate_app_wide_key_assignment
It is used, just not currently on all platforms, and I want to
compile and verify it on linux which I use most often.
2023-04-02 13:36:13 -07:00
Wez Furlong b853d00cff mux: detach domain on window close
refs: #2644
2023-04-02 13:35:12 -07:00
Wez Furlong f57df9bbaf wezterm: defer parsing config
Some of the `wezterm` subcommands (such as `wezterm
set-working-directory`) don't need the config at all

Loading the config can be relatively expensive and can slow
down those commands, so this commit defers loading the config
until a subcommand actually needs it.

refs: #3402
2023-04-02 10:34:54 -07:00
Wez Furlong 25255d90d6 config: lazyily produce ssh domain list
I noticed that in debug builds, `wezterm set-working-directory` had
high/variable latency, and I traced part of it to the ssh config parsing
logic.

Make that lazily evaluate the ssh config.

refs: #3402
2023-04-02 10:34:46 -07:00
Wez Furlong 5be7f93317 refactor: split cli subcommand into separate modules 2023-04-02 09:21:33 -07:00
Wez Furlong 50172f2e88 add wezterm.mux.rename_workspace
refs: #2787
2023-04-02 08:03:07 -07:00
Wez Furlong 741570563d add wezterm cli rename-workspace
refs: #2787
2023-04-02 07:37:45 -07:00
Wez Furlong e000e91683 maybe fix freebsd build
rlim_t is signed on that platform, so take care to convert
to appease the compiler.
2023-04-02 06:36:46 -07:00
Wez Furlong 000269261b add wezterm cli set-tab-title and wezterm cli set-window-title
refs: #1598
refs: #522
2023-04-01 23:00:00 -07:00
Wez Furlong ee68e31bbd tab navigator: use tab title > pane title if set
refs: #1598
refs: #522
2023-04-01 21:52:46 -07:00
Wez Furlong dd7d22ed6b mux: propagate tab and window title when it changes
refs: #1598
2023-04-01 21:31:37 -07:00
Wez Furlong ac3e2307d2 default format-tab-title now respects tab:set_title
Finally getting around to wrapping this up; previously you had
to define your own format-tab-title event handler if you wanted
to show the title that you had set via `tab:set_title`.

Now, if that string is not empty, it will be used instead of
the title string from the active pane.

refs: #1598
2023-04-01 20:06:18 -07:00
Wez Furlong ea28fb891a add window:active_tab(), window:active_pane(), tab:active_pane() 2023-04-01 19:46:15 -07:00
Wez Furlong 8582165ffc add display_pixel_geometry config option for subpixel geometry
refs: #3422
2023-04-01 11:05:09 -07:00
Wez Furlong 28417ada78 font: minor refact to derive Default for FreeTypeLoadTarget 2023-04-01 10:46:38 -07:00
Wez Furlong c7ee705eaf windows: fix INTEGRATED_BUTTONS|RESIZE 2023-04-01 08:32:24 -07:00
Wez Furlong 8a6e207f18 rustfmt 2023-04-01 07:46:31 -07:00
Wez Furlong b74da54a70 x11: fix INTEGRATED_BUTTONS|RESIZE
Shouldn't show the native titlebar in that case
2023-04-01 07:26:14 -07:00
Wez Furlong ed67d0449a refactor: remove opengl and OpenGL from names
It's not opengl specific any more and those names are overly
long and slightly misleading, so fix them up.
2023-04-01 07:06:26 -07:00
Wez Furlong aa51468e28 refactor: tidy up window_buttons a little 2023-04-01 06:56:37 -07:00
Wez Furlong 5838b2c98b refactor: split render.rs into smaller modules 2023-04-01 06:47:27 -07:00
Wez Furlong edb6aa38f2 integrated buttons: tweak gnome button logic
The pixel sizes are too tiny on my retina mac display, so I wanted
to make them larger. I noticed that the background color was transparent
which resulted in the appearance of a cross behind the button; that's
due to the way that the rounded corners are applied, so we need to
explicitly fill the background with the same color.

Refactor to make changing the size in the future a DRY operation,
but I left the size as-is because it needs more finesse and
I want to come back to that tomorrow.
2023-03-31 23:49:17 -07:00
Wez Furlong 42c3f27f3c integrated title bar: default to mac style on mac 2023-03-31 23:23:10 -07:00
Wez Furlong a7052cb188 docs: changelog for #2722
refs: #2722
2023-03-31 23:10:12 -07:00
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