Created attachment 121982 [details] screenshot this is an enhancement request 1- click on "Tools/Macros/Organize Macros/LibreOffice BASIC" 2- select any module from the "Macro From" panel and click "Edit" 3- expand the selected module item list from the "Object catalog" actually there's no way to sort the item list... I think it would be useful to right click on the "module" and have at least a "sort by name" option as you may see from my screenshot atually the list just follows the same order the macros are written in the BASIC panel. sometimes when I have to search the code of a specific macro it would be a time saver to me just to sort the items list in alphabetical order and then click and the desired one. probably 2 kind of sort options would be enough - current behaviour (order in which the macros appear in the BASIC panel) - alphabetical order (A -> Z and maybe even Z -> A) thanks for considering this enhancement request
Valid enhancement, setting as new.
Code pointers: - Adding a menu entry: https://gerrit.libreoffice.org/c/core/+/98783 - Basic IDE https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/bastype2.cxx?r=bb06f513#160 https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/basobj2.cxx?r=d847ca56&fi=GetMethodNames#360
*** Bug 145977 has been marked as a duplicate of this bug. ***
Hi, trying to understand this easyhack. Modules are sorted but i can't see any contextual menu. Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: f0a79b4dc1e96eb5dda35097d0975aae9f3e0c98 CPU threads: 6; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR Calc: threaded
(In reply to Regis Perdreau from comment #4) > Hi, trying to understand this easyhack. > > Modules are sorted but i can't see any contextual menu. This is about adding the sorting possibility to the dialog you see when you are editing a macro, see screenshot attachment 121982 [details]. You can see the sorting context menu added by Andreas when you open Tools - Macros - Organize Macros - Basic and then right-click a macro name in the list box "Existing Macros In: ..."
Hi, I'd like to take on this EasyHack. I've assigned it to myself accordingly. My understanding is at the moment, there is the Tools/Macros/Organize Macros menu which allows you to either choose to sort "Alphabetically" or in "Proper Order" In the sidebar listing the macros on the editing screen, however, there is no such option to sort, which is the focus of this enhancement request. Are there any mistakes in my understanding? Thanks for your time!
(In reply to Jim Chen from comment #6) > Hi, I'd like to take on this EasyHack. I've assigned it to myself > accordingly. > > My understanding is at the moment, there is the Tools/Macros/Organize Macros > menu which allows you to either choose to sort "Alphabetically" or in > "Proper Order" > > In the sidebar listing the macros on the editing screen, however, there is > no such option to sort, which is the focus of this enhancement request. > > Are there any mistakes in my understanding? No mistakes detected.