Allow closing tabs from files in src
subfolder of sketch
#831
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Describe the current behavior
When a sketch is opened in the Arduino IDE, all source files in the root of the sketch folder are opened in editor tabs.
All these source files are compiled into a single program. Since this fact may not be apparent to users who are accustomed to single file sketches and thus think of the
.ino
file as the sketch unit rather than the entire folder, a control for closing them is intentionally omitted from the primary UI.Complex sketches (e.g., Marlin) may contain many source files. In this case, it can be convenient to expose only a subset of the files to the user. This is accomplished by putting the files under the
src
subfolder of the sketch. The contents of this folder are compiled recursively, but they are not opened in the Arduino IDE editor by default.It is possible to open the files from the
src
subfolder via the IDE's "Sketchbook" view.🙁 Once opened, there is no way to close these files again via the primary UI.
To reproduce
🙁 There is no way to close the InSrcFolder.cpp tab via the primary UI.
🙁 The InSrcFolder.cpp tab is still open even after a restart.
Describe the request
Add X icons to all editor tabs except the source files in the root of the sketch folder.
Desktop
Date: 2022-02-11T14:52:06.341Z
CLI Version: 0.21.0 [10107d24]
Additional context
Another primary UI path to opening these files will be provided once #722 is fixed.
Related: #866
The text was updated successfully, but these errors were encountered: