Commit Graph
8128 Commits
Author SHA1 Message Date
Wez Furlong 9bf30b8dd6 docs: fix mistake with PATH example
closes: https://github.com/wez/wezterm/issues/5967
2024-09-15 08:24:26 -07:00
Wez Furlong b3d1885187 cargo update 2024-09-15 08:18:46 -07:00
Wez Furlong da3df95114 deps: glium to 0.35
Not sure that this has any impact on us, as the changelog says
that the only change upstream was that glutin was updated.
We don't use glium with glutin, so probably a NOP?
2024-09-15 08:17:51 -07:00
Wez Furlong 09ac8c5377 wgpu -> 22.1
Tested on X11 and Wayland via weston and seems to work

closes: https://github.com/wez/wezterm/pull/5814
2024-09-15 05:56:56 -07:00
Dominique Martinet 24702de74a shell integration: check for saved PS1 value before using it
On bash it's possible to hit ^C before we remembered the PS1 which would
cause the shell to end up with an empty PS1, making it unclear that the
^C actually worked as there is no prompt left.

I'm not sure I understand the need to mess with the variable every time
(could just add the OSC codes if not already present and never remove
them?), but at least make it so we don't end up with an empty prompt
line by checking the saved value isn't empty.
2024-09-15 05:47:22 -07:00
github-actions[bot] 1eddc9157f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9bb1e7571aadf31ddb4af77fc64b2d59580f9a39?narHash=sha256-Yd0FK9SkWy%2BZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84%3D' (2024-09-05)
  → 'github:NixOS/nixpkgs/01f064c99c792715054dc7a70e4c1626dbbec0c3?narHash=sha256-3//V84fYaGVncFImitM6lSAliRdrGayZLdxWlpcuGk0%3D' (2024-09-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/8cc45e678e914a16c8e224c3237fb07cf21e5e54?narHash=sha256-hXW3csqePOcF2e/PYnpXj72KEYyNj2HzTrVNmS/F7Ug%3D' (2024-09-07)
  → 'github:oxalica/rust-overlay/e9f8641c92f26fd1e076e705edb12147c384171d?narHash=sha256-YfLRPlFZWrT2oRLNAoqf7G3%2BNnUTDdlIJk6tmBU7kXM%3D' (2024-09-14)
2024-09-14 17:25:31 -07:00
Wez Furlong 3a4125e728 docs: changelog for #5964 2024-09-14 11:45:10 -07:00
Greg Kuruc bc2f3668a6 fix: add short circuit to set active pane 2024-09-14 11:43:32 -07:00
Wez Furlong 78849cc478 docs: changelog for #5996 2024-09-14 11:37:18 -07:00
x3roandWez Furlong 6a2e356156 Validate scrollback_lines to avoid crashes (#5996)
* Validate scrollback_lines to avoid crashes

I started using wezterm today, and I immediately tried to configure it
to use "infinite scrollback", as I use in iTerm2. From the configuration
I couldn't tell if there was a way to do this, so I just set it to a
really large number, hoping that would work. Interestingly this works
for very large numbers when the config is just being reloaded while the
terminal is running, but if you then try to restart the application it
crashes (tried to allocate like 100PB or something).

I then came across #1342 and thought "that's seems a bit too involved",
and decided that I probably don't need infinite scrollback, but just
kind of a large number. Through fair dice roll I determined `one billion - 1`
will probably suffice.

Now, this might not be the best solution, so I'm happy to get some feedback.
I was also thinking that it would be nice if one could just set it to `0`,
and then the applicatio determines a suitably large number for the amount of
RAM available, but a) I wasn't sure how this would be best implemented in the
confines of the current architecture, and b) I wasn't sure if it would be well
received.

Long story short, happy to hear your feedback.

* simplify slightly

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2024-09-14 11:33:53 -07:00
Wez Furlong 02c6f5d545 docs: changelog for #5883 2024-09-14 11:31:32 -07:00
joncrangle ab9b9d9423 Remove trailing sZs if exists 2024-09-14 11:30:51 -07:00
github-actions[bot] 822a7dddbc flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6e14bbce7bea6c4efd7adfa88a40dac750d80100?narHash=sha256-pFSxgSZqZ3h%2B5Du0KvEL1ccDZBwu4zvOil1zzrPNb3c%3D' (2024-07-20)
  → 'github:NixOS/nixpkgs/9bb1e7571aadf31ddb4af77fc64b2d59580f9a39?narHash=sha256-Yd0FK9SkWy%2BZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84%3D' (2024-09-05)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/b7996075da11a2d441cfbf4e77c2939ce51506fd?narHash=sha256-gYGX9/22tPNeF7dR6bWN5rsrpU4d06GnQNNgZ6ZiXz0%3D' (2024-07-20)
  → 'github:oxalica/rust-overlay/8cc45e678e914a16c8e224c3237fb07cf21e5e54?narHash=sha256-hXW3csqePOcF2e/PYnpXj72KEYyNj2HzTrVNmS/F7Ug%3D' (2024-09-07)
