Commit Graph
8149 Commits
Author SHA1 Message Date
Wez Furlong de0ecc60eb docs: changelog for #6054 2024-09-22 10:59:11 -07:00
mgpinfandWez Furlong 6a12dd1a13 Custom prompt for PromptInputLine (#6054)
* option to configure PromptInputLine prompt

- Introduces an option to set custom prompt text
- If 'prompt' not passed in parameters, default value of "> " used

* commit: update documentation for PromptInputLine

* Update docs/config/lua/keyassignment/PromptInputLine.md

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2024-09-22 10:55:55 -07:00
Wez Furlong 5a594f5165 docs: changelog for #4568 2024-09-22 09:16:25 -07:00
Wez Furlong da0a738169 rustfmt 2024-09-22 09:11:22 -07:00
Wez Furlong d7938cb6b2 wayland: handle left/right tiling too
refs: https://github.com/wez/wezterm/pull/5897
2024-09-22 09:10:15 -07:00
Aliaksandr Truš c75d300f6f feat: implement toggle_fullscreen and hide for Wayland
closes https://github.com/wez/wezterm/pull/5897
2024-09-22 09:04:43 -07:00
Aliaksandr Truš 16a8bcdd89 fix(wayland): match inner window and window frame sizes 2024-09-22 08:06:10 -07:00
Wez Furlong 1c4fdd3f71 ci: refine triggers for no-response workflow 2024-09-21 20:46:52 -07:00
Wez Furlong 62f4b44881 ci: switch no-response workflow to "official" stale workflow 2024-09-21 20:41:28 -07:00
Wez Furlong 9d4a145303 docs: changelog for #6158
closes: #6158
2024-09-21 13:52:13 -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
Wez Furlong c65dc63495 ci: missed an upload-artifact upgrade 2024-09-21 12:49:12 -07:00
Ricky Lopez 2b23b04f7d nix: output WezTerm.app on Mac
currently only the binaries are output. Build and output the .app dir so
that users can launch the app as-normal on Mac

Added code taken from
[nixos](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/terminal-emulators/wezterm/default.nix#L116-L123)
2024-09-21 12:02:03 -07:00
Wez Furlong 7b342a6b39 ci: update upload/download artifact workflows
closes: https://github.com/wez/wezterm/pull/6083
2024-09-21 12:00:03 -07:00
Wez Furlong 6c1dbc0eb2 ci: fix cachix action version 2024-09-20 20:52:15 -07:00
Wez Furlong 8983afbd52 ci: add manual dispatch to nix workflows 2024-09-20 20:50:35 -07:00
Wez Furlong abfc0b4c3a update cachix public key 2024-09-20 07:31:23 -07:00
Thomas Croft 3b981bbd91 Added: nix install docs 2024-09-20 07:31:23 -07:00
Thomas Croft 797234fddf Added: nix nightly build to cachix 2024-09-20 07:31:23 -07:00
xixishidibei 832c533c5f chore: remove redundant words in comment
Signed-off-by: xixishidibei <xixishidibei@outlook.com>
2024-09-18 06:49:17 -07:00
Andrew Gunnerson 2d0c5cddc9 shell-integration: Fix syntax error due to missing double quote
This fixes a regression introduced in commit
24702de74a.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
2024-09-15 15:32:43 -07:00
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