Feature request/suggestion lazarus / 9-Editor ---------------------------------------------------------------------- 440bx · 2024-11-09 04:34 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. ---------------------------------------------------------------------- n7800 · 2024-11-09 07:58 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 · 2024-11-09 08:04 Quote from: 440bx on November 09, 2024, 05:34:34 am3. 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 · 2024-11-09 08:06 Quote from: 440bx on November 09, 2024, 05:34:34 am1. 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. ---------------------------------------------------------------------- n7800 · 2024-11-09 08:07 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 )) ---------------------------------------------------------------------- 440bx · 2024-11-09 08:20 Quote from: n7800 on November 09, 2024, 08:58:19 amJust 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.) Quote from: n7800 on November 09, 2024, 09:04:40 amIn "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.) Quote from: n7800 on November 09, 2024, 09:07:19 amI 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. ---------------------------------------------------------------------- 440bx · 2024-11-09 08:23 Quote from: n7800 on November 09, 2024, 09:07:19 amEDIT: To the wrong user )) Now that explains why I couldn't make any sense of your directing that comment to me. ---------------------------------------------------------------------- JuhaManninen · 2024-11-18 05:12 Quote from: 440bx on November 09, 2024, 05:34:34 am3. 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.