1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

Mention all the actions in the man page

A lot of actions were left without a notice, so the only way to figure
out some of them was to browse source code. An example of such
actions were `Maximize` and `Minimize`, since we don't have a binding
for them, so they were left even in alacritty-bindings(5).

Explicitly list all the bindings we have. The search bindings were
also not accurately restricted, since we allow them to be executed
inside regardless of mode.
This commit is contained in:
Kirill Chibisov 2023-07-16 03:46:47 +00:00 committed by GitHub
parent fe2df1b5b2
commit 296eb55460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 84 additions and 28 deletions

View file

@ -19,11 +19,12 @@ pub enum ViMotion {
Left, Left,
/// Move right. /// Move right.
Right, Right,
/// Move to start of line. /// First column, or beginning of the line when already at the first column.
First, First,
/// Move to end of line. /// Last column, or beginning of the line when already at the last column.
Last, Last,
/// Move to the first non-empty cell. /// First non-empty cell in this terminal row, or first non-empty cell
/// of the line when already at the first cell of the row.
FirstOccupied, FirstOccupied,
/// Move to top of screen. /// Move to top of screen.
High, High,

View file

@ -689,14 +689,73 @@ https://docs.rs/winit/\*/winit/keyboard/enum.Key.html
*action* *action*
*ReceiveChar*
Allow receiving char input.
*None*
No action.
*Paste*
Paste contents of system clipboard.
*Copy*
Store current selection into clipboard.
*IncreaseFontSize*
Increase font size.
*DecreaseFontSize*
Decrease font size.
*ResetFontSize*
Reset font size to the config value.
*ScrollPageUp*
Scroll exactly one page up.
*ScrollPageDown*
Scroll exactly one page down.
*ScrollHalfPageUp*
Scroll half a page up.
*ScrollHalfPageDown*
Scroll half a page down.
*ScrollLineUp*
Scroll one line up.
*ScrollLineDown*
Scroll one line down.
*ScrollToTop*
Scroll all the way to the top.
*ScrollToBottom*
Scroll all the way to the bottom.
*ClearHistory*
Clear the display buffer(s) to remove history.
*Hide*
Hide the Alacritty window.
*Minimize*
Minimize the Alacritty window.
*Quit*
Quit Alacritty.
*ClearLogNotice*
Clear warning and error notices.
*SpawnNewInstance*
Spawn a new instance of Alacritty.
*CreateNewWindow*
Create a new Alacritty window.
*ToggleFullscreen*
Toggle fullscreen.
*ToggleMaximized*
Toggle maximized.
*ClearSelection*
Clear active selection.
*ToggleViMode*
Toggle vi mode.
*SearchForward*
Start a forward buffer search.
*SearchBackward*
Start a backward buffer search.
_Vi mode actions:_
*Up* *Up*
One line up. Move up.
*Down* *Down*
One line down. Move down.
*Left* *Left*
One character left. Move left.
*Right* *Right*
One character right. Move right.
*First* *First*
First column, or beginning of the line when already at the first column. First column, or beginning of the line when already at the first column.
*Last* *Last*
@ -705,46 +764,40 @@ https://docs.rs/winit/\*/winit/keyboard/enum.Key.html
First non-empty cell in this terminal row, or first non-empty cell First non-empty cell in this terminal row, or first non-empty cell
of the line when already at the first cell of the row. of the line when already at the first cell of the row.
*High* *High*
Top of the screen. Move to top of screen.
*Middle* *Middle*
Center of the screen. Move to center of screen.
*Low* *Low*
Bottom of the screen. Move to bottom of screen.
*SemanticLeft* *SemanticLeft*
the previous semantically separated word. Move to start of semantically separated word.
*SemanticRight* *SemanticRight*
he next semantically separated word. Move to start of next semantically separated word.
*SemanticLeftEnd* *SemanticLeftEnd*
revious semantically separated word. Move to end of previous semantically separated word.
*SemanticRightEnd* *SemanticRightEnd*
End of the next semantically separated word. Move to end of semantically separated word.
*WordLeft* *WordLeft*
Start of the previous whitespace separated word. Move to start of whitespace separated word.
*WordRight* *WordRight*
Start of the next whitespace separated word. Move to start of next whitespace separated word.
*WordLeftEnd* *WordLeftEnd*
End of the previous whitespace separated word. Move to end of previous whitespace separated word.
*WordRightEnd* *WordRightEnd*
End of the next whitespace separated word. Move to end of whitespace separated word.
*Bracket* *Bracket*
Character matching the bracket at the cursor's location. Move to opposing bracket.
*SearchNext*
Beginning of the next match.
*SearchPrevious*
Beginning of the previous match.
*SearchStart*
Start of the match to the left of the vi mode cursor.
*SearchEnd*
End of the match to the right of the vi mode cursor.
_Search mode exclusive:_ _Search actions:_
*SearchFocusNext* *SearchFocusNext*
Move the focus to the next search match. Move the focus to the next search match.
*SearchFocusPrevious* *SearchFocusPrevious*
Move the focus to the previous search match. Move the focus to the previous search match.
*SearchConfirm* *SearchConfirm*
Confirm the active search.
*SearchCancel* *SearchCancel*
Cancel the active search.
*SearchClear* *SearchClear*
Reset the search regex. Reset the search regex.
*SearchDeleteWord* *SearchDeleteWord*
@ -758,6 +811,8 @@ https://docs.rs/winit/\*/winit/keyboard/enum.Key.html
*ToggleSimpleFullscreen* *ToggleSimpleFullscreen*
Enter fullscreen without occupying another space. Enter fullscreen without occupying another space.
*HideOtherApplications*
Hide all windows other than Alacritty.
_Linux/BSD exclusive:_ _Linux/BSD exclusive:_