1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 11:50:42 +03:00
Commit Graph

6602 Commits

Author SHA1 Message Date
Wez Furlong
b01aa129f7
add WindowOps::focus, ActivateWindow, window:focus()
Only implemented on X11 so far.
Note that Wayland doesn't support this action at all.

refs: https://github.com/wez/wezterm/issues/2973
2023-01-18 22:58:48 -07:00
Wez Furlong
4f1e2604eb
docs: changelog for https://github.com/wez/wezterm/pull/2977 2023-01-18 20:14:50 -07:00
Jared Baur
88b49c9da0 wayland: hide mouse cursor when typing 2023-01-18 19:13:44 -08:00
Wez Furlong
9ea19b094b
docs: changelog for https://github.com/wez/wezterm/pull/2978 2023-01-18 20:11:43 -07:00
Niclas Hoyer
962c10330f Use dpi from configuration while resizing 2023-01-18 19:07:43 -08:00
Wez Furlong
15cd1afbdc
lua: add some pane methods for working with zones
refs: https://github.com/wez/wezterm/issues/2968
2023-01-18 19:38:51 -07:00
Wez Furlong
a2e027dff4
cargo update 2023-01-15 21:48:20 -07:00
Wez Furlong
14c749e51d
macos: ensure menubar is visible when switching away from a fullscreen window 2023-01-13 21:08:39 -07:00
Wez Furlong
7bb6973473
palette: ensure reverse background block spans full width
This makes the command palette look a bit more consistent.

refs: https://github.com/wez/wezterm/issues/1485
2023-01-13 20:31:53 -07:00
Wez Furlong
67ce66a5b9
macos: enable opacity for webgpu
Seems to do the job for me!

refs: https://github.com/wez/wezterm/issues/2952
2023-01-12 22:39:01 -07:00
Wez Furlong
a145a140f1
macos: retain menu menu when retrieving it from NSApp
refs: https://github.com/wez/wezterm/issues/2940
2023-01-12 19:29:40 -07:00
Wez Furlong
5da0ef4c12
macos: fixup application termination
The recently added app delegate was telling cocoa that we'd decide
to quit later in response to termination requests, blocking
shutdown/logout/restart.

This commit introduces a macos native modal alert to let the user
decide whether to quit or not.

While testing this, I noticed that in some cases, our internal choice
to quit had no effect.  Reading the fine print of NSApp::stop, it sounds
like calling it from a modal context will only stop a modal rather then
exit out of NSApp::run, so we explicitly bounce through an event
callback to try to make it exit from the right place.

I'm not 100% convinced by this.  I've left some debug prints in for
now to see if those give some insight in the future.

refs: https://github.com/wez/wezterm/issues/2944
2023-01-12 16:49:19 -07:00
Wez Furlong
30f8c0151f
docs: changelog for https://github.com/wez/wezterm/pull/2946 2023-01-12 09:10:26 -07:00
Wez Furlong
5f0e52cb5f docs: add version info to hide_mouse_cursor_when_typing 2023-01-12 08:08:42 -08:00
ProspectPyxis
0b60539f4d docs: document new config option 2023-01-12 08:08:42 -08:00
ProspectPyxis
087a3cef9a feat: hide_mouse_cursor_when_typing config option 2023-01-12 08:08:42 -08:00
Wez Furlong
b86f5365a1
sync color schemes 2023-01-11 16:30:58 -07:00
Wez Furlong
dceef030b9
docs: clarify native macos full screen mode
refs: https://github.com/wez/wezterm/issues/2697#issuecomment-1371560416
2023-01-11 10:45:01 -07:00
Wez Furlong
349c2ed5d5
docs: changelog for https://github.com/wez/wezterm/pull/2928 2023-01-11 09:10:22 -07:00
NBonaparte
1999d2f0fc x11: determine active screen by using max intersecting area with active window 2023-01-11 08:07:52 -08:00
NBonaparte
5d5efa04fc x11: use TranslateCoordinates to get the root coordinates of focused window 2023-01-11 08:07:52 -08:00
NBonaparte
f77763275f x11: clean up active screen detection 2023-01-11 08:07:52 -08:00
NBonaparte
e31ff587f9 x11: implement active screen detection 2023-01-11 08:07:52 -08:00
Wez Furlong
890bff7faf
macos: add version info to system name 2023-01-10 18:58:35 -07:00
Wez Furlong
c65db44d3e
config: fix typo in error message
refs:  https://github.com/wez/wezterm/issues/2932
2023-01-10 06:46:49 -07:00
Wez Furlong
c19b65054f
gui: include x11 window manager in connection name 2023-01-09 16:22:48 -07:00
Wez Furlong
81f1979cd4
gui: describe connection and show it in debug overlay
Also helpful to understand the user's environment in problem reports
2023-01-09 15:59:54 -07:00
Wez Furlong
f268964a65
gui: add target triple to debug overlay
This helps to understand the OS in user reports
2023-01-09 15:52:16 -07:00
Wez Furlong
4ec428ff75
config: allow using bright but not bold text when brightening text
In https://github.com/wez/wezterm/issues/2932 the user desired to have
brightened text without the boldness, as they were accustomed to that
behavior in a couple of other terminal emulators.

