Change console behaviour

This commit is contained in:
Krzosa Karol
2025-05-08 22:53:56 +02:00
parent 46c109dce4
commit a1282af0b5
3 changed files with 8 additions and 8 deletions

View File

@@ -437,6 +437,13 @@ void OnCommand(Event event) {
if (CtrlPress(SDLK_GRAVE)) { if (CtrlPress(SDLK_GRAVE)) {
if (ActiveWindow != NullWindowID) { if (ActiveWindow != NullWindowID) {
ActiveWindow = NullWindowID; ActiveWindow = NullWindowID;
WindowSplits.value = (double)StyleConsoleSizeBig;
} else {
if (WindowSplits.value - 0.1 > StyleConsoleSizeSmall) {
WindowSplits.value = (double)StyleConsoleSizeSmall;
} else {
WindowSplits.value = (double)StyleConsoleSizeBig;
}
} }
} }
if (CtrlPress(SDLK_1)) { if (CtrlPress(SDLK_1)) {

View File

@@ -7,11 +7,10 @@
- rules, interface for opening files using the F4 (aka next path from build output) - rules, interface for opening files using the F4 (aka next path from build output)
- for now add ./ and .\ to valid line starters - for now add ./ and .\ to valid line starters
- make search bar standout!! - make search bar standout!!
- relative paths instead of absolute when opening directories
- change console resize behaviour, maybe on tilde, not on click, it borks, selects wrongly because of the change in size
- Kill buffer command (it should be marked for deletion and deleted at the end of frame!) - Kill buffer command (it should be marked for deletion and deleted at the end of frame!)
- Delete directory/file on disk command - Delete directory/file on disk command
- Create directory command (probably should enter it automatically - Create directory command (probably should enter it automatically
- Convert more commands to taking buffer instead of view
- save all relevant buffers and build - save all relevant buffers and build
- shift down on last line should move the cursor to end of line!!! same for up - shift down on last line should move the cursor to end of line!!! same for up

View File

@@ -278,12 +278,6 @@ void LayoutWindowSplit(WindowSplit *split, Rect2I rect) {
} }
void LayoutWindows(int16_t wx, int16_t wy) { void LayoutWindows(int16_t wx, int16_t wy) {
if (ActiveWindow == NullWindowID) {
WindowSplits.value = (double)StyleConsoleSizeBig;
} else {
WindowSplits.value = (double)StyleConsoleSizeSmall;
}
Rect2I screen_rect = RectI0Size(wx, wy); Rect2I screen_rect = RectI0Size(wx, wy);
LayoutWindowSplit(&WindowSplits, screen_rect); LayoutWindowSplit(&WindowSplits, screen_rect);