Better EntryBox to run command
Hello! First, thanks for this great C++ IDE :)
One key feature of a GNU/Linux IDE is to allow running shell commands in a terminal. It is possible in Juci++ to run commands via the entry-box using the shortcut Alt+Enter. However, it becomes a chore when multiple consecutive commands are needed to be entered. In traditional terminals and IDE that implements a proper terminal (examples: gedit, VS Code), we only need to press "Enter" to run the command and directly start typing the next command. In juci++, we need "Enter" then "Alt+Enter" then "Backspace". Personally, to work around this, I kept a terminal window opened. However, window switching is not practical.
I propose to change the entrybox behavior, by keeping it open when we run a command.
I have found how to do it in code, however I am not proficient with GitLab flow, I didn't find how to propose a merge request.
The required modification is in src/window.cpp
line 1397:
- EntryBox::get().hide();
+ EntryBox::get().entries.front().set_text("");
This modification keeps a coherent command history and makes running command smoother.