2024-09-14 10:55:32 -07:00
Wez Furlong b9eda6d920 docs: changelog for #5981 2024-09-14 10:54:41 -07:00
Sean Estabrooks 100b85dec9 Remove mux-server race condition.
New changes were being lost, and not sent to the
client, if they occurred during the time previous
updates were being processed.
2024-09-14 10:52:50 -07:00
Wez Furlong 6302e976a4 docs: changelog for #5518 2024-09-14 10:50:15 -07:00
Gracjan GóreckiandWez Furlong 137a97bf65 #5518: handling panic in copy_and_paste.rs line 105 (#6004)
* #5518: handling panic in copy_and_paste.rs line 105

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2024-09-14 10:48:35 -07:00
Wez Furlong fed0e3926e dependabot: turn off cargo updates
They're never as good as running cargo update
2024-09-14 10:40:32 -07:00
Wez Furlong c26b6a307b docs: changelog for #6135 2024-09-14 09:23:28 -07:00
Sean Estabrooks 9668fa9481 Don't exit-program on X11 selection-event protocol errors
There are situations where transient xcb errors can be generated
  in regard to copy/paste selection.  One example was reported
  in connection with "wl-clip-persist" in issue #6128.  And another
  in issue #5482.

  But there's no reason for us to terminate in response, so catch
  and report any selection-related errors, as per code review in
  PR  #6135
