how to create buttons for @file nodes that stay?

33 views
Skip to first unread message

Matt Wilkie

unread,
Jul 12, 2019, 3:33:28 AM7/12/19
to leo-editor
How does one create buttons for @file nodes that are saved in a .leo file? Basically I want to re-create what the [script-button] button does, but make the results persistent (and to be able to specify the label text).

See commit 19aef04dead2242f7633b0f80fdfdeb7be6b5af4 in desktop-links branch for an example .leo file, and screenshot below for what I mean.

Edward K. Ream

unread,
Jul 12, 2019, 5:11:07 AM7/12/19
to leo-editor
On Fri, Jul 12, 2019 at 2:33 AM Matt Wilkie <map...@gmail.com> wrote:
How does one create buttons for @file nodes that are saved in a .leo file? Basically I want to re-create what the [script-button] button does, but make the results persistent (and to be able to specify the label text).

There are several ways.  You could clone all or part of an @file node and make it a child of an @button node.

Edward

Matt Wilkie

unread,
Jul 12, 2019, 2:53:53 PM7/12/19
to leo-editor

How does one create buttons for @file nodes that are saved in a .leo file? Basically I want to re-create what the [script-button] button does, but make the results persistent (and to be able to specify the label text).

There are several ways.  You could clone all or part of an @file node and make it a child of an @button node.

ok, done, thank you.

See leo\scripts\Desktop-integration.leo and https://github.com/leo-editor/leo-editor/issues/1244

matt
Reply all
Reply to author
Forward
0 new messages