Re: vs code chronicles: code folding and Leo's importers

2020-08-13 Thread Edward K. Ream
On Wed, Aug 12, 2020 at 4:43 PM jkn wrote: I can't remember if I've mentioned Origami, the old Transputer Development > System's (DOS-based) editor. It had a wonderful implementation and key > binding for code folding. > A little googling took me here

Re: vs code chronicles: code folding and Leo's importers

2020-08-13 Thread Thomas Passin
Here's someone who re-implemented Origami. Here he talks a bit about how folding was implemented (double-linked n-trees) - http://wotug.org/parallel/tools/editors/folding-editors/fe-mh/README.html If you go to the parent directory, you can get the entire source (in C, apparently from 1997). O

view-rendered plugin and mermaid.js

2020-08-13 Thread k-hen
Hi All, I was wondering if it's possible to get mermaid.js [https://mermaid-js.github.io/] working via the view-rendered plugin. It's also possible that I'm just missing something. I'm aware that it works through LeoVue (which is awesome) but I'd really like to see it in the native editor. A

Re: vs code chronicles: code folding and Leo's importers

2020-08-13 Thread Edward K. Ream
On Thu, Aug 13, 2020 at 7:33 AM Thomas Passin wrote: > Here's someone who re-implemented Origami. Here he talks a bit about how > folding was implemented (double-linked n-trees) - > > http://wotug.org/parallel/tools/editors/folding-editors/fe-mh/README.html > Thanks for this. Imo, emacs org mod

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Edward K. Ream
On Thu, Aug 13, 2020 at 8:21 AM k-hen wrote: I was wondering if it's possible to get mermaid.js [ > https://mermaid-js.github.io/] working via the view-rendered plugin. > Thanks for the link to mermaid! Leo doesn't do js directly, so I don't think the vr plugin is likely ever going to support m

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread k-hen
I understand, I thought view-rendered may have been a qt html panel but I suppose it's rich text or something like that. The integration project seems very interesting ... I'll keep an eye on it - thanks! (and Leo of course is incredible!) On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Ed

Documented Database Use Case

2020-08-13 Thread k-hen
If you don't mind, I'd like to present the community with the use-case I'm trying to achieve to fish for some ideas about how I might handle things. Essentially I have a large scale system of several databases and related ETL that I'm building and would like to take the literate route to build

Re: Nodes arbitrairily contract when inserting near the root node