2024-09-14 09:21:01 -07:00
Wez Furlong 5212cd4c1d docs: changelog for #6103 2024-09-14 09:19:37 -07:00
Sean Estabrooks c3fd4b068c Address some lint warnings from Clippy 2024-09-14 09:18:24 -07:00
Sean Estabrooks 1e4dcf0244 Don't pass ProxyCommand, just look it up
It doesn't make much sense to pass this value, especially
after adding the ProxyUseFDpass functionality, which
accesses the config directly anyway.
2024-09-14 09:18:24 -07:00
Sean Estabrooks caf450b873 Implement ProxyUseFDpass for ssh
This allows the ProxyUseFDpass ssh config option, to be
used on Linux and Mac OS.  This was requested in
enhancement issue #6093
2024-09-14 09:18:24 -07:00
Wez Furlong 43d221f52f docs: format 2024-09-14 08:35:31 -07:00
Wez Furlong 94a0466d6f add ubuntu 24.04 arm to cirrus, tweak install instructions
refs: https://github.com/wez/wezterm/pull/5978
2024-09-14 08:34:53 -07:00
nburlett abf748095d Add links to Ubuntu24 nightly .deb images 2024-09-14 08:28:28 -07:00
Wez Furlong 641014fa89 docs: changelog for #6012 2024-09-14 08:27:14 -07:00
SeanandSean Estabrooks e5387997ba Restrict bell events to the proper window. (#6012)
* Restrict bell events to the proper window.

As per the comment in mod.rs, bell events are sent to
all windows; not just the window containing the pane
which generated the event.

To prevent each bell ringing multiple times, the window
event handler must check if it has the pane, and ignore
the bell event if it doesn't.

This fixes bug #5985

Co-authored-by: Sean Estabrooks <sean.estabrooks@eztux.com>
2024-09-14 08:25:44 -07:00
C.D. MacEachern 2bb1e757c0 Update appearance.md docs to clarify TOML is used
Clarify that these files are in TOML format, and add a link to TOML.
2024-09-14 08:20:54 -07:00
Wez Furlong 51fddb3484 docs: changelog for #6063 2024-09-14 08:19:57 -07:00
Rian McGuire 024a8eebb5 Handle non-sRGB displays on macOS 2024-09-14 08:18:50 -07:00
mozumasu 3fc45caf1f fix: Correctly rearrange lines in the modified diffs 2024-09-14 07:39:33 -07:00
mozumasu f1f87df044 fix: docs typos 2024-09-14 07:39:33 -07:00
Silas Bue Handgaard b9c34ce7c7 fix: link to launcher menu
The link was pointing to the top of the page instead of the correct section.
2024-09-14 07:38:03 -07:00
Wez Furlong dd53cee8d8 docs: changelog for #6084 2024-09-14 06:56:38 -07:00
Sean Estabrooks 030bc46e30 Avoid potential panic, when starting in Wayland.
As per the documentation for the OutputState info method:

/// This may be none if the output has been destroyed or the
/// compositor has not sent information about the output yet.

Unwrapping its return has lead to crashes at startup, which to
the user can appear as WezTerm refusing to start.
2024-09-14 06:55:27 -07:00
Wez Furlong d7ede9fb04 cairo: fix unexpected cfg condition value
This crate references features that were not defined in Cargo.toml.
Add those features, even though we don't use them, so that we are
not warned to death and don't drown in the noise.
2024-09-14 06:53:27 -07:00
Wez Furlong c0649ad4bb remove cfg_attr(feature = "cargo-clippy" noise
I never liked clippy for dropping turds like this throughout the
code. I'm glad it is no longer required, but now rust is warning
about this syntax being redundant.
2024-09-14 06:49:13 -07:00
Wez Furlong 45ec2464e5 docs and related fix for #6099
We should avoid nudging the scrollback position when there is no
scrollback allowed in this other case as well.

refs: https://github.com/wez/wezterm/pull/6099
2024-09-14 06:42:10 -07:00
Till Bungert f911e48a95 fix: only change stable row offset if screen has scrollback 2024-09-14 06:37:36 -07:00
Antoine Cotten bcf77a711c shell-integration: be resilient to nounset 2024-09-14 06:33:59 -07:00
Yerke Tulibergenov 30345b36d8 fix typo in CONTRIBUTING.md 2024-08-12 21:57:03 -07:00
Wez Furlong 0ac1e948c5 docs: changelog for #5923 #5802 2024-08-11 11:29:22 -07:00
blukai a0a415d1cb improve x11 startup times
related issue: wez#5802

requesting `GetScreenResourcesCurrent` instead of `GetScreenResources`
brings startup times down from 1.5 seconds to 30 microseconds on my
machine (measured with dumb printlns).

according to some findings `GetScreenResourcesCurrent` may return
nothing, so i kept `GetScreenResources` there as a fallback, just in
case, although I'm not 100% sure that it's necessary. see:
- https://github.com/qt/qtbase/blob/c234700c836777d08db6229fdc997cc7c99e45fb/src/plugins/platforms/xcb/qxcbscreen.cpp#L963
- https://github.com/qt/qtbase/blob/c234700c836777d08db6229fdc997cc7c99e45fb/src/plugins/platforms/xcb/qxcbconnection_screens.cpp#L390

also worth to note that i3 does not rely on
`xcb_randr_get_screen_resources`, but only on
`xcb_randr_get_screen_resources_current`, see:
- https://github.com/search?q=repo%3Ai3%2Fi3%20get_screen_resources&type=code
2024-08-11 11:28:35 -07:00
Wez Furlong 56a27e93a9 cargo update
plus some noise around the image crate api evolving and deprecating
some type aliases.
2024-07-30 08:27:27 -07:00
Wez Furlong 9f5c2adb29 docs: changelog for #5750 #5871 2024-07-30 07:45:10 -07:00
Thayne McCombs 03407cae99 fix: Use cols not rows for left margin bound
The location of the left margin should depend on the width, not the
height.

Fixes: #5750
2024-07-30 07:40:42 -07:00
Wez Furlong 7e8fdc118d docs: changelog for #4924 2024-07-22 08:09:56 -07:00
Leszek Swirski fef52df952 Add a CloseWithoutClear copy mode key assignment (#4924)
* Add a CloseWithoutClear copy mode key assignment

Closing the copy overlay currently unconditionally clears the viewport,
in particular resetting scroll. For the search overlay, we don't
necessarily want to scroll back to the prompt after finding a match --
indeed, the old search overlay (which didn't use copy mode) had this
behaviour.

Add a CloseWithoutClear key assignment which has this desired behaviour,
and make it the default for ESC in search mode.

* Change CloseWithoutClear into normal Close, and add ResetViewport

* Remove ResetViewport, add helper for keys
2024-07-22 08:06:54 -07:00