>
> Thanks for this documentation.  leobridgeserver.py is quite a piece of 
> work.


I'ts been a pleasure to interact with the Leo's api! I wish vscode's api 
was as documented and understandable as the one for Leo! 

leobridgeserver.py was coded in a leonine way in leoInteg.leo. I thought 
this was important if I am to get a bit of 'Leo' coders to look into this 
part of leoInteg in particular. :)

(I personally would be curious to know what you think of the code in the 
"*Outline 
Edition Commands*" node because i'm not 100% sure I made good or 
wrong/not-undoable operations in there...)

As you correctly stated, leobridgeserver.py (which I often call "the server 
script")  is self-contained and agnostic towards any client that connects 
to it. It could indeed be used *as-is* by any other Leo "integration" 
projects. 

To dig more into the server/client relation and functionality: 
/src/leoBridge.ts (which uses /src/leoAsync.ts) is the funnel through which 
/src/leoIntegration.ts (the central hub of operations) interacts with the 
server script. See the "Commands for leobridgeserver.py" part in 
/src/constants.ts for the "actions" that the server supports so far.

I'll add more details as i post in this forum - don't hesitate to ask about 
parts that interest you! :)
--
Félix

On Sunday, June 14, 2020 at 7:02:33 AM UTC-4, Edward K. Ream wrote:
>
> On Sunday, June 14, 2020 at 1:48:33 AM UTC-5, Félix wrote:
>
> I'm glad you're interested and I'm also happy to explain this project, in 
>> fact I'll need to document sooner or later so explaining a bit here is a 
>> good start for me to copy/paste it later in some real document in 
>> leoInteg's repo.
>>
>
> Thanks for this documentation.  leobridgeserver.py is quite a piece of 
> work.
>
> As I understand it, a vim or emacs plugin could use leobridgeserver.py 
> unchanged, provided that the plugin sends the same "messages" as does 
> leoAsync.ts. Is this correct?
>
> Note: leobridgeserver.py contains the async keyword, which requires python 
> 3.7 or above. I typically use python 3.7.6. Leo itself should work with 
> python 3.6.8. Imo, it's fine to require python 3.7+ when using leointeg.
>
> 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/e3d42a8a-fa60-4566-8513-5ab05cd1112do%40googlegroups.com.

Reply via email to