Skip to content

Commit

Permalink
docs: update a bunch of since lines to new macro
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Mar 21, 2023
1 parent 3b8551e commit 40081cb
Show file tree
Hide file tree
Showing 381 changed files with 519 additions and 494 deletions.
2 changes: 1 addition & 1 deletion ci/generate-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def scheme_link(name):
idx.write(f"Source: <{origin_url}><br/>\n")
version = scheme["metadata"].get("wezterm_version", None)
if version and version != "Always":
idx.write(f"Since: *{version}*<br/>\n")
idx.write(f"{{{{since('{version}')}}}}<br/>\n")

aliases = scheme["metadata"]["aliases"]
if len(aliases) > 1:
Expand Down
25 changes: 25 additions & 0 deletions ci/update-doc-versions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
import glob
import os
import re
import sys

NIGHTLY = '20230320-124340-559cb7b0'

NIGHTLY_UPDATE = re.compile('[Ss]ince: nightly builds only', re.MULTILINE)
OLD_SINCE = re.compile('^\*[Ss]ince: (\\S+)\*', re.MULTILINE)
OLD_SINCE_INLINE = re.compile('\(?\*?[Ss]ince: (\\S+)\*?\)?', re.MULTILINE)

for p in ["docs/**/*.md", "docs/**/*.markdown"]:
for filename in glob.glob(p, recursive=True):
with open(filename, "r") as f:
content = f.read()

adjusted = NIGHTLY_UPDATE.sub(f"Since: {NIGHTLY}", content)
adjusted = OLD_SINCE.sub("{{since('\\1')}}", adjusted)
adjusted = OLD_SINCE_INLINE.sub("{{since('\\1', inline=True)}}", adjusted)
if content != adjusted:
print(filename)
with open(filename, "w") as f:
f.truncate()
f.write(adjusted)
2 changes: 1 addition & 1 deletion docs/cli/cli/activate-pane-direction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `wezterm cli activate-pane-direction DIRECTION`

*Since: 20221119-145034-49b9839f*
{{since('20221119-145034-49b9839f')}}

*Run `wezterm cli activate-pane-direction --help` to see more help*

Expand Down
2 changes: 1 addition & 1 deletion docs/cli/cli/list-clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The meanings of the fields are:
* `WORKSPACE` - shows the active workspace for that session
* `FOCUS` - shows the pane id of the pane that has focus in that session

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

You may request JSON output:

Expand Down
2 changes: 1 addition & 1 deletion docs/cli/cli/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Each row describes a pane. The meaning of the fields are:
* `TITLE` - the pane title
* `CWD` - the current working directory associated with the pane

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

You may request JSON output:

Expand Down
2 changes: 1 addition & 1 deletion docs/cli/cli/move-pane-to-new-tab.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `wezterm cli move-pane-to-new-tab`

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

*Run `wezterm cli move-pane-to-new-tab --help` to see more help*

Expand Down
2 changes: 1 addition & 1 deletion docs/cli/cli/send-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ $ echo hello there | wezterm cli send-text

The following arguments modify the behavior:

* `--no-paste` - Send the text directly, rather than as a bracketed paste. (*Since: 20220624-141144-bd1b7c5d*)
* `--no-paste` - Send the text directly, rather than as a bracketed paste. {{since('20220624-141144-bd1b7c5d', inline=True)}}
* `--pane-id` - Specifies which pane to send the text to. See also [Targeting Panes](index.md#targeting-panes).
2 changes: 1 addition & 1 deletion docs/cli/show-keys.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `wezterm show-keys`

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}


Prints the complete set of key assignments based on your config file.
Expand Down
16 changes: 8 additions & 8 deletions docs/config/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The `color_scheme` option takes precedence over the `colors` section below,
and is mutually exclusive with it. If you want to merge/override colors
you need to use [wezterm.color.get_default_colors()](lua/wezterm.color/get_default_colors.md) and explicitly merge them.

*Since: 20220903-194523-3bb1ed61*
{{since('20220903-194523-3bb1ed61')}}

The behavior has been changed so that the `color_scheme` you have selected, if
any, is used to define the colors, and then any colors you define in the
Expand Down Expand Up @@ -135,7 +135,7 @@ config.colors = {
return config
```

*Since: 20220101-133340-7edc5b5a*
{{since('20220101-133340-7edc5b5a')}}

You may specify colors in the HSL color space, if you prefer that over RGB, by using:

Expand All @@ -151,7 +151,7 @@ config.colors = {
}
```

*Since: 20220319-142410-0fcdea07*
{{since('20220319-142410-0fcdea07')}}

Colors now also accept the following CSS-style color specifications:

Expand Down Expand Up @@ -404,7 +404,7 @@ You may add padding around the edges of the terminal area.

## Styling Inactive Panes

*since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

To make it easier to see which pane is active, the inactive panes are dimmed
and de-saturated slightly.
Expand Down Expand Up @@ -443,7 +443,7 @@ reduce it by half, and 2.0 will double the value.

![Screenshot](../screenshots/wezterm-vday-screenshot.png)

*since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

You can attach an image to the background of the wezterm window:

Expand Down Expand Up @@ -490,7 +490,7 @@ behavior and more, take a look at the more power

## Window Background Gradient

*Since: 20210814-124438-54e29167*
{{since('20210814-124438-54e29167')}}

![Gradient](../screenshots/radial-gradient.png)

Expand All @@ -499,7 +499,7 @@ for configuration information on gradients.

## Window Background Opacity

*since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

If your Operating System provides Compositing support then WezTerm is able to
specify the alpha channel value for the background content, rendering the
Expand All @@ -524,7 +524,7 @@ config.window_background_opacity = 1.0

## Text Background Opacity

*since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

When using a background image or background opacity, the image content can
have relatively low contrast with respect to the text you are trying to
Expand Down
10 changes: 5 additions & 5 deletions docs/config/default-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ in a form that you can copy and paste into your own configuration.
| `CTRL+SHIFT` | `v` | `PasteFrom="Clipboard"` |
| | `Copy` | `CopyTo="Clipboard"` |
| | `Paste` | `PasteFrom="Clipboard"` |
| `CTRL` | `Insert` | `CopyTo="PrimarySelection"` (*since: 20210203-095643-70a364eb*) |
| `CTRL` | `Insert` | `CopyTo="PrimarySelection"` {{since('20210203-095643-70a364eb', inline=True)}} |
| `SHIFT` | `Insert` | `PasteFrom="PrimarySelection"` |
| `SUPER` | `m` | `Hide` |
| `SUPER` | `n` | `SpawnWindow` |
Expand Down Expand Up @@ -61,13 +61,13 @@ in a form that you can copy and paste into your own configuration.
| `SUPER` | `h` | `HideApplication` (macOS only) |
| `SUPER` | `k` | `ClearScrollback="ScrollbackOnly"` |
| `CTRL+SHIFT` | `K` | `ClearScrollback="ScrollbackOnly"` |
| `CTRL+SHIFT` | `L` | `ShowDebugOverlay` (*Since: 20210814-124438-54e29167*)|
| `CTRL+SHIFT` | `P` | `PaneSelect` (*Since: 20220903-194523-3bb1ed61*)|
| `CTRL+SHIFT` | `U` | `CharSelect` (*Since: 20220903-194523-3bb1ed61*)|
| `CTRL+SHIFT` | `L` | `ShowDebugOverlay` {{since('20210814-124438-54e29167', inline=True)}}|
| `CTRL+SHIFT` | `P` | `PaneSelect` {{since('20220903-194523-3bb1ed61', inline=True)}}|
| `CTRL+SHIFT` | `U` | `CharSelect` {{since('20220903-194523-3bb1ed61', inline=True)}}|
| `SUPER` | `f` | `Search={CaseSensitiveString=""}` |
| `CTRL+SHIFT` | `F` | `Search={CaseSensitiveString=""}` |
| `CTRL+SHIFT` | `X` | `ActivateCopyMode` |
| `CTRL+SHIFT` | `Space`| `QuickSelect` (*since: 20210502-130208-bff6815d*) |
| `CTRL+SHIFT` | `Space`| `QuickSelect` {{since('20210502-130208-bff6815d', inline=True)}} |
| `CTRL+SHIFT+ALT` | `"` | `SplitVertical={domain="CurrentPaneDomain"}` |
| `CTRL+SHIFT+ALT` | `%` | `SplitHorizontal={domain="CurrentPaneDomain"}` |
| `CTRL+SHIFT+ALT` | `LeftArrow` | `AdjustPaneSize={"Left", 1}` |
Expand Down
2 changes: 1 addition & 1 deletion docs/config/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ to force the configuration to be reloaded.

### Configuration Overrides

*since: 20210314-114017-04b7cedd*
{{since('20210314-114017-04b7cedd')}}

`wezterm` allows overriding configuration values via the command line; here are
a couple of examples:
Expand Down
2 changes: 1 addition & 1 deletion docs/config/font-shaping.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ and you can set them in wezterm:
config.harfbuzz_features = { 'zero' }
```

*Since: 20220101-133340-7edc5b5a*
{{since('20220101-133340-7edc5b5a')}}

You can specify `harfbuzz_features` on a per-font basis, rather than
globally for all fonts:
Expand Down
2 changes: 1 addition & 1 deletion docs/config/key-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keypresses like `Control-I` to be ASCII Tab, as an example.

## xterm `modifyOtherKeys`

*Since: 20221119-145034-49b9839f*
{{since('20221119-145034-49b9839f')}}

When wezterm receives the sequence `CSI >4;Nm`, where `N` is `0`, `1` or `2`,
the keyboard encoding is changed according to
Expand Down
4 changes: 2 additions & 2 deletions docs/config/key-tables.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*Since: 20220408-101518-b908e2dd*
{{since('20220408-101518-b908e2dd')}}

In addition to the default key table defined by the `keys` configuration
option, `wezterm` supports defining additional named key tables using the
Expand Down Expand Up @@ -120,7 +120,7 @@ The stack is also cleared when the configuration is reloaded, so if you're
working on a complex key table setup and get stuck, you may be able to unstick
yourself by re-saving your wezterm configuration to trigger a reload.

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

When resolving a key assignment, the top of stack is first searched for a match,
and if one is not found, the next entry on the stack is searched and so on until a match is found.
Expand Down
6 changes: 3 additions & 3 deletions docs/config/keyboard-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ enable

### macOS Left and Right Option Key

*since: 20200620-160318-e00b076c*
{{since('20200620-160318-e00b076c')}}

The default behavior is to treat the left `Option` key as the `Alt` modifier
with no composition effects, while the right `Option` key performs composition
Expand All @@ -115,7 +115,7 @@ config.send_composed_key_when_left_alt_is_pressed = false
config.send_composed_key_when_right_alt_is_pressed = true
```

*since: 20210203-095643-70a364eb*
{{since('20210203-095643-70a364eb')}}

WezTerm is now able to perform dead-key expansion when `use_ime = false`. Dead
keys are treated as composition effects, so with the default settings of
Expand All @@ -137,7 +137,7 @@ some operating systems.

### Dead Keys

*since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

By default, if you are using a layout with *dead keys* (eg: US International
layout, or a number of European layouts such as German or French) pressing
Expand Down
8 changes: 4 additions & 4 deletions docs/config/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Pay attention to the case of the text that you use and the state of the `SHIFT`

### Physical vs Mapped Key Assignments

*Since: 20220319-142410-0fcdea07*
{{since('20220319-142410-0fcdea07')}}

The `key` value can refer either to the physical position of a key on an ANSI
US keyboard or to the post-keyboard-layout-mapped value produced by a key
Expand All @@ -89,7 +89,7 @@ your config, you will need to change it to either
`{key="N", mods="CMD|SHIFT", ..}` or `{key="mapped:N", mods="CMD", ..}`
in order to continue to respect the `SHIFT` modifier.

*Since: 20220408-101518-b908e2dd*
{{since('20220408-101518-b908e2dd')}}

A new `key_map_preference` option controls how keys without an explicit `phys:`
or `mapped:` prefix are treated. If `key_map_preference = "Mapped"` (the
Expand Down Expand Up @@ -117,7 +117,7 @@ rather than one of the other key values.

### Leader Key

*Since: 20201031-154415-9614e117*
{{since('20201031-154415-9614e117')}}

A *leader* key is a a modal modifier key. If leader is specified in the
configuration then pressing that key combination will enable a virtual `LEADER`
Expand Down Expand Up @@ -157,7 +157,7 @@ config.keys = {

### VoidSymbol

*Since: 20210814-124438-54e29167*
{{since('20210814-124438-54e29167')}}

On X11 systems, If you decide to change certain keys on the keyboard to
`VoidSymbol` (like `CapsLock`), then you can utilize it as a `LEADER` or any
Expand Down
4 changes: 2 additions & 2 deletions docs/config/launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ Your shell is determined by the following rules:
a login shell. A login shell generally loads additional startup files
and sets up more environment than a non-login shell.

*Since: 20210502-154244-3f7122cb*: instead of passing `-l` to the shell, wezterm
{{since('20210502-154244-3f7122cb', inline=True)}}: instead of passing `-l` to the shell, wezterm
will spawn the shell as `-$SHELL` to invoke it as a login shell.

Note: if you have recently changed your shell using `chsh` and you
have `$SHELL` set in the environment, you will need to sign out and
sign back in again for the environment to pick up your new `$SHELL`
value.

*Since: 20220903-194523-3bb1ed61*: wezterm will now always resolve the shell via the
{{since('20220903-194523-3bb1ed61', inline=True)}}: wezterm will now always resolve the shell via the
password database.

=== "On Windows Systems"
Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/ExecDomain.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ExecDomain

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

An `ExecDomain` defines a local-execution multiplexer domain. In simple terms,
rather than directly executing the requested program, an `ExecDomain` allows
Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/LocalProcessInfo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `LocalProcessInfo`

*Since: 20220101-133340-7edc5b5a*
{{since('20220101-133340-7edc5b5a')}}

`LocalProcessInfo` represents a process running on the local machine.

Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/get_title.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:get_title()

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Returns the tab title as set by `tab:set_title()`.

Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/index.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MuxTab

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

`MuxTab` represents a tab that is managed by the multiplexer.

Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/panes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:panes()

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Returns an array table containing the set of [Pane](../pane/index.md) objects
contained by this tab.
Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/panes_with_info.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:panes_with_info()

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Returns an array table containing an extended info entry for each of the panes
contained by this tab.
Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/set_title.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:set_title(TITLE)

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Sets the tab title to the provided string.

Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/set_zoomed.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:set_zoomed(bool)

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Sets the zoomed state for the active pane within this tab.

Expand Down
2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/tab_id.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `tab:tab_id()`

*Since: 20220624-141144-bd1b7c5d*
{{since('20220624-141144-bd1b7c5d')}}

Returns the tab id

2 changes: 1 addition & 1 deletion docs/config/lua/MuxTab/window.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tab:window()

*Since: 20220807-113146-c2fee766*
{{since('20220807-113146-c2fee766')}}

Returns the [MuxWindow](../mux-window/index.md) object that contains this tab.

Loading

0 comments on commit 40081cb

Please sign in to comment.