2020-08-13 Thread Félix
To Edward, or Vitalije, ... or anyone really :) (trying to debug yet another behavior in leoInteg, only to find out that Leo does it in the first place, so my code was correct all along!!) Is this also related to the fact that clones hidden inside folded parents, seem to inherit their (other "t

Losing Clones after restart

2020-08-13 Thread k-hen
Hi, I'm not sure if this is a bug or if I'm doing something wrong. I've created some cloned nodes, and the icon is correct and they work as I expect, but as soon as I close & reopen leo they become non-cloned (copied) nodes. I first tried using an in-place clone (ctrl+`) then dragging the clone

Re: Nodes arbitrairily contract when inserting near the root node

2020-08-13 Thread Félix
More Details: I'm currently testing keeping the (id) identity of nodes with a *murmurhash* of their 'archived positions' json string representation. Also, in vscode, the collapsed state is preserved by the said 'id'... Thats why i'm looking into clone expand/collapse *exact* behavior matching. -

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
The VR3 plugin can display the diagram outputs. It wouldn't update automatically when you made a change - you would have to refresh the plugin view to see that changed image. It *may* be possible to get mermaid to run in a panel inside Leo. It could be launched using graal, and Leo can be mad

Re: Documented Database Use Case

2020-08-13 Thread k-hen
This is very helpful, thank you. I think using including images would be fine, I'm also flirting a bit with maybe trying out the leo asciidoc system over markdown and/or rst - which I have a harder time connecting with. If you run the SQL from LEO, do you happen to know if it's possible to capt

Re: Losing Clones after restart

2020-08-13 Thread Thomas Passin
You aren't doing anything wrong, but it shouldn't be happening. I don't lose my clones that way. I happen to be on the devel branch but I don't think that's a factor here: Leo 6.3-devel, devel branch, build 6a92120f1a 2020-06-23 09:38:53 -0500 Python 3.8.2, PyQt version 5.14.2 Windows 10 AMD64

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread k-hen
I don't mind refreshing at all. Pardon the naive question, but how would I go about trying VR3? On Thursday, August 13, 2020 at 1:32:49 PM UTC-4 tbp1...@gmail.com wrote: > The VR3 plugin can display the diagram outputs. It wouldn't update > automatically when you made a change - you would hav

Re: Losing Clones after restart

2020-08-13 Thread k-hen
OK, so I've been able to repeat the behaviour at least. I created a new outline and cloned a node and it worked fine. Then for my use case I have an @auto-md clone_test.md with a child node that is being cloned and moved out, and that one is also dropping the clone after restarting leo :-/ O

Re: Losing Clones after restart

2020-08-13 Thread k-hen
I saw another post from today about cloning, so I've checked out the current devel branch - and unfortunately it's happening there for me also :-( The post says something about 'clones' branch, but I don't see one of those. On Thursday, August 13, 2020 at 1:46:13 PM UTC-4 k-hen wrote: > OK, so

Re: Nodes arbitrairily contract when inserting near the root node

2020-08-13 Thread Edward K. Ream
On Thu, Aug 13, 2020 at 12:21 PM Félix wrote: > To Edward, or Vitalije, ... or anyone really :) > > (trying to debug yet another behavior in leoInteg, only to find out that > Leo does it in the first place, so my code was correct all along!!) > My apologies for the confusion. I have made a simil

Re: Nodes arbitrairily contract when inserting near the root node

2020-08-13 Thread Edward K. Ream
On Thu, Aug 13, 2020 at 12:26 PM Félix wrote: > More Details: I'm currently testing keeping the (id) identity of nodes > with a *murmurhash* of their 'archived positions' json string > representation. Also, in vscode, the collapsed state is preserved by the > said 'id'... Thats why i'm looking in

Re: vs code chronicles: code folding and Leo's importers

2020-08-13 Thread k-hen
Not sure if it's relevant, but it might be worth looking at Tree-Sitter which I've always found interesting. It was being developed for Atom prior to the Microsoft GitHub acquisition. More recently, CodeMirror (an alternative to Monaco) has followed suite and implemented something similar, call

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 1:39:17 PM UTC-4, k-hen wrote: > > I don't mind refreshing at all. Pardon the naive question, but how would I > go about trying VR3? > You edit the MyLeoSettings.leo file, which you can open from Leo's Settings menu. Find a node titled @enabled plugins. Commen

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 10:00:49 AM UTC-4, k-hen wrote: > > I understand, I thought view-rendered may have been a qt html panel but I > suppose it's rich text or something like that. > The integration project seems very interesting ... I'll keep an eye on it > - thanks! > (and Leo of

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
Now that I've looked at mermaid a little more, I think that you could write the mermaid diagram syntax in a Leo node - since it's just text - ,and then run Mermaid on it using the command line version of mermaid. If I'm right about this, I would be willing to try adding an @mermaid node type to

Re: Documented Database Use Case

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 1:34:55 PM UTC-4, k-hen wrote: > > This is very helpful, thank you. I think using including images would be > fine, I'm also flirting a bit with maybe trying out the leo asciidoc system > over markdown and/or rst - which I have a harder time connecting with. > If

Re: Nodes arbitrairily contract when inserting near the root node

2020-08-13 Thread Félix
Thanks for those details and info! Wanting to refresh the least possible parts of the UI at each user action is what caused me to return into sheding some light on those details... Exploring further, and trying out more available options in vscode's refresh and rendering has made this issue le

Re: vs code chronicles: code folding and Leo's importers

2020-08-13 Thread jkn
My comments here have probably been overtaken by other postings. But yes, IIRC the folding marks just appeared in the resulting output occam file as sentinel-like marks. Origami had the advantage that it was only really used for occam, so you could be sure about what marks to use. I can't reme

Re: Losing Clones after restart

2020-08-13 Thread Félix
That's weird, For a leo file to change between having 2 positions be clone of each other, to being two distinct nodes, happening to have the same headline and content, requires a non-trivial change... Would be curious to see if you dont have scripts or plugins enabled that would make changes t

Re: Losing Clones after restart

2020-08-13 Thread k-hen
Hi Felix, I am also perplexed. Note that the clones which are not a descendant of the file don't have this behaviour either. I first encountered this in my large document using the pip version (6.2). I was able to reproduce this however using both a new/fresh/extremely small .leo file, I was a

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread k-hen
That would be incredible. I'm definitely willing to take it further (but I still have to lots to learn!). mermaid is based on graphviz's dot syntax which is a bit more powerful (although not 100% compatible). Graphviz/Dot also has some python libraries for dot available which is nice too. If y

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread perceptiblelogic
Ok, thanks! I've got this going, the docks feature is interesting.Strangely I can move the body and the tabs, but not the VR3 panel...I've tried restarting & redragging it a few times but still no luck :-/ On Thu, 2020-08-13 at 11:24 -0700, Thomas Passin wrote: > On Thursday, August 13, 2020 at 1:

Re: Losing Clones after restart

2020-08-13 Thread Thomas Passin
Is it correct that you only are seeing this behavior on (a?) auto-md file? On Thursday, August 13, 2020 at 5:46:36 PM UTC-4, k-hen wrote: > > Hi Felix, > I am also perplexed. Note that the clones which are not a descendant of > the file don't have this behaviour either. > > I first encountered th

Re: Losing Clones after restart

2020-08-13 Thread perceptiblelogic
I've been thinking about this a bit more, and I'm thinking this is probably expected and I just wasn't thinking about it properly.Since this is an *auto* node, perhaps it's clearing & reloading the descdendant nodes of my file on the load of Leo.So the clone is there originally, then it deletes the

Re: Losing Clones after restart

2020-08-13 Thread Thomas Passin
Aha! I duplicated this behavior. I got the same loss of clone-hood in an @auto-md tree. I did not get it in an @file tree. When I cloned a node in an @auto-md tree and dragged it out of the tree, it still lost its clone status whe I closed and reloaded the file. On Thursday, August 13, 2020

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 6:22:54 PM UTC-4, k-hen wrote: > > Ok, thanks! I've got this going, the docks feature is interesting. > Strangely I can move the body and the tabs, but not the VR3 panel... > I've tried restarting & redragging it a few times but still no luck :-/ > Add a node with

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
You need to have Docutils installed to have VR3 render Restructured text, and you need Markdown installed to render (no surprise here) markdown. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving ema

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread perceptiblelogic
This worked! I was able to get it for a new test file BUT the original file has VR3 docked *inside* the body and I can't seem to detach it.It seems these settings are on a per-file basis, but there's nothing I can see saved within the document on positioning. Is there a way I can reset the po

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 7:01:56 PM UTC-4, k-hen wrote: > > This worked! I was able to get it for a new test file BUT the > original file has VR3 docked *inside* the body and I can't seem to detach > it. > It seems these settings are on a per-file basis, but there's nothing I can

Re: Losing Clones after restart

2020-08-13 Thread perceptiblelogic
Well, Glad I'm in good company :-) I'm thinking the workaround is to use a the full path for every @auto headline, rather than nesting @path nodes?.Is there perhaps a way to do expansion on the filename within a headline or something so I don't need to repeat it all? It doesn't seem wise to clone t

Re: Losing Clones after restart

2020-08-13 Thread Thomas Passin
Why is it that you want to use auto-md trees? You could consider ReStructured text, for example. On Thursday, August 13, 2020 at 7:31:02 PM UTC-4, k-hen wrote: > > Well, Glad I'm in good company :-) > > I'm thinking the workaround is to use a the full path for every @auto > headline, rather than

Re: view-rendered plugin and mermaid.js

2020-08-13 Thread lewis
There is a setting in LeoSettings : *@bool use-vr-dock = False* * True: The VR dock is (can be) moved.* * False: (Recommended) The VR dock splits the body dock.* * *Warning*: You may have to clear caches if you change this setting.* Add that setting to your myLeoSettings file, set to True. Yo

Re: Losing Clones after restart

2020-08-13 Thread Thomas Passin
On Thursday, August 13, 2020 at 7:31:02 PM UTC-4, k-hen wrote: > > [snip] > Would you file a bug issue on this? The issue URL is https://github.com/leo-editor/leo-editor/issues -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe f