First I'd like to apologize for just asking this on github, I didnt realise here was perhaps a better place to ask this kind of thing...
I am interested what editor you intend to use? Maybe I could help.
I've just cross linked to this thread from there
I 'switched' to using vsCode & found out it has a flexible outline control available for expansions/plugins : I figured it would be easier & better for me.
Oh joy. Thanks for this.Edward
All this functionality comes from rls - rust language services a server written in rust which analyzes code, builds it, runs it,...
Perhaps Leo should use rls at least when editing rust.
Got so far as to browse with appropritate node icons.
a part from editing as in leo, long term goals are to Go-to appropriate line in generated files when debugging/breakpoints etc.. (Reproducing part of xcc-nodes behaviour, see http://xccnode.sourceforge.net/)
and have file-generating 'at' nodes show their derived line number instead of the body-pane's line number (Also reproducing xcc-nodes)
Added screenshot to readme:
Impressive progress. This is a pretty exciting development. While many "viewers" have been demonstrated this is one of the first "Leo in an editor" type demonstrations I've seen. Nice work. I look forward to seeing where this goes.
Now that I've reached this milestone I'm going to cleanup/refactor the code : The js (typescript) part is not too bad, but the python side has no classes (just functions and globals) so this needs a little organisation!Then next (maybe this weekend) I'll make the body pane show actual body of selected node and permit tree and body edition and saving.
First Prototype Goal Achieved!
(in case someone's trying some kind of vscode integration)Just a note about 'force open' a particular file when writing a vscode extension: I just spent time reading about vsCode's definition and behaviour of what it considers a 'workspace', and also, a project's root folder.
Turns out that by default, they are the same, the root folder you've opened, lets say a project's folder, is what it considers its workspace and that there can only be one workspace at a time in an opened instance of vscode.
But most importantly, when [the workspace is] changed it *restarts* all extensions! oops! Goes to show i'm pretty new to vscode!
leointeg now updated with 'real' editable body pane made out of a fake document in a custom filesystem. does not update leo side yet.
Just a copy / paste in case someone joins this thread: