8795 Commits
Author SHA1 Message Date
Wez Furlong f15bb186f4 macos: maybe fix window positioning for multi-monitor systems
refs: https://github.com/wez/wezterm/issues/2958
2023-01-25 18:06:46 -07:00
Wez Furlong eee340447f docs: add a bit explaining what a terminal is 2023-01-25 11:24:34 -07:00
Wez Furlong 56dad40f7c docs: add version info to newer copy mode shortcuts
https://github.com/wez/wezterm/discussions/2998
2023-01-25 07:47:02 -07:00
Wez Furlong 9d7e613cfa wezterm.GLOBAL now returns references to stored data
This smoothes out a rough edge and makes things work
more naturally.

refs: https://github.com/wez/wezterm/discussions/2983
2023-01-24 18:26:14 -07:00
Wez Furlong 6f62a0f2b1 config: capture warnings and show them in config error window
This allows deprecated and invalid fields to be surfaced more visibly
in the config error window.
2023-01-24 14:18:15 -07:00
Saurabh Charde 1d3427dc77 shell integration: check existence of hostname command before calling
base arch linux installation doesn't include `hostname` binary as it's part of
a separate `inetutils` package, use systemd `hostnamectl` which is available in
all systemd-based distributions
2023-01-24 12:21:41 -08:00
Wez Furlong 3578211282 cargo fmt 2023-01-24 12:01:14 -07:00
Wez Furlong 252817b0b8 config: add wezterm.config_builder
config_builder helps to make issues more visible/useful in the case
where you may have typod a config option, or otherwise assigned
an incorrect value.
2023-01-24 11:57:07 -07:00
Wez Furlong dd28dbae0a ci: unpin rust and mdbook versions in pages workflow 2023-01-23 19:06:35 -07:00
azzamsa b74cd91789 docs: use new gelatyx file-list option 2023-01-23 17:54:48 -08:00
Wez Furlong 23c0b0f70f fix typo in logging
splace -> space
2023-01-23 18:23:56 -07:00
Wez Furlong 2b1f152e90 ci: try a bit harder to make doc builds work on PRs
refs: https://github.com/wez/wezterm/pull/2969
2023-01-23 10:58:03 -07:00
Wez Furlong e725d68f08 docs: shell-integration: cover the new built-in user-vars 2023-01-23 10:50:49 -07:00
Wez Furlong d8ffbd6b31 shell integration: set some handy user vars by default 2023-01-23 09:29:55 -07:00
Wez Furlong 748cc67a18 docs: add a brief bit about workspaces
refs: https://github.com/wez/wezterm/issues/1223
2023-01-22 23:52:00 -07:00
Wez Furlong 75b3c03d6d docs: start recipes section
refs: https://github.com/wez/wezterm/issues/1223
2023-01-22 23:35:22 -07:00
Wez Furlong ed2b983c57 docs: add note about multiplexing and color schemes
refs: https://github.com/wez/wezterm/issues/1268
2023-01-22 22:06:33 -07:00
Wez Furlong 92eb2e806a cargo update 2023-01-22 22:02:26 -07:00
Wez Furlong 9350795f33 x11: always update selection ownership
refs: https://github.com/wez/wezterm/issues/2926
2023-01-21 18:24:29 -07:00
Wez Furlong f97a36ea5f cargo fmt 2023-01-21 16:51:06 -07:00
Wez Furlong 36bf634e93 bleh, fix unix build
refs: https://github.com/wez/wezterm/issues/2991
2023-01-21 15:51:26 -07:00
Wez Furlong 27ae47d996 mention that wayland doesn't allow --position
refs: #2993
2023-01-21 15:37:07 -07:00
Wez Furlong 7b23e84784 fix build on windows
refs: https://github.com/wez/wezterm/issues/2991
2023-01-21 15:36:04 -07:00
Wez Furlong 33f25e9ce6 reduce latency when heavily using foreground process info
The tcgetpgrp call appears to have high variance in latency, ranging
from 200-700us on my system.

