switch to partner file command - quick way to switch from .h to .c, or similar

This commit is contained in:
Ryan Fleury
2024-01-24 13:59:31 -08:00
parent 4ddb4d0fed
commit 0d1ccd7264
8 changed files with 56 additions and 3 deletions
+8 -1
View File
@@ -325,7 +325,14 @@ update_and_render(OS_Handle repaint_window_handle, void *user_data)
for(OS_Event *ev = leftover_events.first, *next = 0; ev != 0; ev = next)
{
next = ev->next;
if(ev->timestamp_us+1000000 < os_now_microseconds())
if(ev->timestamp_us+1000000 < os_now_microseconds() ||
ev->kind == OS_EventKind_Text ||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_LeftMouseButton) ||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_RightMouseButton) ||
(ev->kind == OS_EventKind_Press && ev->key != OS_Key_MiddleMouseButton) ||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_LeftMouseButton) ||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_RightMouseButton) ||
(ev->kind == OS_EventKind_Release && ev->key != OS_Key_MiddleMouseButton))
{
os_eat_event(&leftover_events, ev);
}
+2 -2
View File
@@ -10,7 +10,7 @@
// [ ] drag/drop tab cleanup
// [ ] target/breakpoint/watch-pin reordering
// [ ] watch window reordering
// [ ] query views, cleanup & floating - maybe merge "applies to view" vs. not
// [x] query views, cleanup & floating - maybe merge "applies to view" vs. not
// [ ] standard way to filter
// [ ] visualize remapped files (via path map)
// [ ] hovering truncated string for a short time -> tooltip with full wrapped
@@ -34,7 +34,7 @@
//
// [ ] it would be nice to have "show in explorer" for right click on source
// file tab (opens explorer & selects the file)
// [ ] it would be nice if Alt+o in source file would switch between .h and
// [x] it would be nice if Alt+o in source file would switch between .h and
// .c/cpp file (just look for same name in same folder)
//
// [ ] what's up with decimal number coloring where every group of 3 are in