I have fixed some bugs when switching between the editor and RsT views. I 
also have made it possible to optionally use a custom css  stylesheet for 
each view.  The name of the invocation command is changed to 
*z-open-freewin*.  I have added an extensive docstring that contains 
instructions about how to use the optional css stylesheets.  The version 
number is now 1.0b6.

Please give this Freewin plugin a try and let me know how it works for 
you.  It is on my repo at

https://github.com/tbpassin/leo-editor/tree/tbp-freefloat-editor

This URL points directly to the *tbp-freefloat-editor* branch.  The file is 
at *leo/plugins/freewin.py*.


On Wednesday, June 2, 2021 at 11:55:51 PM UTC-4 [email protected] wrote:

> I have revised and fixed some bugs.  The free-floating viewing window can 
> now render Restructured Text as well as show an editing pane.  This can be 
> useful if your node contains RsT (as some of mine do).  If you open a new 
> window linked to a particular node (A), then navigate to a different node 
> (B), and then do some editing in your window for node A, you will see those 
> changes back in the standard Leo edit pane when you select Node A again.  
> And if you edit node A while the free-floating window is showing the RsT 
> rendered view, your changes will be rendered in the rendered view as you 
> type in the outline.
>
> I actually found these windows to be very helpful as I was revising the 
> code.  I prototyped the changes in a different outline.  Then I opened 
> several free-floating windows on the prototype code.  This made it easy to 
> see and understand the differences, and I could copy parts of the prototype 
> to the right places in the original outline.  Dog-fooding, it's wonderful!
>
> I have attached a screen shot.  The two editor windows on the right show 
> 1) one node of the prototype code, and 2) the corresponding - but not 
> identical - node of the plugin's code.  The "Settings and Configuration" 
> window is a rendering of the RsT on a node on Viewrendered3's docstring.
>
> This version is marked as 1.0b4.  It is currently on my Leo clone at
>
> https://github.com/tbpassin/leo-editor/tree/tbp-freefloat-editor
>
> The branch is *tbp-freefloat-editor*, and the plugin file is named 
> *freewin.py*.  The one and only new command added to Leo is *z-open-win*.
> If I don't find any bugs, and if no one makes any comments in the near 
> future, I will create a PR for it.
> On Friday, May 28, 2021 at 6:02:24 PM UTC-4 [email protected] wrote:
>
>> Thanks.  I'll be doing some more testing first, though.
>>
>> On Friday, May 28, 2021 at 4:52:59 PM UTC-4 Edward K. Ream wrote:
>>
>>> On Fri, May 28, 2021 at 1:18 PM [email protected] <[email protected]> 
>>> wrote:
>>>
>>> I haven't asked for this plugin to be merged into Leo yet
>>>>
>>>
>>> Feel free to create a PR. Plugins merely need be not actively dangerous 
>>> :-)
>>>
>>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0b740b5b-3ffd-46c2-b631-9a22be4da52en%40googlegroups.com.

Reply via email to