From 71feeeeccc422d8092bda56b0d38693290f7585f Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 20 May 2025 23:53:03 +0000 Subject: 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 --- extra/man/alacritty-bindings.5.scd | 16 ++++++++++++++++ extra/man/alacritty.5.scd | 8 ++++++++ 2 files changed, 24 insertions(+) (limited to 'extra') 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:_ -- cgit