Commit Graph
6861 Commits
Author SHA1 Message Date
ir_ae da7e29df2d fix: wezterm cli activate-pane-direction now repaints (#3303)
Closes #2879
2023-03-22 21:36:46 -07:00
Wez Furlong 2b9bf36eb6 docs: add --help output from various wezterm cli subcommands 2023-03-22 20:44:15 -07:00
Wez Furlong 287026cfa0 rustfmt 2023-03-22 20:05:25 -07:00
Wez Furlong dc36fe18f4 term: adjust logical line wrapping behavior
Really, this is adjusting the logical line breaking behavior, or the
lack thereof.

The situation is this: conpty can decided to reinterpret and flush
large sections of its buffer as a continuous stream of unbroken
characters with no breaks when it repaints the full screen.

When we receive such an update, we see it as one long logical line,
and when we subsequently select multiple lines we can run into the
maximum logical line length and insert invalid synthetic line breaks
into the data that we send to the clipboard.

This commit adjusts the wrapping logic at the time that we receive
the text so that we don't tag the line as a logical line continuation
if:

* The alt screen is active. Full screen apps will re-render on resize
  anyway, and we don't reflow long lines on resize either for the same
  reasons

* If we are talking to ConPTY:
     * If the last character in the line is not alphanumeric or
       punctuation (in other words: it doesn't look plausibly like
       text that should be a line continuation).

refs: #3278
refs: #3177
2023-03-22 19:13:26 -07:00
Wez Furlong 1a32908beb fix lua string escaping in wezterm show-keys
We didn't render stuff like this correctly:

```
{ key = "{", mods = "SHIFT|CMD", action = wezterm.action.SendString("\2p") },
```

refs: https://github.com/wez/wezterm/issues/3326
2023-03-22 18:49:47 -07:00
Wez Furlong b5c945fe48 docs: updated window_decorations 2023-03-22 18:24:30 -07:00
Wez Furlong 69f9e1a429 docs: changelog for #3330 2023-03-22 18:07:29 -07:00
Wez Furlong c66014d36e cargo update 2023-03-22 18:03:45 -07:00
Noé Froidevaux 073ea55a4c Fix transparent title bar on macOS with window_decorations = "RESIZE|MACOS_FORCE_DISABLE_SHADOW" (#3330)
Fix transparent title bar
2023-03-22 18:03:25 -07:00
Wez Furlong 4913817067 allow json encoding wezterm.GLOBAL entries 2023-03-22 09:30:02 -07:00
Wez Furlong b384dc999f fix delegation of --skip-config to wezterm-gui
refs: #3325
2023-03-22 07:24:02 -07:00
Benoit de Chezelles f37c3ae5da Fix some documentation pages (#3321)
* Update ssh_backend.md

* Update normalize_output_to_unicode_nfc.md

* Update strikethrough_position.md

* Update underline_position.md

* Update underline_thickness.md

* Fix lua config docs titles to be formatted as inline code

* Mention how suggested alphabet for quick select is choosen

* Mention update-status and update-right-status for status_update_interval

* Fix docs for all keyassignments to be formatted as inline code

* Fix Lua object index titles

* Fix titles of `wezterm.*` module index pages

* Fix title of `Color` object & `wezterm.color` functions

We reduce titles from h2 to h1 because mkdocs defaults the page title to
the page file name if no h1 header is found.

* Unify title of all object methods

* Add index page for Gui events
2023-03-22 06:36:03 -07:00
Wez Furlong c30ff69d26 docs: changelog for #3227 2023-03-21 22:11:22 -07:00
Wez Furlong f0a86602b5 Apply suggestions from code review 2023-03-21 22:09:14 -07:00
eaglgenes101 4ee16328b8 Changed config option name to mouse_wheel_scrolls_tabs, made it default to true (matching current behavior) 2023-03-21 22:09:14 -07:00
eaglgenes101 19cf64edcf Cargo formatted 2023-03-21 22:09:14 -07:00
eaglgenes101 ea176d8212 Add docs for new scroll_tabs config option 2023-03-21 22:09:14 -07:00
eaglgenes101 8308887d21 Add config option for scrolling the tab bar 2023-03-21 22:09:14 -07:00
Wez Furlong 8755e731d3 add __len and __pairs metamethods to wezterm.GLOBALS
Fixes this:

```
> wezterm.GLOBAL.foo = {"bar", "baz"}
> wezterm.GLOBAL.foo
[
    "bar",
    "baz",
]
> #wezterm.GLOBAL.foo
runtime error: [string "repl"]:1: attempt to get length of a userdata value (field 'foo')
stack traceback:
        [string "repl"]:1: in main chunk
>
```

and allows this:

```
> for k, v in pairs(wezterm.GLOBAL.foo) do print(k, v) ; end
```
2023-03-21 21:04:52 -07:00
Wez Furlong 00ada33fe2 ci: persuade zypper to install deps in get-deps 2023-03-21 20:01:57 -07:00
Wez Furlong fd7b6490e6 get-deps: set -e
Hoping to surface CI issues more loudly
2023-03-21 19:45:04 -07:00
Wez Furlong 73a1c3b0d3 docs: add --help output pages to the CLI reference 2023-03-21 18:44:26 -07:00
Wez Furlong 3e33610840 minor update to zsh completion 2023-03-21 18:42:17 -07:00
Wez Furlong 30f09fd1f6 docs: improve color scheme page titles 2023-03-21 17:00:53 -07:00
Wez Furlong cd4a41dfcb docs: simplify scheme aliases a bit more 2023-03-21 14:48:06 -07:00
Wez Furlong d2253e8e09 docs: fix handling of color scheme aliases 2023-03-21 14:44:13 -07:00
Wez Furlong b34f5e1a73 docs: boost font page in search index 2023-03-21 12:53:54 -07:00
Wez Furlong 5a738446e2 docs: allow search to find 'changelog'
It's a little bit inelegant, but the mkdocs-material folks seem to have
a nicer solution in the works, so this will do for now.

closes: https://github.com/wez/wezterm/issues/3305
refs: https://github.com/squidfunk/mkdocs-material/issues/3174
2023-03-21 12:29:32 -07:00
Wez Furlong 369c8b01bb docs: use strict mode to hopefully catch invalid links 2023-03-21 09:34:06 -07:00
Wez Furlong 19c9bc84f2 docs: simplify templating of install pages 2023-03-21 09:31:49 -07:00
Wez Furlong 0b83c97427 keys: avoid scrolling to bottom when CapsLock is pressed
refs: https://github.com/wez/wezterm/issues/3306
2023-03-21 09:17:24 -07:00
Wez Furlong 601e32e625 rustfmt 2023-03-21 08:08:03 -07:00
Wez Furlong d983e53e91 linuxbrew: 20 rather than 22
refs: #3308
2023-03-21 08:07:00 -07:00
Wez Furlong c781be3124 wezterm-ssh: fix parsing of proxycommand
refs: https://github.com/wez/wezterm/issues/3307
2023-03-21 08:04:59 -07:00
David Martos b4f4264b00 Update wezterm-linuxbrew.rb.template
Hello, I encountered some issues when upgrading to latest version with Homebrew. I believe this would be the required change is that correct?
Or should 20.04 be used? 22.04 is LTS as well.
2023-03-21 07:49:43 -07:00
Wez Furlong 40081cb573 docs: update a bunch of since lines to new macro 2023-03-20 22:54:27 -07:00
Wez Furlong 3b8551e03c docs: update nightly features -> current release 2023-03-20 21:29:43 -07:00
Wez Furlong e8805a9db0 docs: fix fedora37 stable download link 2023-03-20 17:58:30 -07:00
Wez Furlong 7f7a417f84 docs: update linux releases 2023-03-20 17:54:30 -07:00
Wez Furlong 8c4d71d516 Docs: update changelog for 20230320-124340-559cb7b0 release 2023-03-20 17:36:39 -07:00
Wez Furlong 559cb7b0a7 schemes: we now allow using any of the alias names, so refine docs 2023-03-20 12:43:40 -07:00
Wez FurlongandThomas Croft dd8d4a04f4 sync from https://github.com/folke/tokyonight.nvim
Pull in the enhanced scheme that includes wezterm metadata and colors.

Co-authored-by: Thomas Croft <103956335+thomascft@users.noreply.github.com>

closes: https://github.com/wez/wezterm/pull/3208
2023-03-20 12:42:09 -07:00
Wez Furlong 775bad32e1 sync color schemes 2023-03-20 12:25:44 -07:00
Wez Furlong eff64feb1b sync-color-schemes: handle renamed schemes slightly better
We no longer completely forget about the old incarnation,
and we now rename all historical aliases and allow their
use.
2023-03-20 12:24:00 -07:00
Wez Furlong 84fbaa83cf sync-color-schemes: update for recent gogh schema changes 2023-03-20 11:30:12 -07:00
Wez Furlong 001a49be4c minor optimization for single-frame animated formats
Use 1-day duration for the single frame when an animated
format yields only a single frame.
2023-03-20 10:14:17 -07:00
Wez Furlong 829e5c15cf fix potential deadlock when using wezterm cli split-pane
refs: #1818
2023-03-20 07:44:13 -07:00
Wez Furlong a6f857c14f deps: update predicates for wezterm-ssh tests 2023-03-19 23:00:25 -07:00
Wez Furlong a0ec2c18b4 ci: remove some builds
GH actions has been awful slow and bogged down recently,
getting in the way of work that is more important.

This commit removes a variety of alpine builds (which are
not widely used by wezterm users), and the eldest fedora
version to free up some resources.
2023-03-19 22:47:46 -07:00
dependabot[bot] 9fb07f20cd build(deps): bump rstest from 0.16.0 to 0.17.0
Bumps [rstest](https://github.com/la10736/rstest) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/la10736/rstest/releases)
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/la10736/rstest/compare/0.16.0...0.17.0)

---
updated-dependencies:
- dependency-name: rstest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-19 22:19:11 -07:00