LeoJS - How To Add New Settings?

33 views
Skip to first unread message

Thomas Passin

unread,
Jun 22, 2024, 10:43:03 PM (7 days ago) Jun 22
to leo-editor
LeoJS's settings are handled by VSC.  I don't see how to add one that isn't already listed.  For example, the new prefer-nav-pane setting.  Also, is there a way to add an outline-specific setting?

Félix

unread,
Jun 22, 2024, 11:39:02 PM (7 days ago) Jun 22
to leo-editor
They are handled exactly like in Leo, with @settings node, etc.. 

LeoJS will read your myLeoSettings.leo the same as  the original Leo, and will honor all settings that normally apply when opening your Leo file.

Thomas Passin

unread,
Jun 23, 2024, 7:01:53 AM (6 days ago) Jun 23
to leo-editor
Oh, of course.  Silly of me. I saw those VSC settings and imagined that they had replaced Leo's @settings trees. Thanks.

Félix

unread,
Jun 24, 2024, 6:16:19 PM (5 days ago) Jun 24
to leo-editor
Haha! No problem! 

 :)

In case someone wants to see a use-case of changing/using Leo settings in LeoJS, there's a section in this video https://youtu.be/M_mKXSbVGdE?t=240 (starting at 4:00 in the video) specifically about settings.


Reply all
Reply to author
Forward
0 new messages