LeoJS 1.0.11 just landed! 🛸This release brings a handful of new features suggested by Edward — including context menu commands you can now access outside the usual LeoJS panels, directly by right-clicking in the file explorer or editor view.It also brings improvements to how LeoJS handles imports and script execution:
- Added "Go to Line In LeoJS Outline" (context menu in the VSCode file editor) — also offers to import the file if needed.
- Added "Import into LeoJS Outline" command (context menu in editor & explorer).
- Import commands now use relative paths when possible: When the Leo document and the file being imported are both inside the vscode workspace
- g.es now automatically opens the log pane when running user scripts or @button nodes.
- Scripts now run regardless of the write-script-file setting.
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/15c46c61-65f8-4adf-bc92-8f8612bb4194n%40googlegroups.com.
Thanks to Thomas's thorough testing and experimentation—specifically with reading and writing external files in new, unsaved Leo documents—several fixes have been made to both Leo and LeoJS in the past few days. These address issues related to the base directory used for resolving relative file paths during such file operations (e.g., @clean myFile.txt instead of @clean C:/myPath/myfile.txt).
As a result, I've released LeoJS 1.0.13, which includes these changes and fixes. They will also be included in the upcoming Leo 6.8.5.
I also want to thank Edward for the great command idea he suggested: integrating VS Code's context menu (in both regular file editors and the file explorer) with options such as "Go to line in outline" and "Import into outline".
("Go to line in outline" will offer to import with various @file node types if the file isn't already in the outline.)
These commands, combined with Leo's new default behavior of using relative file paths when importing external files, feel very natural and fun to use!
You can even try it instantly in vscode for the web by simply going to any repository on github and pressing the '.' dot on your keyboard to switch to the vscode web interface, (of course install LeoJS and create a Leo document), then click in vscode's explorer to open any file of your project, and then use the right-click context menu to see the command in the above screenshot.
These new features will be available in LeoInteg 1.0.24 as soon as Leo 6.8.5 is released.
Thanks so much for giving it a try—and for reporting any bugs or sharing feature suggestions. Your feedback really helps shape LeoJS! 😊
Félix
've released LeoJS 1.0.13, which includes these changes and fixes. They will also be included in the upcoming Leo 6.8.5.