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:
parent
94bfde2a38
commit
b56ef9042b
2 changed files with 99 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue