Recent

Author Topic: Feature request/suggestion  (Read 896 times)

440bx

  • Hero Member
  • *****
  • Posts: 5466
Feature request/suggestion
« on: May 15, 2025, 05:39:03 am »
Hello,

right clicking on an editor tab allows selecting "Other tabs" which in turn provides a list of open windows.

That list is a very convenient way of choosing a particular editing window _provided_ that the number of windows doesn't exceed what fits in the popup menu.

In the attachment, there are 85 "other tabs" and to select a window that is "outside" what is shown in the popup menu requires moving the mouse to either the "up" or "down" arrow (depending on the name of the window) to bring the target window into view in order to be selected.

The feature request/suggestion is: allow scrolling using the mousewheel (in addition to the "up" and "down" arrows.)  This would make the list more convenient and easier to use.

Comments welcome.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11349
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request/suggestion
« Reply #1 on: May 15, 2025, 09:14:04 am »
This is a normal pop up menu. That means it is controlled by the WS / OS.

There is "Manage source editors" in the main menu "Windows". Which allows double click, and which has a filter. But does not group by package.


440bx

  • Hero Member
  • *****
  • Posts: 5466
Re: Feature request/suggestion
« Reply #2 on: May 15, 2025, 09:36:39 am »
This is a normal pop up menu. That means it is controlled by the WS / OS.
Looks like I'm out of luck ... chuckle

Thank you Martin.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

CM630

  • Hero Member
  • *****
  • Posts: 1404
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Feature request/suggestion
« Reply #3 on: May 15, 2025, 11:08:21 am »
AFAIK, the popup menu can be replaced with a custom form, which might include a text box for searching, which seems reasonable with such a high number of entries.
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11349
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request/suggestion
« Reply #4 on: May 15, 2025, 11:17:04 am »
Of course new methods can always be added....

The use of a popupmenu is good for some cases, so I wouldn't just want to replace it. But then...

We already have two methods: the popup and the "source window mgr".
Adding a 3rd seems a bit much, imho. (Also of course anyone can provide a 3rd party package that can be installed).

Currently the latter is exactly:
a custom form, which might include a text box for searching

I haven't used it much, so there may be some enhancements that it might benefit from, yet I wouldn't be aware off.  (Well a filter for editor-window, if used with multiple editor windows)

If anyone wants to work on adding something there, then that can be discussed.

n7800

  • Sr. Member
  • ****
  • Posts: 358
Re: Feature request/suggestion
« Reply #5 on: May 15, 2025, 07:26:03 pm »
There is "Manage source editors" in the main menu "Windows". Which allows double click, and which has a filter. But does not group by package.

The "Manage Source Editors" window is very convenient. It appears when you press "[Ctrl+Shift+W]", and you can immediately enter part of the file name in the filter.

To open any project unit, you can use the "Main Menu > Project > Units" window, which appears when you press "[Ctrl+F12]".

Another very similar window is "Main Menu > File > Open Unit", with the combination "[Alt+F12]". It allows you to open files not only of the project, and I use it all the time.

Note that the last two options allow to open not only a tab, but also files that have not yet been opened. And each has its own other features.

440bx

  • Hero Member
  • *****
  • Posts: 5466
Re: Feature request/suggestion
« Reply #6 on: May 15, 2025, 08:05:11 pm »
The "Manage Source Editors" window is very convenient. It appears when you press "[Ctrl+Shift+W]", and you can immediately enter part of the file name in the filter.
It sure is convenient, I use it all the time.

Having the option of selecting from the list instead of the "Manage Source Editors" is just a matter of what is more convenient in a particular case, e.g, if the mouse was already on a tab then right clicking on it is the most convenient, unfortunately if the target tab isn't visible in the list then scrolling requires moving the mouse to the up or down arrow (which might be "far".)  It would be nice if the scrollwheel could be used instead.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11349
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request/suggestion
« Reply #7 on: May 15, 2025, 10:28:47 pm »
I get the reason.

But I don't feel that re-implementing a custom popup menu is the way to go. So with regards to how the popup works I don't think there is much that can be done.

And I do think that this is correctly done via popup.



There are various things that I could see as "acceptable". (But none I have time to do myself).

1)
Optionally grouping the units in some way into more levels of submenus. E.g. by starting letter(s). Or simple, sorted and every 20th starts a new sub menu (showing the start of the name of the first unit contained).
You then have to go through more nested submenus, but within each have quicker access.
Yet, that too will hit limits. E.g at 1000 units you have 50 submenus containing them....

2)
Adding the "src window mgr" to the context menu. Though, not the biggest fan. That is the start of blowing up that menu with way to many entries (as there will be countless more, every user have their favourite they want in there).
So this would need a "menu editor", like the "toolbar editor", wich would allow to customize the menus.


440bx

  • Hero Member
  • *****
  • Posts: 5466
Re: Feature request/suggestion
« Reply #8 on: May 15, 2025, 10:37:14 pm »
That's just one of those "nice to have" things.  I didn't mean to push something that is small yet may require a lot of time.

I'll just use the "Manage Source Editor" window.   I'll "survive" the extra step ;)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018