diff --git a/src/text_editor/commands_window.cpp b/src/text_editor/commands_window.cpp index 6635b0a..47928f9 100644 --- a/src/text_editor/commands_window.cpp +++ b/src/text_editor/commands_window.cpp @@ -616,6 +616,7 @@ void WindowCommand(Event event, Window *window, View *view) { } else if (Ctrl(SDLK_V)) { Command_Paste(view); } else if (Ctrl(SDLK_X)) { + BeforeEdit(buffer, view->carets); Command_Copy(view); Command_Replace(view, L""); } diff --git a/src/text_editor/todo.txt b/src/text_editor/todo.txt index 3785db2..fa49f2b 100644 --- a/src/text_editor/todo.txt +++ b/src/text_editor/todo.txt @@ -2,12 +2,12 @@ - I think the way sublime text and we display line highlights is confusing with multiple cursors (line highlight can be confused with selection) - bug: Latin-1 is matched as column for some reason in ApplyRules!! - +- mouse execute (right click) +- should be able click on title bar of windows which disappear on losing focus - select space between parens,braces but make it good - switch to previous view (ctrl + tab) - we could rewrite kill lines with simpler commands - extend selection to encompass lines->replace -- should be able click on title bar of windows which disappear on losing focus - search backwards - experiment with using multiple cursors to select command and it's input - search as a command to execute which is going to be in the title bar