Re: How do you install leointeg into VS Code?

2019-10-14 Thread Félix
I've rewritten everything during the weekend, I've changed the whole system into a client / server tcp/ip relationship. not polished yet, so i've pushed it on the dev branch before I cleanup and get it merged into master. (gotta cleanup and add buttons and text on the outline bar among other

Re: get path of running script?

2019-10-14 Thread Matt Wilkie
c.writeScriptFile seems to be where it is created. I haven't found a place yet for retrieving it; maybe it's too shortlived to bother with. -matt -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving e

get path of running script?

2019-10-14 Thread Matt Wilkie
What's Leo's idiomatic way to get the path of the currently running script in Leo? I've been using the below, but it's proven unreliable in Leo (differs between `Ctrl-B` and `--script=xx`), and there's probably already a Leo function which does this anyway, right? def get_my_path(): """Retu

Re: Fast way to iterate all positions of a given vnode

2019-10-14 Thread Edward K. Ream
On Monday, October 14, 2019 at 9:11:36 PM UTC-5, Edward K. Ream wrote: > This is one place where speed is truly useful!! ... > The result is a spectacular collapse in the code. The code is also *much* faster than before, because the code only looks up the tree for those nodes in c.all_positions_

Re: Fast way to iterate all positions of a given vnode

2019-10-14 Thread Edward K. Ream
On Monday, October 14, 2019 at 4:22:46 AM UTC-5, vitalije wrote: Here is a very fast way to iterate all positions for a given vnode: > This is one place where speed is truly useful!! Here is the present code for p.setAllAncestorAtFileNodesDirty: def setAllAncestorAtFileNodesDirty(self, setDesce

Re: docs: Installing Leo from sources (all platforms)

2019-10-14 Thread Matt Wilkie
> Please take this discussion offline, and summarize your results on > leo-editor when you have resolved this. > Yeah, this is pretty noisy. -matt -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receivi

Re: Fast way to iterate all positions of a given vnode

2019-10-14 Thread Edward K. Ream
On Mon, Oct 14, 2019 at 12:41 PM vitalije wrote: > What say you, Vitalije? >> >> I am glad you liked it. Please add it to wherever you think is best. > Thanks! Rev f45486a now contains c.all_positions_for_v. The name follows the conventions for other generators. The code is only slightly cha

Re: Fast way to iterate all positions of a given vnode

2019-10-14 Thread vitalije
> > What say you, Vitalije? > > I am glad you liked it. Please add it to wherever you think is best. ATM I have too many other tasks that I can't add it myself. I've read in another thread some discussion about this problem and I remembered this function I wrote while trying to speed up Leo tr

Re: Matt: OK to release Leo 6.1 b1 this Friday?

2019-10-14 Thread Edward K. Ream
On Monday, October 14, 2019 at 1:49:02 AM UTC-5, Edward K. Ream wrote: > > > On Sun, Oct 13, 2019 at 3:10 PM Matt Wilkie wrote: > >> I don't see anything of mine that should delay a release. >> > > Alright then. This Friday it is. > Well, maybe not. Any fix for #1392

Re: Fast way to iterate all positions of a given vnode

2019-10-14 Thread Edward K. Ream
On Monday, October 14, 2019 at 4:22:46 AM UTC-5, vitalije wrote: > > Here is a very fast way to iterate all positions for a given vnode: > Thanks for this. It should be useful in fixing #1392 . I would like to make this code easily availab

Fast way to iterate all positions of a given vnode

2019-10-14 Thread vitalije
Here is a very fast way to iterate all positions for a given vnode: from leo.core.leoNodes import Position # or if inside Leo script and you have p instance # Position = type(p) def iter_all_positions(v, stack=None): """Generates all positions p in this outline where p.v is v""" if stack i

Re: interesting places on the web

2019-10-14 Thread Matt Wilkie
> I don't follow this discussion for clickbait. Explain why this site is > relevant to LEO, please. Thank you. It's not about Leo. I tried to pick a subject line that made that clear but I guess that didn't work. From time to time I share things that I discover "out there" that are intriguin

Re: How do you install leointeg into VS Code?

2019-10-14 Thread Edward K. Ream
On Sat, Oct 12, 2019 at 2:02 PM Félix wrote: > @Edward (on windows) those modified 'package' files are getting small modifications when doing 'npm install' because of versions of dependencies getting updates.( Something I overlooked in my explanations. ) Solution : Revert those files to their or

Re: For Leo 6.0 on Windows 10 - PyQt 4 or PyQt 5?

2019-10-14 Thread Edward K. Ream
On Fri, Oct 11, 2019 at 6:11 PM Félix wrote: > Also, I want to run leo headless: so I wonder if theres a way to set the 'leo id' without qt. (on first run leo asks for an id ). There is now. The fix for #1385 raises a Tk dialog asking for

Re: Improved asciidoc, asciidoctor and pandoc support

2019-10-14 Thread Edward K. Ream
On Fri, Oct 11, 2019 at 10:03 AM Chris George wrote: While this work is fresh in your mind is there any possibility of doing > live rendering of Sphinx in the VR plugin? > As I said in #333 (now renamed) Sphinx uses reStructuredText as its markup language, and Leo already renders rST live. Oh,