On Monday, July 29, 2019 at 2:44:10 PM UTC+2, Edward K. Ream wrote:
>
> So it looks like Leo could optionally run blacken-node whenever selecting 
> and/or unselecting a node for which @language python is in effect.
>
>
That would be rather invasive and most of the time unnecessary spending CPU 
time. Selecting nodes is already too complicated and not very fast (to say 
the least). Please don't add any more burden to it. Instead let the user 
decide when to execute this command. If one wishes to perform it on every 
node selection, then it would be trivial to add it as a plugin so that the 
Leo's core dealing with selecting nodes, remains free of this feature.

The benefit of having this command executed is a rather rare thing. One 
must:

   1. write Python code
   2. write a lengthy line of code that could be split by this command

How many times one can have these conditions met? Against how many node 
selections where these conditions are not fulfilled? I believe the ratio is 
negligibly small.

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/ec0a3148-9636-4977-b134-aa75ca421913%40googlegroups.com.

Reply via email to