Recent

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

440bx

  • Hero Member
  • *****
  • Posts: 4864
Feature request/suggestion
« on: November 09, 2024, 05:34:34 am »
Hello,

When a file is opened in two editor windows, selecting the same file to show on the second editor window requires finding the file among the tabs.  That seems to be the only way to switch to the "secondary" file editing window.  Note, attempting to select the window of interest using the "Source Editor Window Manager" does not result in the "secondary" file editing window to be selected.  This is inconvenient and time consuming when many files are open (some in both editing windows.)

Feature request: an easier, more straightforward, way to cause the "secondary" file editing window to display the secondary file.  Possibilities that come to mind are:

1. when right clicking on the file's editing tab, the popup menu could show the option "display in secondary editing window" if the file is also open in the secondary source editing window (refer to first attachment). 

2. switch to (bring into view) the secondary file's editing window by selecting the file from the popup menu's submenu "other tabs" (refer to the second attachment.)

3. switch to the secondary window using the "Source Editor Window Manager" (refer the third attachment.)  NOTE: the Window Manager shows the file is opened twice but selecting either option does _not_ activate the secondary editing window for the file (should this be considered a bug ?)

Thank you for reading... comments welcome.


 
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

n7800

  • Full Member
  • ***
  • Posts: 190
Re: Feature request/suggestion
« Reply #1 on: November 09, 2024, 08:58:19 am »
Just add the "Go to next editor with same Source" command to the editor toolbar or mainbar (or assign a keyboard shortcut). I found it easily using a filter.

n7800

  • Full Member
  • ***
  • Posts: 190
Re: Feature request/suggestion
« Reply #2 on: November 09, 2024, 09:04:40 am »
3. switch to the secondary window using the "Source Editor Window Manager" (refer the third attachment.)  NOTE: the Window Manager shows the file is opened twice but selecting either option does _not_ activate the secondary editing window for the file (should this be considered a bug ?)

In "Manage Source Editors" double-clicking or pressing [Enter] opens a file for me...

But now this window is not very suitable for your purpose, since you need to enter the file name manually, and it does not display in which editor the file is opened. I think such a function request would be useful (show the editor next to each file, or even group files by them).

n7800

  • Full Member
  • ***
  • Posts: 190
Re: Feature request/suggestion
« Reply #3 on: November 09, 2024, 09:06:16 am »
1. when right clicking on the file's editing tab, the popup menu could show the option "display in secondary editing window" if the file is also open in the secondary source editing window (refer to first attachment). 

2. switch to (bring into view) the secondary file's editing window by selecting the file from the popup menu's submenu "other tabs" (refer to the second attachment.)

I think this will be useful. In fact, it will be a quick access to the command I specified in my first message.
« Last Edit: November 09, 2024, 09:10:32 am by n7800 »

n7800

  • Full Member
  • ***
  • Posts: 190
Re: Feature request/suggestion
« Reply #4 on: November 09, 2024, 09:07:19 am »
I will allow myself to recommend you to choose a better topic name. Although my previous offer was not used before... ((

EDIT: To the wrong user ))
« Last Edit: November 09, 2024, 09:16:33 am by n7800 »

440bx

  • Hero Member
  • *****
  • Posts: 4864
Re: Feature request/suggestion
« Reply #5 on: November 09, 2024, 09:20:48 am »
Just add the "Go to next editor with same Source" command to the editor toolbar or mainbar (or assign a keyboard shortcut). I found it easily using a filter.
Nice suggestion but, I've run out of key combinations that are somewhat logical to carry out a function.  Anything that comes to mind that would make sense is already used for something else.  As it is, I already have key mapping conflicts.  That's why I wanted some key combinations to just be toggles, that way the doing and undoing of something use the same key combination instead of two (of course, not everything is susceptible to be a toggle.)

In "Manage Source Editors" double-clicking or pressing [Enter] opens a file for me...
The file is already open and the "Manage Source Editors" shows it opened twice (as it should) but, clicking on either one does _not_ show the secondary window (IMO, it should, every option in the list should be associated with a specific editor window.)

I will allow myself to recommend you to choose a better topic name again. Although you did not use my previous suggestion ((
I have no idea what you're referring to.  Some features are not easy to define in the few words that are visible in the topic header.  At least "Feature request/suggestion" is visible and clearly identifies what the post is for.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

440bx

  • Hero Member
  • *****
  • Posts: 4864
Re: Feature request/suggestion
« Reply #6 on: November 09, 2024, 09:23:06 am »
EDIT: To the wrong user ))
Now that explains why I couldn't make any sense of your directing that comment to me.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4541
  • I like bugs.
Re: Feature request/suggestion
« Reply #7 on: November 18, 2024, 06:12:22 am »
3. switch to the secondary window using the "Source Editor Window Manager" (refer the third attachment.)  NOTE: the Window Manager shows the file is opened twice but selecting either option does _not_ activate the secondary editing window for the file (should this be considered a bug ?)
Yes it was buggy. In commit ff8dd023f2a3 I added support for multiple source editor windows. Please test.
There is still something fishy happening when I close my other editor window. The count is still 2 and now the window number 2 has all editors.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018