aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2025-05-20 23:53:03 +0000
committerGitHub <noreply@github.com>2025-05-20 23:53:03 +0000
commit71feeeeccc422d8092bda56b0d38693290f7585f (patch)
tree22fc0210063e9222e3c899faa81e1aaa2be00356 /extra
parent2bc1bb49e9c9a4861a2bc3eafcbaa652cda26ded (diff)
downloadr-alacritty-71feeeeccc422d8092bda56b0d38693290f7585f.tar.gz
r-alacritty-71feeeeccc422d8092bda56b0d38693290f7585f.tar.bz2
r-alacritty-71feeeeccc422d8092bda56b0d38693290f7585f.zip
Add * # { } vi motions
This patch adds Vi's semantic search and paragraph motion. The semantic search uses either the selection or the semantic word under the cursor and jumps to the next match in the desired direction. Paragraph motion jumps to just above or below the current paragraph. Closes #7961. Co-authored-by: Fletcher Gornick <fletcher@gornick.dev>
Diffstat (limited to 'extra')
-rw-r--r--extra/man/alacritty-bindings.5.scd16
-rw-r--r--extra/man/alacritty.5.scd8
2 files changed, 24 insertions, 0 deletions
diff --git a/extra/man/alacritty-bindings.5.scd b/extra/man/alacritty-bindings.5.scd
index 7f0bdf34..ee426255 100644
--- a/extra/man/alacritty-bindings.5.scd
+++ b/extra/man/alacritty-bindings.5.scd
@@ -189,6 +189,14 @@ configuration. See *alacritty*(5) for full configuration format documentation.
:[
: _"Vi|~Search"_
: _"InlineSearchPrevious"_
+| _"\*"_
+: _"Shift"_
+: _"Vi|~Search"_
+: _"SemanticSearchForward"_
+| _"#"_
+: _"Shift"_
+: _"Vi|~Search"_
+: _"SemanticSearchBackward"_
| _"K"_
:[
: _"Vi|~Search"_
@@ -281,6 +289,14 @@ configuration. See *alacritty*(5) for full configuration format documentation.
: _"Shift"_
: _"Vi|~Search"_
: _"Bracket"_
+| _"{"_
+: _"Shift"_
+: _"Vi|~Search"_
+: _"ParagraphUp"_
+| _"}"_
+: _"Shift"_
+: _"Vi|~Search"_
+: _"ParagraphDown"_
| _"/"_
:[
: _"Vi|~Search"_
diff --git a/extra/man/alacritty.5.scd b/extra/man/alacritty.5.scd
index e2f5b252..ef6e4f19 100644
--- a/extra/man/alacritty.5.scd
+++ b/extra/man/alacritty.5.scd
@@ -894,6 +894,10 @@ _https://docs.rs/winit/latest/winit/keyboard/enum.Key.html#variant.Dead_
Move to end of whitespace separated word.
*Bracket*
Move to opposing bracket.
+ *ParagraphUp*
+ Move above the current paragraph.
+ *ParagraphDown*
+ Move below the current paragraph.
*ToggleNormalSelection*
Toggle normal vi selection.
*ToggleLineSelection*
@@ -926,6 +930,10 @@ _https://docs.rs/winit/latest/winit/keyboard/enum.Key.html#variant.Dead_
Jump to the next inline search match.
*InlineSearchPrevious*
Jump to the previous inline search match.
+ *SemanticSearchForward*
+ Search forward for selection or word under the cursor.
+ *SemanticSearchBackward*
+ Search backward for selection or word under the cursor.
_Search actions:_