If you have 10 tabs and mouse over the tab bar, that's around 7ms
spent per frame just figuring out the foreground process; that doesn't
include actually extracting the process executable or current working
directory paths.

This was exacerbated by the mouse move events triggering a tab bar
recompute on every pixel of mouse movement.

This commit takes the following steps to resolve this:

* We now only re-compute the tab bar when the UI item is changed by
  a mouse movement
* A simple single-item cache is now used on unix that allows the caller
  to proceed quickly with stale-but-probably-still-mostly-accurate data
  while queuing up an update to a background thread which can absorb
  the latency.

The result of this is that hovering over several tabs in quick
succession no longer takes a noticeable length of time to render the
hover, but the consequence is that the contents of a given tab may be
stale by 300-400ms.

I think that trade-off is worth while.

We already have a similar trade-off on Windows, although we don't
yet do the updates in a different thread on Windows. Perhaps in
a follow up commit?

refs: https://github.com/wez/wezterm/issues/2991
2023-01-21 15:25:57 -07:00
Wez Furlong ca7024aee3 ci: try harder to successfully build the docs on PRs 2023-01-21 06:38:38 -07:00
Wez Furlong 133a47a2d5 cargo update 2023-01-20 20:04:49 -07:00
Wez Furlong 9dc76b852b lua: add some more tab methods 2023-01-20 20:02:29 -07:00
Wez Furlong 0dc7d92b6c modals: invalidate window after assignment
On my mac, depending the config, I noticed that modals didn't always
render immediately; force a window invalidation after assigning to
encourage them to do so.
2023-01-20 12:09:07 -07:00
Wez Furlong 59b609f592 window:active_key_table now includes per-pane stacks
refs: https://github.com/wez/wezterm/discussions/2986
2023-01-20 07:03:19 -07:00
Wez Furlong 9a76a54081 add window activation items to palette and menubar
refs: https://github.com/wez/wezterm/issues/2973
2023-01-19 20:54:18 -07:00
Wez Furlong 523dafe757 docs: change log and docs for https://github.com/wez/wezterm/pull/2908 2023-01-19 20:14:34 -07:00
gzliew 6164b871d5 chore(wezterm-gui): Create move_to_end_of_word 2023-01-19 19:08:07 -08:00
gzliew f3c8f4c36d docs(wezterm-gui): Update docs 2023-01-19 19:08:07 -08:00
gzliew 15bb1a87a1 feat(wezterm-gui): Support move to word end 2023-01-19 19:08:07 -08:00
Wez Furlong 60922b9ea0 docs: add troubleshooting section 2023-01-19 10:44:05 -07:00
Wez Furlong c5b7786e37 add explicit SHIFT key caps to copymode docs
refs: https://github.com/wez/wezterm/pull/2911
2023-01-19 09:11:53 -07:00
Wez Furlong df423cce9a docs: css for https://github.com/wez/wezterm/pull/2911 2023-01-19 09:07:00 -07:00
Wez Furlong da1802bbed fmt docs 2023-01-19 09:07:00 -07:00
Pavel Roskin da72f452a4 Improve Copy Mode key documentation
Add the key to enter Copy Mode to the table. It may be repetitive, but it
makes the table a useful cheatsheet.

Document `y`, it was undocumented.

Use kbd tag. Capitalize all keys with modifiers for consistency. Use mixed
case names for the modifiers. Use `+` for key combinations.
2023-01-19 08:06:50 -08:00
Wez Furlong 730c41b7e3 cargo fmt 2023-01-19 07:47:37 -07:00
Wez Furlong c042005ee0 mux: try harder to use default_workspace from config
There were a couple of cases where we didn't look at the config
when deciding on the workspace name.

refs: https://github.com/wez/wezterm/issues/2981
2023-01-19 07:47:27 -07:00
Wez Furlong 5dbdd36a72 macos: implement window:focus()
refs: https://github.com/wez/wezterm/issues/2973
2023-01-18 23:25:19 -07:00
Wez Furlong 6d2b42c95e windows: implement focus method
refs: https://github.com/wez/wezterm/issues/2973
2023-01-18 23:19:22 -07:00
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