1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:38:10 +00:00

Vim: Add change word and delete word functionality

Add the functionality of key sequences 'cw', 'ce', 'cb', 'dw', 'de' and 'db'.
This commit is contained in:
Zac 2021-01-27 21:57:39 +10:00 committed by Andreas Kling
parent e2d7945e0c
commit aaf691c4ef
5 changed files with 129 additions and 28 deletions

View file

@ -68,9 +68,13 @@ protected:
void move_page_down(const KeyEvent& event);
void move_to_first_line();
void move_to_last_line();
TextPosition find_beginning_of_next_word();
void move_to_beginning_of_next_word();
TextPosition find_end_of_next_word();
void move_to_end_of_next_word();
TextPosition find_end_of_previous_word();
void move_to_end_of_previous_word();
TextPosition find_beginning_of_previous_word();
void move_to_beginning_of_previous_word();
void move_up(const KeyEvent& event, double page_height_factor);