Skip to content

Commit e2a00be

Browse files
committed
update docs: keybind
1 parent a827b7d commit e2a00be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/preset/readline/keymap.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
///
99
/// | Key | Action
1010
/// | :--------------------- | :-------------------------------------------
11-
/// | <kbd>Enter</kbd> | Exit the editor
11+
/// | <kbd>Enter</kbd> | Exit the editor if input is valid, otherwise show error message
1212
/// | <kbd>Ctrl + C</kbd> | Interrupt the current operation
1313
/// | <kbd>←</kbd> | Move the cursor one character to the left
1414
/// | <kbd>→</kbd> | Move the cursor one character to the right
@@ -18,7 +18,11 @@ use crate::{
1818
/// | <kbd>↓</kbd> | Recall the next entry from history
1919
/// | <kbd>Backspace</kbd> | Delete the character before the cursor
2020
/// | <kbd>Ctrl + U</kbd> | Delete all characters in the current line
21-
/// | <kbd>TAB</kbd> | Autocomplete the current input based on available suggestions
21+
/// | <kbd>Tab</kbd> | Autocomplete the current input based on available suggestions
22+
/// | <kbd>Alt + B</kbd> | Move the cursor to the previous nearest character from a set (default: whitespace)
23+
/// | <kbd>Alt + F</kbd> | Move the cursor to the next nearest character from a set (default: whitespace)
24+
/// | <kbd>Ctrl + W</kbd> | Erase to the previous nearest character from a set (default: whitespace)
25+
/// | <kbd>Alt + D</kbd> | Erase to the next nearest character from a set (default: whitespace)
2226
pub fn default(
2327
event: &Event,
2428
renderer: &mut preset::readline::render::Renderer,

0 commit comments

Comments
 (0)