> > 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. > > I have never had any interest in vsCode before, but after just brief look at the vsCode's "writing extension guides", I do believe it is possible to integrate Leo outline into vsCode quite easily. Of course this is just my first impression.
Recently I wrote in rust server to keep track of the history of any Leo outline. It communicates through http. vsCode has an extension API for registering virtual document providers. That seems to be a perfect spot to start. If you are interested we can join the efforts to make it work. You may find useful to look at the rust crates I have recently published: 1. fossil-delta <https://crates.io/crates/fossil-delta> 2. leo-ver-serv <https://crates.io/crates/leo-ver-serv> which uses fossil-delta 3. mini_leo <https://github.com/vitalije/mini_leo> (which recently got rust implementation of parsing Leo external files i.e. at-file files and loading .leo files) I just need to copy relevant code from mini_leo/rust for opening .leo files and reading at-file files into leo-ver-serv and it could be a server which serves both: 1. any requested node 2. outline structure To use it from vsCode, one have to register a virtualDocumentProvider for some specific URI schema. For example leo://(path to leo file)/#(some gnx) gives body of the node with given gnx in the given leo file. The server part I could build in just a few days. It is just a single executable file, that one can put anywhere on the system path. In leo-ver-serv there is already an implementation of drawing outline. It is written in CoffeeScript. That code can be used for displaying outline in the vsCode. If necessary it can be translated in TypeScript. Vitalije -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/11a266ed-5792-4e3e-92c8-a28cc4136d7f%40googlegroups.com.
