-
-
Notifications
You must be signed in to change notification settings - Fork 7k
There's no way to only close a tab (and nothing else) #2883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How are you supposed to reopen the closed tab? |
Good question. Maybe an "Open file as new tab in current project" option is missing, too. |
This would complicate the UI. We'd need a file tree on a side panel, but we won't have one. See #1590 |
Well, I don't think so.Simply opening the FileChooser dialog should be enough. But, anyway, my original concern was that closing a tab deletes the file. I think this behaviour is very risky and confusing |
I disagree. Label says "delete", not "close". Deleting is always risky, but the label should not be confusing |
Please revisit this, it makes working with the IDE a pain! |
This "feature" makes Arduino IDE completely unusable, will try to find other way to develop. |
The tab behavior is confusing and counter to the general notion of how tabs in virtually every other IDE or source/text editor. |
I also would like to revisit this. Any half way serious project splits the code over various files. In the Arduino IDE, this means one tab open for each .h and each .cpp file. Having 20+ tabs open makes the IDE very unusable. |
To be fair, up till recently, a sketch with 20+ source files was unlikely to fit on an ATMega outside of the 2560. Now with the support for a number of 32bit MCUs, very larger sketches are entirely possibly. |
The whole 'Close' issue is not user friendly, at this point I'm looking for something else that 1: Has standard Open and Close features 2: Has documentation that matches the product. SerialUSB is an example. |
Whats wrong with adding a close tab option? Seems kinda messed up. |
I'd also like to see a close tab available. Then, a corresponding open tab option which allows the selection of a file in the directory with the .ino file. Building and everything else would remain the same. |
NOTE for others viewing this in the future: When opening a sketch, the IDE automatically opens all relevant('.c', '.h', etc) files that reside in the sketch's (root) folder. Therefore to "remove" a tab/file, file(s) need to be someplace other than that folder. For example if you create a sub-folder and move files there, then they will not show up when you reopen the Sketch. This can be done temporarily as long as you don't need to compile those files. |
I wrote another issue on this, then found this one. Adding my support: |
Who is to say what is & is not "just wrong"? |
Who? … Who Indeed ??? !!!
For one: I am!
I and just about everyone one else that uses any widely used IDE.
And any and probably everyone that uses any tab’ed dialog.
Have you ever used any recent web browser? Anything in the last, maybe ten years or so?
Open and close tabs there. Did anything get deleted? The answer is no.
Go to gedit on Linux and open multiple files. You get tabs. Close a tab. If the text was changed, it will ask if you want to save. Then it closes the tab. Be sure to note: It does not delete the file. It closes the tab.
Have you ever used Visual Studio. It will open files, tab them, and close the tabs. Try it some time.
Can you reference ANY application that allows the user to open tabs then deletes files on closure?
I think that answer is No.
Maybe you can find one, but it will be the exception.
Get real here! Stop being defensive! This is not an attack upon you.
The IDE has a fundamental flaw.
Yes, we can work around it. That does not change the situation that it has a fundamental flaw.
Bryan
EDIT, replied by email then came here and removed numerous extra blank lines.
From: Paul Stoffregen [mailto:notifications@github.com]
Sent: Sunday, September 22, 2019 7:21 PM
To: arduino/Arduino <Arduino@noreply.github.com>
Cc: bkelly13 <forums@mbkelly.net>; Comment <comment@noreply.github.com>
Subject: Re: [arduino/Arduino] There's no way to only close a tab (and nothing else) (#2883)
Who is to say what is & is not "just wrong"?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2883?email_source=notifications&email_token=AKPOGKSD7XJ3B2KMZ7MSRXLQLARYDA5CNFSM4A7FCOE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JVBVY#issuecomment-533942487> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AKPOGKWDGDGBAKIYJCPNE4LQLARYDANCNFSM4A7FCOEQ> .
|
"Legitimate, unique issue reports are certainly welcome here. They are a valuable contribution to the Arduino project." © @per1234 Bullshit. |
Other IDEs like Visual Studio provide a file display to show which files are part of your project. Their build systems have makefiles or other configuration that integrates with that project/file config GUI. If you remove a file from that part of the GUI, even if the file isn't deleted, it is no longer compiled and linked into your project by the IDE's build system. Arduino's very simple & minimalist GUI doesn't provide any other way to configure or visualize which files are actually part of your project. There isn't a separate file tree to configure which files to actually use. All the files located in the folder are always used. Arduino's build system doesn't support source code files in the folder that aren't used. If a file is present in the folder, it will be compiled and used. So if Arduino were to implement simply closing of tabs without changing the underlying files, when those files are compiled and used, wouldn't that also be considered "just wrong"? If there is any sort of an error in any of those files, what sort of behavior should the GUI offer? Would the file be opened again (against the user's wishes), for the sake of highlighting the line where the first compile error occurred? Or should the console get an error message with the filename, but the GUI wouldn't be showing that file anymore? Or perhaps this proposal is actually far more complex than simply closing tabs? Maybe you're suggesting Arduino would also need to rework its build system to make which files are actually compiled and linked into your project configurable? Making things so configurable is the approach nearly all other IDEs take, and it is also the reason why Arduino has been so incredibly successful - providing a minimalist approach that is simple, without so much extra GUI stuff that is powerful but also a barrier to novices learning. |
Simply add possibility to close the tab, and to save it, if it was changed. And yes, "should the console get an error message with the filename" will be good enough. Compiler does this by default, isn't it? Keep it simple. Every time a simple feature request becomes "very complex task" and being closed as wotfix, even when the whole thing is to change 15 strings of code. |
RE: Arduino's very simple & minimalist doesn't provide any other way to configure or visualize which files are actually part of your project. All the files located in the folder are always used.
In my not so humble opinion, and in this day and age, that is just too minimalist. Nothing should be a part of the project until the user takes some level effort to make it so. And any file should be eligible for exclusion with the same minimal effort.
From: Paul Stoffregen [mailto:notifications@github.com]
Sent: Saturday, October 05, 2019 6:27 AM
To: arduino/Arduino <Arduino@noreply.github.com>
Cc: bkelly13 <forums@mbkelly.net>; Comment <comment@noreply.github.com>
Subject: Re: [arduino/Arduino] There's no way to only close a tab (and nothing else) (#2883)
Other IDEs like Visual Studio provide a file display to show which files are part of your project. If you remove a file from that part of the GUI, even if the file isn't deleted, it is no longer compiled and linked into your project.
Arduino's very simple & minimalist doesn't provide any other way to configure or visualize which files are actually part of your project. All the files located in the folder are always used. Arduino's build system doesn't support source code files in the folder that aren't used. If a file is present in the folder, it will be compiled and used.
So if Arduino were to implement simply closing of tabs without changing the underlying files, when those files are compiled and used, wouldn't that also be considered "just wrong"?
If there is any sort of an error in any of those files, what sort of behavior should the GUI offer? Would the file be opened again (against the user's wishes), for the sake of highlighting the line where the first compile error occurred? Or should the console get an error message with the filename, but the GUI wouldn't be showing that file anymore?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2883?email_source=notifications&email_token=AKPOGKSHCNVC4J2RDSKJ4BTQNCI3ZA5CNFSM4A7FCOE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANSIXQ#issuecomment-538649694> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AKPOGKSCXZYX4GH6CYCJH5LQNCI3ZANCNFSM4A7FCOEQ> .
|
I just wrote a larger program and I cannot edit the files anymore, because the tabs are out of sight --> the tabs are not visible anymore (>16 tabs). I'd like to make them invisible. I see the discussion is long, so it might be the time to change the IDE now because larger programs are not supposed to be done with this IDE? |
When is someone going to figure this out? Even if there is a way to close a tab without closing the entire Arduino app, I can't easily find it. This should be obvious, easy to find. (And if, as some suggest, there is no way at all to close a tab--that is a failure that needs to be remedied.) |
I've already said it in #2350, but as it's not exactly the same issue, I open a new one:
*There's no option in rightest drop-down menu responsible for closing a tab without deleting its content from disk (in other words: there is a "delete" option but not a "close" option)
*File-> Close and File->Quit do the same: they close the IDE...(I think former should close only active tab)
Tested on 1.6.1 and on 1.6.3
The text was updated successfully, but these errors were encountered: