1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

LibLine: Implement internal functions to jump cursor over non-space word

Two new internal functions `cursor_left_nonspace_word()` (`Ctrl+Alt+B`)
and `cursor_right_nonspace_word()` (`Ctrl+Alt+F`) that jump the cursor
left or right until a non-space character.

Same implementation as the alphanumeric word jump functions
`cursor_left_word()` (`Alt+B`) and `cursor_right_word()` (`Alt+F`).
This commit is contained in:
ronak69 2024-01-03 11:12:29 +00:00 committed by Ali Mohammad Pur
parent a6ce86a4b3
commit 97bcdba2a5
3 changed files with 39 additions and 0 deletions

View file

@ -105,8 +105,10 @@ struct Configuration {
M(clear_screen) \
M(cursor_left_character) \
M(cursor_left_word) \
M(cursor_left_nonspace_word) \
M(cursor_right_character) \
M(cursor_right_word) \
M(cursor_right_nonspace_word) \
M(enter_search) \
M(erase_character_backwards) \
M(erase_character_forwards) \