Re: view-rendered plugin and mermaid.js
Ok, so this helped, thank you - but I still wasn't able to undock it from an existing window, but in other docs I was able to move it around.I was able to reset the local cache (db folder) and IT'S WORKING!! :-D Thanks so much for your help guys. - Kevin On Thu, 2020-08-13 at 18:13 -0700, lewis wrote: > 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. You will > then be able to drag and detach the VR3 pane. > > Regards > Lewis > > > On Friday, August 14, 2020 at 9:01:56 AM UTC+10, 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. > > > > -- > > You received this message because you are subscribed to a topic in > the Google Groups "leo-editor" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/leo-editor/KpI22_NJCz0/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > leo-editor+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/f290e3fb-4686-42bf-a5b8-7208a42827e4o%40googlegroups.com > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/ee1e168204d8e932101089d0d92c8fc03102a405.camel%40gmail.com.
Re: view-rendered plugin and mermaid.js
On Thu, Aug 13, 2020 at 1:31 PM Thomas Passin wrote: > 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. > That sounds like the simplest thing that could possibly work. Thanks, Thomas and Lewis, for your help explaining Leo. > If I'm right about this, I would be willing to try adding an @mermaid node > type to viewrendered3 if you decide that Leo is promising enough for your > project. It looks like it might be something that I'd like using myself. > Thanks. Adding support for a popular technology like mermaid will help many people. Edward -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS26X9mMmRZTwd%2BS95sKbPSq0RUrTV2He41JjSvAMbcNuQ%40mail.gmail.com.
Re: view-rendered plugin and mermaid.js
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. You will then be able to drag and detach the VR3 pane. Regards Lewis On Friday, August 14, 2020 at 9:01:56 AM UTC+10, 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. > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/f290e3fb-4686-42bf-a5b8-7208a42827e4o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 > see saved within the document on positioning. > > Is there a way I can reset the positioning? > Yes. Find the .leo directory in your user directory tree, and delete the db directory. All your outlines may be weird and changeable for a few close/reload cycles, but you should be able to get what you want. The .leo directory is usually at %USERPROFILE%. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/f45e34cd-450f-4ebd-aa56-3f7edeca8c63o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 positioning? On Thu, 2020-08-13 at 15:42 -0700, Thomas Passin wrote: > 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 this headline to your MyLeoSettings tree, then > restart Leo: > > @string central-dock-widget = body > > I had to add this to get what I considered desirable positioning. I > like to place the outline pane n the upper left, the Tabs pane in the > lower left, the body pane in the middle, and have the VR3 pane open > in the right hand side. > > > > > -- > > You received this message because you are subscribed to a topic in > the Google Groups "leo-editor" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/leo-editor/KpI22_NJCz0/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > leo-editor+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/2f338703-f6cf-4620-a81d-a000626fda26o%40googlegroups.com > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/6a1f27b50d203bc7fbcac1ee6646e6212a22e278.camel%40gmail.com.
Re: view-rendered plugin and mermaid.js
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 emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/925b6db2-6a3a-4ecd-bc53-14b8f138d2c3o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 this headline to your MyLeoSettings tree, then restart Leo: @string central-dock-widget = body I had to add this to get what I considered desirable positioning. I like to place the outline pane n the upper left, the Tabs pane in the lower left, the body pane in the middle, and have the VR3 pane open in the right hand side. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/2f338703-f6cf-4620-a81d-a000626fda26o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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: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. Comment out > viewrendered.py and add or uncomment viewrendered3.py. Then restart > Leo. Actually, you could run both plugins, but it's less confusing > and a better use of screen real estate not to. > > I don't recall if the version of the plugin in Leo 6.2.x final is the > same as its current version. If you want to run the devel branch > from GitHub, you will certainly get the current version. The way I > run Leo with the devel branch is to clone Leo's GitHub repository and > switch to the clone's devel branch. Then open a console window and > set the environmental variable > set PYTHONPATH=path\to\github-leo > Then run Leo from that console. I usually launch it this way - > python -m leo.core.runLeo --use-docks > If your outline and tab panes start out in strange locations, drag > them around and then restart Leo. You may need to do this a fe times > before the positions settle down. I don't know why that happens. > Edward says it is a quirk of the QT5 system that we can't do anything > about. > Open and close the plugin using . > > > > 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 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 made to > > > display what is basically a Chrome browser in a panel or a free > > > floating frame - see > > > > > > https://groups.google.com/forum/#!topic/leo-editor/hweJvjeYiEM. > > > > > > The development might take some time, and just viewing the output > > > images in VR3 might be all you really need. > > > > > > > > > On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Edward K. Ream > > > wrote: > > > > 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 mermaid. > > > > > > > > When you think js, remember vs code :-) There are several > > > > mermaid extensions in vs code. > > > > > > > > Félix is working on leoInteg as we speak. I am excited about > > > > the partnership of leoInteg and "traditional" Leo, leo on the > > > > desktop. > > > > > > > > Edward > > > > -- > > You received this message because you are subscribed to a topic in > the Google Groups "leo-editor" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/leo-editor/KpI22_NJCz0/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > leo-editor+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/c5ad72ed-4c9e-49d9-a666-63e9099a8661o%40googlegroups.com > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/09ef52a85bea7e62d79df80b183ad77c0f70113d.camel%40gmail.com.
Re: view-rendered plugin and mermaid.js
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 you're interested, here's a bit of sample code I've used in the past which generates the dot. There's lots more where this came from too, just need to figure out how to make it work for Leo :-) ``` import networkx as nx import pydot as pd G = nx.DiGraph() # DEFINE NODES G.add_node('Thing1', label='Thing 1' shape='mRecord') G.add_node('Thing2', label='Thing 2', shape='mRecord') # DEFINE EDGES # stage 1 G.add_edge('Thing1', 'Thing2', label='') # reverse the graph, since edges are added in dependsOn order pdg = nx.nx_pydot.to_pydot(G.reverse()) # type: pd.Dot pdg.set_graph_defaults(rankdir='RL') print(pdg) pdg.write("./_temp/thing.gv.svg", format="svg") ``` Kevin On Thursday, August 13, 2020 at 2:31:36 PM UTC-4 tbp1...@gmail.com wrote: > 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 viewrendered3 if you decide that Leo is promising enough for your > project. It looks like it might be something that I'd like using myself. > > > On Thursday, August 13, 2020 at 1:32:49 PM UTC-4, Thomas Passin wrote: >> >> 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. >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/9d293e49-c4dc-48e3-b8f2-62e96e0c740en%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 viewrendered3 if you decide that Leo is promising enough for your project. It looks like it might be something that I'd like using myself. On Thursday, August 13, 2020 at 1:32:49 PM UTC-4, Thomas Passin wrote: > > 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. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/af8052da-152e-43aa-8c35-b3ce80a95b82o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 course is incredible!) > VR (and VR3) do in fact use a QT browser panel. > > > On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Edward K. Ream wrote: >> >> 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 mermaid. >> >> When you think js, remember vs code :-) There are several mermaid >> extensions in vs code. >> >> Félix is working on leoInteg as we speak. I am excited about the >> partnership of leoInteg and "traditional" Leo, leo on the desktop. >> >> Edward >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/8e335e34-0549-4d83-aae3-5426b58b0b98o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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. Comment out viewrendered.py and add or uncomment viewrendered3.py. Then restart Leo. Actually, you could run both plugins, but it's less confusing and a better use of screen real estate not to. I don't recall if the version of the plugin in Leo 6.2.x final is the same as its current version. If you want to run the devel branch from GitHub, you will certainly get the current version. The way I run Leo with the devel branch is to clone Leo's GitHub repository and switch to the clone's devel branch. Then open a console window and set the environmental variable set PYTHONPATH=path\to\github-leo Then run Leo from that console. I usually launch it this way - python -m leo.core.runLeo --use-docks If your outline and tab panes start out in strange locations, drag them around and then restart Leo. You may need to do this a fe times before the positions settle down. I don't know why that happens. Edward says it is a quirk of the QT5 system that we can't do anything about. Open and close the plugin using . > > 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 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 made to display what is >> basically a Chrome browser in a panel or a free floating frame - see >> >> https://groups.google.com/forum/#!topic/leo-editor/hweJvjeYiEM. >> >> The development might take some time, and just viewing the output images >> in VR3 might be all you really need. >> >> On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Edward K. Ream wrote: >> >>> 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 mermaid. >>> >>> When you think js, remember vs code :-) There are several mermaid >>> extensions in vs code. >>> >>> Félix is working on leoInteg as we speak. I am excited about the >>> partnership of leoInteg and "traditional" Leo, leo on the desktop. >>> >>> Edward >>> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/c5ad72ed-4c9e-49d9-a666-63e9099a8661o%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 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 made to display what is > basically a Chrome browser in a panel or a free floating frame - see > > https://groups.google.com/forum/#!topic/leo-editor/hweJvjeYiEM. > > The development might take some time, and just viewing the output images > in VR3 might be all you really need. > > On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Edward K. Ream wrote: > >> 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 mermaid. >> >> When you think js, remember vs code :-) There are several mermaid >> extensions in vs code. >> >> Félix is working on leoInteg as we speak. I am excited about the >> partnership of leoInteg and "traditional" Leo, leo on the desktop. >> >> Edward >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/123173a1-610c-4cb2-9945-d56b98fddc6en%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 made to display what is basically a Chrome browser in a panel or a free floating frame - see https://groups.google.com/forum/#!topic/leo-editor/hweJvjeYiEM. The development might take some time, and just viewing the output images in VR3 might be all you really need. On Thursday, August 13, 2020 at 9:44:38 AM UTC-4, Edward K. Ream wrote: > > 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 mermaid. > > When you think js, remember vs code :-) There are several mermaid > extensions in vs code. > > Félix is working on leoInteg as we speak. I am excited about the > partnership of leoInteg and "traditional" Leo, leo on the desktop. > > Edward > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/54949f76-3bda-4421-be81-60cf8c843baao%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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, Edward K. Ream wrote: > > 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 mermaid. > > When you think js, remember vs code :-) There are several mermaid > extensions in vs code. > > Félix is working on leoInteg as we speak. I am excited about the > partnership of leoInteg and "traditional" Leo, leo on the desktop. > > Edward > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/df53ba22-7f64-40a3-8b63-9a8c61b9e9beo%40googlegroups.com.
Re: view-rendered plugin and mermaid.js
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 mermaid. When you think js, remember vs code :-) There are several mermaid extensions in vs code. Félix is working on leoInteg as we speak. I am excited about the partnership of leoInteg and "traditional" Leo, leo on the desktop. Edward -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS0oCu-DpR%2B1E90gky7TDAJZeoyOx%2B%3DeSGgpd6_GqM_iZQ%40mail.gmail.com.