From 8f4d265d2ef6c993f9503788dfa0f522f90fff6c Mon Sep 17 00:00:00 2001 From: Carlos Parada Date: Tue, 17 Jun 2025 18:39:52 -0700 Subject: [PATCH 1/2] Update index.mdx Grammar fix --- docs/config/keybind/index.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/config/keybind/index.mdx b/docs/config/keybind/index.mdx index e6379db1..21727bd0 100644 --- a/docs/config/keybind/index.mdx +++ b/docs/config/keybind/index.mdx @@ -88,14 +88,14 @@ Make the keybind apply to all terminal surfaces. By default, keybinds only apply to the focused terminal surface. If this is true, then the keybind will be sent to all terminal surfaces. This only applies to actions that are surface-specific. For actions that -are already global (i.e. `quit`), this prefix has no effect. +are already global (e.g. `quit`), this prefix has no effect. #### `global:` Make the keybind global. By default, keybinds only work within Ghostty and under the right conditions (application focused, sometimes terminal focused, etc.). If you want a keybind to work -globally across your system (i.e. even when Ghostty is not focused), +globally across your system (. even when Ghostty is not focused), specify this prefix. This prefix implies `all:`. Note: this does not work in all environments; see the additional notes below for more information. @@ -160,6 +160,6 @@ for a complete list. Ghostty supports dozens of actions. |--------|-------------| | `ignore` | Do nothing, ignore the key input. This can be used to black hole certain inputs to have no effect and no encoding. | | `unbind` | Remove the binding. This makes it so the previous action is removed, and the key will be sent through to the child command if it is printable. | -| `text:text` | Send a string. Uses Zig string literal syntax. i.e. `text:\x15` sends Ctrl-U. By using a prefix of `\x1b[` you can send control sequences but the convenience actions `csi:` and `esc:` are recommended instead. | -| `csi:text` | Send a CSI sequence. i.e. `csi:A` sends "cursor up". | -| `esc:text` | Send an escape sequence. i.e. `esc:d` deletes to the end of the word to the right. | +| `text:text` | Send a string. Uses Zig string literal syntax. e.g. `text:\x15` sends Ctrl-U. By using a prefix of `\x1b[` you can send control sequences but the convenience actions `csi:` and `esc:` are recommended instead. | +| `csi:text` | Send a CSI sequence. e.g. `csi:A` sends "cursor up". | +| `esc:text` | Send an escape sequence. e.g. `esc:d` deletes to the end of the word to the right. | From 7871a9d95c29fb5fe815290179901cad23c328f0 Mon Sep 17 00:00:00 2001 From: Carlos Parada Date: Tue, 17 Jun 2025 18:42:05 -0700 Subject: [PATCH 2/2] This use was correct --- docs/config/keybind/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/keybind/index.mdx b/docs/config/keybind/index.mdx index 21727bd0..7b48355e 100644 --- a/docs/config/keybind/index.mdx +++ b/docs/config/keybind/index.mdx @@ -95,7 +95,7 @@ are already global (e.g. `quit`), this prefix has no effect. Make the keybind global. By default, keybinds only work within Ghostty and under the right conditions (application focused, sometimes terminal focused, etc.). If you want a keybind to work -globally across your system (. even when Ghostty is not focused), +globally across your system (i.e. even when Ghostty is not focused), specify this prefix. This prefix implies `all:`. Note: this does not work in all environments; see the additional notes below for more information.