Improving LeoJS Website Search Functionality & Script Samples

63 views
Skip to first unread message

Félix

unread,
Sep 24, 2024, 11:42:16 PM9/24/24
to leo-editor

I've added a search feature to the new LeoJS website. (in the top-right corner)

search-box.png

And so I’d love to know:

What are your favorite features of leo besides basic outline editing, clones and file read/write and does the search feature give acceptable results for them?

For example, I was amazed to discover features like @rclick nodes that offer additional options through right-click menus, or that @commands are visible in the minibuffer. I thus made sure the website and the scripting-samples repository showed how to use those by adding more links and details.

That made me think that I surely was missing important stuff other leonistas would have found essential! Thus this little survey :)

Félix



Edward K. Ream

unread,
Sep 25, 2024, 6:18:12 AM9/25/24
to leo-e...@googlegroups.com
On Tue, Sep 24, 2024 at 10:42 PM Félix <felix...@gmail.com> wrote:

I've added a search feature to the new LeoJS website. (in the top-right corner)

And so I’d love to know:

What are your favorite features of leo besides basic outline editing, clones and file read/write and does the search feature give acceptable results for them?

- cff and clone-find give good results.
- There are no results for the beautify commands. Does LeoJS support them?

Edward

Thomas Passin

unread,
Sep 25, 2024, 8:45:35 AM9/25/24
to leo-editor
Custom menus that dispatch @commands, including @commands defined in myLeoSettings.leo.

Félix

unread,
Sep 27, 2024, 6:18:35 PM9/27/24
to leo-editor
Thanks for those comments! 

Thomas: Although @button and @command are implemented in LeoJS, custom menus are not. But, the custom menus may become feasible in vscode in some way in the future. I'll make sure to add details about this in the documentation when they do. 

Edward: About the beautify command: it's not been ported to LeoJS because the python library used for that is not available in javascript. But, of course, being in vscode, the vscode beautifier is already in place for python on external files, (and for all other languages) which is applied by default on 'save' - which is then automatically picked up by LeoJS.

Thanks for your insights and suggestions as always ! 

Félix

Reply all
Reply to author
Forward
0 new messages