diff options
author | Zac <zacary.gillerat@connect.qut.edu.au> | 2021-01-27 21:57:39 +1000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-28 08:17:02 +0100 |
commit | aaf691c4efc1e43e83f13cdf403f69d89f889d38 (patch) | |
tree | dda81078884f650040a41dfc9b484ca9007e186d /Userland/Libraries/LibGUI/EditingEngine.h | |
parent | e2d7945e0c7f6f5ff2743405a4b2378c37c7f5b6 (diff) | |
download | serenity-aaf691c4efc1e43e83f13cdf403f69d89f889d38.zip |
Vim: Add change word and delete word functionality
Add the functionality of key sequences 'cw', 'ce', 'cb', 'dw', 'de' and 'db'.
Diffstat (limited to 'Userland/Libraries/LibGUI/EditingEngine.h')
-rw-r--r-- | Userland/Libraries/LibGUI/EditingEngine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/EditingEngine.h b/Userland/Libraries/LibGUI/EditingEngine.h index b8f65b4113..a9eb525acf 100644 --- a/Userland/Libraries/LibGUI/EditingEngine.h +++ b/Userland/Libraries/LibGUI/EditingEngine.h @@ -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); |