Recent

Author Topic: Close All menu missing  (Read 3041 times)

rh

  • Newbie
  • Posts: 6
Close All menu missing
« on: August 10, 2024, 02:29:30 am »
Close All on lazarus file menu is missing. Is it intentionally removed?

Aruna

  • Sr. Member
  • ****
  • Posts: 462
Re: Close All menu missing
« Reply #1 on: August 10, 2024, 06:20:00 am »
Close All on lazarus file menu is missing. Is it intentionally removed?
Ctrl + F4 will give you the same functionality on Windows/Linux.
Debian GNU/Linux 11 (bullseye)
https://pascal.chat/

rh

  • Newbie
  • Posts: 6
Re: Close All menu missing
« Reply #2 on: August 10, 2024, 07:54:07 am »
Ctrl + F4 only close 1 page

dseligo

  • Hero Member
  • *****
  • Posts: 1374
Re: Close All menu missing
« Reply #3 on: August 10, 2024, 08:28:40 am »
It is probably something in your installation. I have it (last version 3.4). See attachment.

paweld

  • Hero Member
  • *****
  • Posts: 1220
Re: Close All menu missing
« Reply #4 on: August 10, 2024, 08:46:23 am »
The trunk version does not have
Best regards / Pozdrawiam
paweld

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Close All menu missing
« Reply #5 on: August 10, 2024, 09:14:50 am »
Yes it was intentionally removed.

It was often misunderstood what it does. "Close all" was in the file menu, so it only "closed all files".
But people expected it also closes the project. Which it never did.

So after close all, your current project was still open, and its session would store anything you did. It would also store that there were no files (no units) open in any editor.
Which meant when people closed the IDE, and later opened the project again, then no sources would be open, and they thought their project was broken.

If you really want to close all files, just use the close button of the source edit window.
« Last Edit: August 10, 2024, 09:31:37 am by Martin_fr »

440bx

  • Hero Member
  • *****
  • Posts: 4570
Re: Close All menu missing
« Reply #6 on: August 10, 2024, 09:19:33 am »
The trunk version does not have
I was going to mention that too.  v3.2 and v3.4 have it.

I've never used "Close All" (in the versions in which it is available) and, never missed it either.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

rh

  • Newbie
  • Posts: 6
Re: Close All menu missing
« Reply #7 on: August 10, 2024, 03:40:57 pm »
If you really want to close all files, just use the close button of the source edit window.

its difficult when using docked IDE like me.

paweld

  • Hero Member
  • *****
  • Posts: 1220
Re: Close All menu missing
« Reply #8 on: August 10, 2024, 04:04:57 pm »
this option is available in the context menu of the source editor, on the tab bar.
Best regards / Pozdrawiam
paweld

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Close All menu missing
« Reply #9 on: August 10, 2024, 06:06:19 pm »
Ah, yes, if you have the dock handles hidden.

As Paweld said, next best thing, click any of the tabs of the sourceeditor (any of the unitnames), and there is "Close All other tabs".
Then you have one unit left, that you can close. ... So it's 2 steps.

Btw in the "Windows" menu you also have "manage source editors". In case you have too many open, and want to select some to close.


Out of interest, why do you need to close all files? You will be left with an empty grey area in the IDE. What work would you do, where having a source instead of the empty space would be an issue?

I can see, that you don't want to close several dozen files by one by one. But that can be done with "close all others" and you can choose one, that you want to continue to work on.
Or do I miss something?



If this is a common issue (and hence I ask) then maybe a different solution is needed...

"Close all" was definitely causing too much confusion. But maybe "Close all but the current"
« Last Edit: August 10, 2024, 06:08:02 pm by Martin_fr »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4525
  • I like bugs.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Close All menu missing
« Reply #11 on: August 11, 2024, 12:36:14 am »
"Close All" did not only close editor windows but also all package editors.

That is even more confusing. And that means it was to some degree in the wrong menu.

If we do need/want that, then IMHO there could be an entry in the package menu for that.

I can understand that over time the amount of open stuff grows (and grows out of control). And that means to quickly clean up may be needed.
I can't tell which are the most convenient of them all, because I have not used the old one myself at any time.



Since "close all" was often mistaken to close the project, it is plausible that closing all the open package is something one may want to do when changing project.

If that is the case it could be a checkbox in the "New project" dialog.

It could also be an option, that it always happen when a new project is opened (never mind by which means).
Just make sure it is an option. (I usually have always multiple package open that I want to be kept open never mind what I do / And I get upset enough if the IDE on occasion forgets to reopen them on restart).




So the question still stands:

What (and when) exactly is needed. What should be achieved?

So we can look into ways that could do that, yet do not mislead about closing the project?

n7800

  • Full Member
  • ***
  • Posts: 139
Re: Close All menu missing
« Reply #12 on: August 13, 2024, 10:53:07 pm »
I think it's all right. There is a menu item for closing a project in the correct "Project" menu.

But if need add a "Close all open package editors" item, the correct place would be the "Window" menu, not the "Package" menu, since this function works with windows, and does not modify the packages themselves.

rh

  • Newbie
  • Posts: 6
Re: Close All menu missing
« Reply #13 on: August 14, 2024, 08:27:00 am »
At the end of day i always use that Close All menu to clear my working space without closing my opened project.
And right now i'm using 'Package Tabs', there is no 'Close All but Current' menu on editor tab.

If its possible to get that feature again, its okay to move that menu to other menu.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Close All menu missing
« Reply #14 on: August 14, 2024, 12:20:36 pm »
What about: Windows > Manage Source Editors ?
"Check all" and press "Close"

It is a few clicks more...
And I am not sure, if you also need to "close all packages"?



If you have custom tabs, and are missing the original menu, then try: CTRL + right click  on the text area of the editor. It should open that menu.

Or go to menu Tool > Options: Editor > Keymapping
Search for "Close all" and find "Close all other pages". Then assign a key to it. So you can do that by keyboard.



 

TinyPortal © 2005-2018