aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authoravaunit022023-06-04 15:20:54 +0000
committerGitHub2023-06-04 15:20:54 +0000
commit232d9f96a0d9144457716ec0a9309db2f6924ac8 (patch)
tree73c7d61045256ecde8b651f39eee221cbbcdde64 /book
parentde0ef8af15945fb7f761503c615a2d6213d2fd82 (diff)
Fix textobject keybindings in usage docs (#7197)
Diffstat (limited to 'book')
-rw-r--r--book/src/usage.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/book/src/usage.md b/book/src/usage.md
index 81cf8372..3c48e306 100644
--- a/book/src/usage.md
+++ b/book/src/usage.md
@@ -96,13 +96,13 @@ function or block of code.
| `(`, `[`, `'`, etc. | Specified surround pairs |
| `m` | The closest surround pair |
| `f` | Function |
-| `c` | Class |
+| `t` | Type (or Class) |
| `a` | Argument/parameter |
-| `o` | Comment |
-| `t` | Test |
+| `c` | Comment |
+| `T` | Test |
| `g` | Change |
-> 💡 `f`, `c`, etc. need a tree-sitter grammar active for the current
+> 💡 `f`, `t`, etc. need a tree-sitter grammar active for the current
document and a special tree-sitter query file to work properly. [Only
some grammars][lang-support] currently have the query file implemented.
Contributions are welcome!
@@ -112,7 +112,7 @@ Contributions are welcome!
Navigating between functions, classes, parameters, and other elements is
possible using tree-sitter and textobject queries. For
example to move to the next function use `]f`, to move to previous
-class use `[c`, and so on.
+type use `[t`, and so on.
![Tree-sitter-nav-demo][tree-sitter-nav-demo]