1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Vim: Add a simple yank and put implementation

This commit is contained in:
Zac 2021-01-25 23:24:33 +10:00 committed by Andreas Kling
parent 94bfde2a38
commit b56ef9042b
2 changed files with 99 additions and 6 deletions

View file

@ -44,8 +44,19 @@ private:
Visual
};
enum YankType {
Line,
Selection
};
VimMode m_vim_mode { VimMode::Normal };
YankType m_yank_type {};
String m_yank_buffer {};
void yank(YankType);
void yank(TextRange);
void put(const GUI::KeyEvent&);
TextPosition m_selection_start_position {};
void update_selection_on_cursor_move();
void clear_visual_mode_data();