SpartanJ / ecode

Lightweight multi-platform code editor designed for modern hardware with a focus on responsiveness and performance.
MIT License
938 stars 13 forks source link

F5 build and run bug #328

Closed Curculigo closed 2 months ago

Curculigo commented 2 months ago

If use build and run feature, it will split into two panes: one for files, one for terminals. If don't click into the current file, new file will be opened in the terminal pane.

SpartanJ commented 2 months ago

It's not clear what you're asking or requesting, please rephrase it. New Terminals can have different behavior that can be configured on the Terminal settings menu, by default a new terminal will open in a vertical split panel but can be changed: Screenshot_20240902_191150.

New files will be opened in the last active split, this is correct, if your terminal was active and tried to open a new file, it must open in that split.

Curculigo commented 2 months ago

I didn't change anything from the default behavior which is two split panels. When press F5, the terminal tab created (and thus the panel contains this terminal tab) will get focus. If I don't click to the file tab to have the focus back to the panel contains the files, new files will be opened in the panel for terminals.

SpartanJ commented 2 months ago

This is the expected behavior. New files or terminals will open on the last focused split / panel.

Curculigo commented 2 months ago

This is the expected behavior. New files or terminals will open on the last focused split / panel.

This will mess up files and terminals. Everything will become a mess!

Curculigo commented 2 months ago

Why don't use the Terminal tab in the bottom like other editors and IDEs? This terminal is for fun?

SpartanJ commented 2 months ago

You can still use the terminal from below that does not share the splitter (Alt+3), I personally don't like it because it won't display much content since in terminals it's more important the vertical space than the horizontal. The splitter is perfectly usable the way it's, you just need to get use to navigating the editor with the keybindings provided (or change them ofc), you can switch the focus from panels with ctrl+alt+j (left) and ctrl+alt+l (right).