Bug 97169 - macro object catalog items should be sortable
Summary: macro object catalog items should be sortable
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Jim Chen
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp
: 145977 (view as bug list)
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2016-01-16 06:01 UTC by tommy27
Modified: 2024-08-07 19:39 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (39.41 KB, image/png)
2016-01-16 06:01 UTC, tommy27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tommy27 2016-01-16 06:01:33 UTC
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
Comment 1 raal 2016-01-17 16:39:00 UTC
Valid enhancement, setting as new.
Comment 3 Heiko Tietze 2021-12-06 12:48:31 UTC
*** Bug 145977 has been marked as a duplicate of this bug. ***
Comment 4 Regis Perdreau 2024-07-25 19:31:30 UTC
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
Comment 5 Buovjaga 2024-08-07 15:58:56 UTC
(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: ..."
Comment 6 Jim Chen 2024-08-07 19:23:09 UTC
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!
Comment 7 Buovjaga 2024-08-07 19:39:39 UTC
(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.