This commit changes the `bold_brightens_ansi_colors` from a simple
boolean to a tristate that allows for not changing the brightness,
changing the brightness, and changing the brightness while adjusting
the boldness down to normal levels.

boolean values are accepted for backwards compatibility.
2023-01-09 15:19:17 -07:00
Wez Furlong
37055d2fab
expose some mux domain stuff to lua
refs: https://github.com/wez/wezterm/issues/2933
2023-01-09 08:38:05 -07:00
Wez Furlong
d34297cd2c
update base64, work around another batch of breaking API changes
closes: https://github.com/wez/wezterm/pull/2931
2023-01-08 18:49:45 -07:00
Wez Furlong
c9a0537b7b
palette: fix min width
This avoids a jarring situation where the width rubber-bands to fit
a run of narrower text when scrolling down through the list of options.

refs: https://github.com/wez/wezterm/issues/1485
2023-01-08 07:58:23 -07:00
Wez Furlong
0c7aeb90c6
cargo update 2023-01-08 07:46:31 -07:00
Manpreet Singh
67896f67f5 Add Fedora 37 nightly builds 2023-01-02 15:51:14 -08:00
Wez Furlong
7c88674413
ci: another pass at tumbleweed 2022-12-31 23:44:04 -07:00
Wez Furlong
7b6aad6884
ci: make fix tumbleweed build 2022-12-31 22:38:59 -07:00
Wez Furlong
fc481106af
windows: avoid panic when minimizing w/ WebGpu
```
thread 'main' panicked at 'Error in Surface::configure: Both `Surface` width and height must be non-zero. Wait to recreate the `Surface` until the window has non-zero area.', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.14.0\src\backend\direct.rs:274:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

refs: https://github.com/wez/wezterm/issues/2881
2022-12-30 08:52:01 -07:00
Wez Furlong
130990480f
cargo update 2022-12-30 08:50:10 -07:00
Wez Furlong
aefbb6b4a0
deps: update ntapi to 0.4
Avoids:

```
warning: the following packages contain code that will be rejected by a future version of Rust: ntapi v0.3.7
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 36`
```
2022-12-30 08:37:53 -07:00
Wez Furlong
8b05fdba84
ci: apparently GH_TOKEN is what it really should be 2022-12-27 10:10:49 -07:00
Omochice
f2632c32fe Fix typo 2022-12-27 09:10:36 -08:00
Wez Furlong
040fa07938
Tweak labels in the menubar/command palette
refs: https://github.com/wez/wezterm/issues/1485
2022-12-26 16:56:23 -07:00
Wez Furlong
a31ba8738c
ssh: respect AddressFamily for environments with broken ipv6
We have to manually connect for this to work well across both
underlying libraries. libssh in particular doesn't support it
at all.

refs: https://github.com/wez/wezterm/issues/2893
2022-12-26 16:18:18 -07:00
Wez Furlong
ff2caf4f66
cargo update 2022-12-25 23:30:13 -07:00
Wez Furlong
c39bbbb451
docs: changelog for https://github.com/wez/wezterm/issues/2782
refs: https://github.com/wez/wezterm/pull/2889
2022-12-25 06:03:40 -07:00
Abdirahman Ahmed Osman
e8886752e8
Add the hidden alias -e for the start subcommand. (#2889)
* Add the hidden alias `-e` for the `start` subcommand.

resolves: 2782

* add alias description to help text

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2022-12-24 16:28:59 -07:00
Wez Furlong
378853f5a5
palette: add icons for a number of entries
refs: https://github.com/wez/wezterm/issues/1485
2022-12-24 16:26:06 -07:00
Wez Furlong
b2e694032f
box model: improve max width constraint for more complex elements
Do a better job at constraining elements with multiple children
to the appropriate width
2022-12-24 16:25:48 -07:00
Wez Furlong
b52ccfe36a
palette: adjust group prefix when menubar is empty
Avoid printing `: ` at the start of the line

refs: https://github.com/wez/wezterm/issues/1485
2022-12-24 08:17:24 -07:00
Wez Furlong
b1c3103a08
macos: update menubar when the config reloads
This is moderately painful to do, because of some objc/cocoa lifetime
concern that causes a crash when attempting to simply replace the
entire menubar, so we try to find/update items instead.

refs: https://github.com/wez/wezterm/issues/1485
2022-12-24 00:10:04 -07:00