Before mouse rewrite
This commit is contained in:
@@ -874,7 +874,7 @@ void WindowCommand(Event event, Window *window, View *view) {
|
|||||||
String16 string = GetString(*buffer, enclose);
|
String16 string = GetString(*buffer, enclose);
|
||||||
Open(string);
|
Open(string);
|
||||||
}
|
}
|
||||||
if (Alt(SDLK_Q)) {
|
if (Ctrl(SDLK_W)) {
|
||||||
GoBackToLastCrumb();
|
GoBackToLastCrumb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ void ReplaceDebugData() {
|
|||||||
|
|
||||||
float xmouse, ymouse;
|
float xmouse, ymouse;
|
||||||
SDL_GetMouseState(&xmouse, &ymouse);
|
SDL_GetMouseState(&xmouse, &ymouse);
|
||||||
Appendf(buffer, "mouse: [%f, %f]", xmouse, ymouse);
|
Appendf(buffer, "mouse: [%f, %f]\n", xmouse, ymouse);
|
||||||
Appendf(buffer, "C:/Work/text_editor/src/text_editor/text_editor.cpp");
|
Appendf(buffer, "C:/Work/text_editor/src/text_editor/text_editor.cpp\n");
|
||||||
|
|
||||||
// String view_list = DebugViewList(scratch);
|
// String view_list = DebugViewList(scratch);
|
||||||
// Append(buffer, ToString16(scratch, view_list));
|
// Append(buffer, ToString16(scratch, view_list));
|
||||||
|
|||||||
@@ -9,9 +9,13 @@
|
|||||||
- fix the bug where when we create a new view the anchor value on new view is compromised because and incongruent with position so we select from start of buffer
|
- fix the bug where when we create a new view the anchor value on new view is compromised because and incongruent with position so we select from start of buffer
|
||||||
- hand cursor on hover over underlined word
|
- hand cursor on hover over underlined word
|
||||||
|
|
||||||
|
- maybe we don't need multiple cursors on mouse???
|
||||||
|
- ctrl + left mouse to load / ctrl + right mouse to go back
|
||||||
|
- alt + left to exec / alt + right to toggle console or something related
|
||||||
|
- similar mirroring on keyboard with W/Q Ctrl/Alt
|
||||||
|
- mid click to create new cursor?
|
||||||
- delete multiple spaces (based on indent size) on delete instead one by one. It should only work at beginning of line, in indent area
|
- delete multiple spaces (based on indent size) on delete instead one by one. It should only work at beginning of line, in indent area
|
||||||
- switch to previous view (ctrl + tab)
|
- switch to previous view (ctrl + tab)
|
||||||
- save location on open and allow for revert (buffer id? or buffer name? - buffer name can change, buffer id is harder to serialize, I guess if internal only then buffer id)
|
|
||||||
- we could rewrite kill lines with simpler commands - extend selection to encompass lines->replace
|
- 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
|
- should be able click on title bar of windows which disappear on losing focus
|
||||||
- search backwards
|
- search backwards
|
||||||
@@ -19,11 +23,8 @@
|
|||||||
- search as a command to execute which is going to be in the title bar
|
- search as a command to execute which is going to be in the title bar
|
||||||
- Ctrl + G should select the line number in bar
|
- Ctrl + G should select the line number in bar
|
||||||
- auto register commands, but we need to figure out how to properly structure lua stuff
|
- auto register commands, but we need to figure out how to properly structure lua stuff
|
||||||
- command window should close on esacpe but make it more coherent
|
- console window should close on esacpe but make it more coherent
|
||||||
- make the editor replayable, store events and then replay, be careful about globals
|
- make the editor replayable, store events and then replay, be careful about globals
|
||||||
- plumbing: look for raw buffer name then for filename with path
|
|
||||||
- try using buffer path for opening files
|
|
||||||
- maybe also add cursor selection to buffer name area
|
|
||||||
- I want a way to assign flags to buffers/views/windows from user perspective so that console window concept can be created from user space
|
- I want a way to assign flags to buffers/views/windows from user perspective so that console window concept can be created from user space
|
||||||
- Search all buffers in 10X style, incrementally searched results popping up on every key press (maybe we need coroutine library in C so this is easier?)
|
- Search all buffers in 10X style, incrementally searched results popping up on every key press (maybe we need coroutine library in C so this is easier?)
|
||||||
- Implement shell interaction (here we also could use the coroutine library)
|
- Implement shell interaction (here we also could use the coroutine library)
|
||||||
|
|||||||
Reference in New Issue
Block a user