Doc comments

This commit is contained in:
Greg Shuflin committed 2024-03-04 02:42:57 -08:00
1 parent 9b5e07aabc
commit 60dc9ebe92
1 file changed
+12 -1
+12 -1
View File
@@ -7,12 +7,23 @@ use crate::core::Mode;
//TODO EditorAction should have metadata about whether an action comes from a command, a script,
//user input, network, etc.
pub(crate) enum EditorAction {
// insert and delete are relative to cursor - todo handle multiple cursors
// TODO: handle multiple cursors for Insert and Delete
/// Insert a character relative to the current cursor in the current buffer
InsertCharacter(char),
/// Delete a character relative to the current cursor in the current buffer
DeleteChar,
/// Change the editor's mode
TransitionToMode(Mode),
/// Move the cursor around the active buffer
MoveCursor(CursorMovement),
/// Represents actions relevant to building up a command-line command
Command(CommandAction),
/// Quit the editor
Quit,
}