Create custom menu items by referencing your existing buttons

42 views
Skip to first unread message

lewis

unread,
Jan 14, 2018, 6:05:02 AM1/14/18
to leo-editor
I'm not sure if anyone is aware that you can create custom menu items by referencing your existing buttons.
Create an @menu>@item 'name' node with a matching @button 'name' already present in your working or myLeoSettings leo file. There is no need to have any body text in the @item node. All that's required is for the names to match, it will be recognised and show as a menu item.

Regards
Lewis

Edward K. Ream

unread,
Jan 16, 2018, 11:29:50 AM1/16/18
to leo-editor
On Sun, Jan 14, 2018 at 5:05 AM, lewis <lewi...@operamail.com> wrote:
I'm not sure if anyone is aware that you can create custom menu items by referencing your existing buttons.
Create an @menu>@item 'name' node with a matching @button 'name' already present in your working or myLeoSettings leo file. There is no need to have any body text in the @item node. All that's required is for the names to match, it will be recognised and show as a menu item.

​Nice.  I rather doubt I knew this explicitly ;-)

Edward

lewis

unread,
Jan 16, 2018, 6:49:32 PM1/16/18
to leo-editor
It seemed like an unintended 'feature' to me :)

Edward K. Ream

unread,
Jan 17, 2018, 3:58:34 AM1/17/18
to leo-editor
On Tue, Jan 16, 2018 at 5:49 PM, lewis <lewi...@operamail.com> wrote:
It seemed like an unintended 'feature' to me :)

​@command and @button create commands, so I see no reason to do anything about this situation.  Does it bother you?

Edward

lewis

unread,
Jan 17, 2018, 8:10:10 AM1/17/18
to leo-editor
Not at all

On Wednesday, January 17, 2018 at 7:58:34 PM UTC+11, Edward K. Ream wrote:

...  Does it bother you?
Reply all
Reply to author
Forward
0 new messages