Wish IDE menu option 'Macros' (B4X)

walt61

Well-Known Member
Licensed User
Longtime User
I like the macros concept but am not fond of repeating (and possibly maintaining) them in each project's source, and when there are many of them, the IDE window's title bar can become a bit convoluted (I do realise that adding macros to the title bar is optional).

Hence this suggestion: let the IDEs have a menu option 'Macros' that can be populated by the developer, perhaps something like:
- Tools / Configure Paths: an additional optional path for the macro definitions file
- a developer-made macro definitions file contains the macro definitions (duh)
- macro definitions can be grouped
- the groups would become sub-menus in the Macros menu

Example:
B4X:
Group=Misc
Macro1=B4XOrderedMap Doc, https://www.b4x.com/android/forum/threads/b4x-b4xorderedmap-get-first-item-nth-item-and-last-item.118642/
Macro2=B4XPages Export, ide://run?File=%B4X%\Zipper.jar&Args=Project.zip

Group=Layouts
Macro1=Sync Layouts, ide://run?File=%ADDITIONAL%\JsonLayouts.jar&Args=%PROJECT%&Args=%PROJECT_NAME%
Macro2=JsonLayouts folder, ide://run?File=%WINDIR%\explorer.exe&Args=%PROJECT%\JsonLayouts

The Macros menu would then look like:
B4X:
Macros
    Misc
        B4XOrderedMap Doc
        B4XPages Export
    Layouts
        Sync Layouts
        JsonLayouts folder
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…