Closed
Description
Describe the request
When the Cmd+W (Ctrl+W on Windows) keyboard shortcut is pressed, close the current tab.
Describe the current behavior
Arduino acts as a container for tabs. Most people see this most often in browsers or other editors / IDEs. The keyboard for closing a tab in those cases is Cmd+W (Ctrl+W on Windows). In Arduino IDE this closes the entire window.
To reproduce
- Press Cmd+W
Arduino IDE version
2.0.0-beta.4
Operating system
macOS
Additional context
This could be a feature request or a bug, or a highly opinionated preference. I'm not sure which.
Keywords
-
"keybinding"
-
"key binding"
-
"hotkey"
-
"hot key"
-
"accelerator"
-
"key combination"
-
"key sequence"
-
"key chord"
-
"shortcut key"
Issue checklist
- I searched for previous requests inI verified the feature was still missing when using the latestMy request contains all necessary details
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ubidefeo commentedon Mar 26, 2021
hi @joshka
I believe it's an opinionated preference :D
The Arduino IDE's behaviour has traditionally been to keep all files of a Sketch open (the Sketch is a folder containing a
.ino
file with the same name of the folder and a bunch of other files to complete the project).As you noticed, you cannot close tabs belonging to a sketch.
If you end up with an open tab as result of going to a definition or while using the Debugger you will be able to close such tabs because they don't believe to the Sketch.
Such tabs will present a closing
X
and will be closed by a CMD/CTRL+W.We have long debated wether IDE 2.0 should behave as the Java IDE and the current behaviour (as annoying to myself it can be) has been decided to be brought into the new IDE.
I'll mark this one as an enhancement, and if it gathers enough 👍🏼 we'll bring it back to the discussion table.
Thank you
u.
joshka commentedon Mar 27, 2021
Makes sense, thanks for the thoughtful response on this. Definitely an opinionated preference :)
stodge commentedon Jul 20, 2022
If it's an "opinionated preference" then implement a setting so that users can choose. Otherwise you're deciding how users should work. Thanks!