traceback using at_produce.py plugin

2017-05-15 Thread lewis
I get this traceback with at_produce.py plugin running *at-produce-selected* command on a node: Leo 5.5, build 20170514184942, Sun May 14 18:49:42 CDT 2017 Git repo info: branch = master, commit = 326e94863831 Python 3.6.1, PyQt version 5.8.0 Windows 10 AMD64 (build 10.0.15063) SP0 reading settin

Re: traceback using at_produce.py plugin

2017-05-15 Thread Edward K. Ream
On Mon, May 15, 2017 at 6:31 AM, lewis wrote: > I get this traceback with at_produce.py plugin running > *at-produce-selected* command on a node: > ​...​ > > > File "N:\git\leo-editor\leo\plugins\at_produce.py", line 137, in runList > shell=True, > File > "C:\Users\lewis\AppData\Local\Pr

Re: traceback using at_produce.py plugin

2017-05-15 Thread lewis
running ce217ef [snip] Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\threading.py",

Re: Possible to have node contain the results of a command?

2017-05-15 Thread Terry Brown
On Sun, 14 May 2017 14:15:25 -0700 Lang Hurst wrote: > I have two nodes that I run a `diff -y` on and use the results in a > document. It would be cool to be able to include the node in my > document outline and have the results of the command show up and skip > a couple manual steps, or really s

Re: Possible to have node contain the results of a command?

2017-05-15 Thread Edward K. Ream
On Mon, May 15, 2017 at 9:03 AM, Terry Brown wrote: # this script, when executed in a node > from subprocess import Popen, PIPE > cmd = Popen(['diff', 'this', 'that'], stdin=PIPE, stderr=PIPE) > p.b += "%s\n%s" % cmd.communicate() > c.redraw() > # appends this text to that node, 'None' being stdo

Re: traceback using at_produce.py plugin

2017-05-15 Thread Edward K. Ream
On Mon, May 15, 2017 at 7:14 AM, lewis wrote: > running ce217ef > > File "N:\git\leo-editor\leo\plugins\at_produce.py", line 142, in runList > f.write( txt ) > TypeError: write() argument must be str, not bytes > ​This should be fixed at 9388fc4, although perhaps it might fail on Python 2.

ENB: The way forward: using positions and vnodes in the npyscreen code

2017-05-15 Thread Edward K. Ream
In conversation with Rebecca last night at dinner I saw more clearly what the next step is. *tl;dr:* We need an interface *class *that delivers (wrappers to) Leo's position and/or vnode classes instead of some (as yet unknown) npyscreen *array*. *The problem* The npyscreen code (including sub

Re: Sentinels in PHP meant for web

2017-05-15 Thread Adrian Calvin
Thanks! On Friday, May 12, 2017 at 6:41:18 AM UTC-5, Edward K. Ream wrote: > > On Thu, May 11, 2017 at 9:20 PM, Adrian Calvin > wrote: > > >> Is there a way to somehow make these TOP sentinels act as if they are >> when you use the directive "language @html", and sentinels are encased as >> "

Issue I am having with customizing syntac color/fonts

2017-05-15 Thread Adrian Calvin
I am finding that if I customize an element's font (e.g. making its font weight bold), crtl+ scroll wheel will no longer affect its size. For illustrative purposes: @settings @font code ** keyword1_font_weight=bold ** Between the ** is the "body" content. The keyword g