Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Terry Brown
I wonder if a couple of demos would help, "see how much better this is" rather than "ask me about how much better this is". Maybe a comparison like: https://gist.github.com/kennethreitz/973705 which compares `urllib2` to `requests` code to do the same thing. And perhaps some context like "I want

Re: #1467: Use traditional unit test (almost?) everywhere

2019-12-28 Thread Terry Brown
On Sat, 28 Dec 2019 02:17:06 -0800 (PST) "Edward K. Ream" wrote: > Bob's remarks yesterday about unit testing had me look at Leo's unit > testing framework with new eyes. > > #1467 suggest > using traditional unit tests everywhere, or

Re: Weird space character

2019-10-18 Thread Terry Brown
"Vanilla" LaTeX systems tend to use `pdflatex` to process things, and don't understand unicode inputs without extra fiddling. If you use XeTeX (`xelatex`), it assumes unicode by default and makes things simpler - in a lot of cases it can be a drop in replacement. I think TeXLive supports either,

Re: Chris: cause of outline artifact?

2019-09-08 Thread Terry Brown
On Sun, 8 Sep 2019 13:25:23 -0700 (PDT) Chris George wrote: > After extensive testing I have determined that my initial conclusions > hold. > > With all else being equal (this took some effort), if the python > environment leois running under is native to the OS the stylesheet is > flawless.

Re: Refactoring probably means using signals

2019-08-23 Thread Terry Brown
When we talked about this previously I looked at https://pythonhosted.org/blinker/ and it seemed quite good, trying to find it again I also see https://github.com/dgovil/PySignal "A purely Python implementation of the Qt signal system with no QObject dependencies" if you want to think about

Re: New Themes

2019-08-20 Thread Terry Brown
There is the Ctrl-+/- / Ctrl-mousewheel font zoom functionality to consider. I don't think it was incompatible with themes, it just required specific naming conventions... maybe, I don't remember the details. Anyway, just pointing out that factor's in there to be considered. Cheers -Terry On

Re: Round-trip to shell script

2019-08-13 Thread Terry Brown
On Tue, 13 Aug 2019 08:57:03 -0700 (PDT) Rob wrote: > There was also a reference to the leoscreen.py plugin, but that won't > load w/o errors; perhaps not compatible w/ Python 3? Not sure about Python 3 compatibility, but it works exclusively with the `GNU screen` terminal multiplexer, a unix

Re: Clearing uAs

2019-08-08 Thread Terry Brown
August 8, 2019 at 5:35:08 PM UTC-4, Terry Brown wrote: > > > > On Thu, 8 Aug 2019 14:14:36 -0700 (PDT) > > Rob > wrote: > > > > > Attempting to clear up some missing backlink errors, I use the > > > commands, show-node-uas, then clear-node-uas.

Re: Clearing uAs

2019-08-08 Thread Terry Brown
On Thu, 8 Aug 2019 14:14:36 -0700 (PDT) Rob wrote: > Attempting to clear up some missing backlink errors, I use the > commands, show-node-uas, then clear-node-uas. After the clear > command, I would expect the .leo file to be 'dirty' so as to prompt > to save it. It doesn't. Is my expectation

Re: Leo and fossil merged with Rust

2019-07-30 Thread Terry Brown
ker-compose.yml ? > > Thanks, > Kent > > > On Mon, Jul 29, 2019 at 2:31 PM Terry Brown wrote: > >> That is very cool. I hope Kent sees it, he's talked about such things >> more than once. >> >> Cheers -Terry >> >> On Mon, Jul 29, 2019

Re: Leo and fossil merged with Rust

2019-07-29 Thread Terry Brown
That is very cool. I hope Kent sees it, he's talked about such things more than once. Cheers -Terry On Mon, Jul 29, 2019 at 2:11 PM vitalije wrote: > It has been a very long time since I've got this idea of combining Leo > with fossil. For all these years I felt that there was a great

Re: Leo and black

2019-07-29 Thread Terry Brown
Now that I think about it I started using Black before I stopped using Leo. I disagree with Vitalije's assessment of how often you'd execute it, I found I quite often wanted a node tidied up. But I would agree with Vitalije on taking a minimalist light weight approach to using Black in Leo. I

Re: Leo and black

2019-07-28 Thread Terry Brown
I've been using black for quite a while. I agree it's probably not fast enough to continuously reformat a file as you type, but that would probably be annoying. I just have a "run black on file" shortcut noremap l mtgg!Gblack -S -q -l 79 -`t that binds \l to run black, including setting a mark

Re: Encrypt/decrypt node's content with master password

2019-07-26 Thread Terry Brown
Can't comment on it status working wise, but the sticky nodes plugin has an encrypted sticky note option. It's only available if it finds the right library, and only encrypts one node at a time. I think it's reasonably secure, it uses AES encryption and puts the base64 encoded result in the Leo

Re: Completion madness

2019-06-21 Thread Terry Brown
On Fri, Jun 21, 2019 at 12:34 PM Edward K. Ream wrote: > Still it's *crucial* to make haste slowly by creating issues for > *everything* that needs attention. Some mornings I spend hours making > notes in Leo, then making issues or posts from those notes. Today was one > of those days. > > So

Re: Leo 6.0 requires Python 3.6 or later

2019-06-20 Thread Terry Brown
On Thu, 20 Jun 2019 13:26:53 -0700 (PDT) Rob wrote: > Needs to be on the same line. However, I get this error: I just tested it and it worked for me using two lines. Here's my exact leo.bat: call c:\Users\TBrown02\local\mc2\Scripts\activate.bat c:\Users\TBrown02\local\mc2\envs\leo python

Re: Leo 6.0 requires Python 3.6 or later

2019-06-20 Thread Terry Brown
> > wrote: > > > > > > Thanks, Terry. I was able to launch Leo from an Anaconda shell. > > > How do I > > translate that to a Windows shortcut like I had before? > > > > > > Rob... > > > > > > On Thursday, June 20, 2019 at 1:

Re: Leo 6.0 requires Python 3.6 or later

2019-06-20 Thread Terry Brown
if more detail woudl be helpful :) Cheers -Terry On Thu, Jun 20, 2019 at 12:34 PM Rob wrote: > > Thanks, Terry. I was able to launch Leo from an Anaconda shell. How do I translate that to a Windows shortcut like I had before? > > Rob... > > On Thursday, June 20, 2019 at 1:22:19 PM U

Re: Leo 6.0 requires Python 3.6 or later

2019-06-20 Thread Terry Brown
I think activating an Anaconda environment requires more steps. Easiest way for testing is to launch the Anaconda shell from the start menu. If your ultimate goal is launching from an icon there are more steps, but initial testing the shell's the way to go. Cheers -Terry On Thu, Jun 20, 2019

Re: Use the bridge, Luke

2019-06-19 Thread Terry Brown
On Wed, 19 Jun 2019 00:52:54 -0500 "Edward K. Ream" wrote: > On Tue, Jun 18, 2019 at 6:27 PM Terry Brown > wrote: > > Then I'm not sure that there's really anything to do. Python's > > well integrated into vim, so you can just use leoBridge as usual. > >

Re: Use the bridge, Luke

2019-06-18 Thread Terry Brown
On Tue, 18 Jun 2019 17:20:37 -0500 "Edward K. Ream" wrote: > On Tue, Jun 18, 2019 at 2:22 PM Terry Brown > wrote: > > > > Thanks. I didn't know that. In that case the entire vim plugin > > > would be based on this > > > <http://leoed

Re: Use the bridge, Luke

2019-06-18 Thread Terry Brown
On Tue, 18 Jun 2019 11:31:30 -0700 (PDT) "Edward K. Ream" wrote: > > > On Tuesday, June 18, 2019 at 12:38:51 PM UTC-5, Terry Brown wrote: > > > > A lot of vim plugins are written in Python, so perhaps you could > > use that instead of vims

Re: Use the bridge, Luke

2019-06-18 Thread Terry Brown
A lot of vim plugins are written in Python, so perhaps you could use that instead of vimscript. Cheers -Terry On Tue, Jun 18, 2019 at 12:07 PM Edward K. Ream wrote: > Integrating pyzo into Leo fails because pyzo's shell can't control Leo's > gui. However, such scripts *could *access the data

Re: Bookmarks plugin for docks

2019-06-12 Thread Terry Brown
Bookmarks isn't particularly entangled in the old UI, I had it working in my attempt at a docks based UI. I don't really see it as different from the other plugins listed in #1154 , it has state persistence, but I don't think that's a GUI tied

Re: No python 2 work after December 1, 2019

2019-06-05 Thread Terry Brown
Not sure about that, my DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" is running 2.7 by default, and I'm sure I did a fresh install, not an upgrade. 99.5% sure anyway ;-) But I do think Python 3 is *installed* by default on 18.04. 3.6.7 currently. Cheers -Terry On Wed, Jun 5, 2019 at 9:36 AM Josef

Re: Status of docking code

2019-05-28 Thread Terry Brown
On Tue, 28 May 2019 14:52:58 -0500 "Edward K. Ream" wrote: > The drawback is that Leo's main window must contain all the docks. > Leo has always had this constraint, Not really, NestedSplitter has an open window function that allows any pane to be moved to another window. > but it does make

Persistent persistence...

2019-05-28 Thread Terry Brown
Just a couple of dock related thoughts. To replace the functionality of the NestedSplitter interface the dock layout needs to support multiple (named) persistent layouts of plugin docks (widgets in docks, really, plugins don't need to know about docks specifically). I used this to make Leo into

Re: Please read and discuss: Always use docks?

2019-05-24 Thread Terry Brown
On Fri, May 24, 2019 at 12:45 PM Edward K. Ream wrote: > On Fri, May 24, 2019 at 11:18 AM Terry Brown > wrote: > > > - A central widget allows the user to drag dock widgets to any area at >> any time. Without a central widget you can only drag a widget to an area >

Re: Please read and discuss: Always use docks?

2019-05-24 Thread Terry Brown
I think a having a docking interface and the NestedSplitter (Easter-egg splitter right click) interface is kind of redundant, they both do similar things with similar goals and having them co-exist long term probably doesn't make sense. Vocab: Leo's log-pane is so called for historical reasons,

Re: Proposal: use QDockWidget for Leo's main window

2019-05-19 Thread Terry Brown
On Sun, 19 May 2019 08:23:58 -0700 (PDT) "Edward K. Ream" wrote: > This post discusses #1150 > . Don't > panic. Nothing is settled yet, and I'll consider your comments > seriously. > > Using Qt's Dock widget *might* improve Leo

Re: Freemind Import command?

2019-05-16 Thread Terry Brown
On Thu, 16 May 2019 17:23:50 -0500 "Edward K. Ream" wrote: > On Thu, May 16, 2019 at 4:29 PM Seth Johnson > wrote: > > > The other imports in the File->Import Files menu give me a file > > selection window, but it appears the menu item for Freemind lacks a > > command/function call. > > > >

Re: discuss: Use markdown for Leo's documentation #1147

2019-05-15 Thread Terry Brown
On Tue, 14 May 2019 20:26:47 -0700 (PDT) Matt Wilkie wrote: > > > > > What I like about AsciiDoc is the code snippets support and the way > > it declares tables. But Pandoc can read ASCIIDoc [...] > > > > (?) This seems to be in the air or incomplete according to >

Re: discuss: Use markdown for Leo's documentation #1147

2019-05-14 Thread Terry Brown
On Tue, 14 May 2019 16:07:15 -0500 Kent Tenney wrote: > I don't use a lot of rst capability, but really depend on > .. contents:: > > to generate links to sections in a document > anyone found a way to do that in Markdown? I think pandoc will generate tocs from markdown, I know it will if the

Re: discuss: Use markdown for Leo's documentation #1147

2019-05-14 Thread Terry Brown
On Tue, 14 May 2019 03:50:46 -0700 (PDT) "Edward K. Ream" wrote: > Anyone think AsciiDoctor is a bad idea? I think it's easy to argue that there are better (more expressive / extensible) text dialects than markdown. restructuredText is an obvious example. The problem is that markdown's what

Re: Ahas: the way forward

2019-04-09 Thread Terry Brown
On Tue, 9 Apr 2019 08:57:03 -0700 (PDT) "Edward K. Ream" wrote: > On Tuesday, April 9, 2019 at 8:28:22 AM UTC-5, Edward K. Ream wrote: > > > Neither Leo's code base nor Leo's ecosystem will change in any > incompatible way. > > I plan to experiment with using a QDockWidget at Leo's top level.

Re: Ahas: the way forward

2019-04-09 Thread Terry Brown
On Tue, 9 Apr 2019 06:28:22 -0700 (PDT) "Edward K. Ream" wrote: > 1. There is no need for Leo's --session-save & --session-restore > command-line arguments! > > Doh!  Leo can adopt the following strategy: > > - If the command line contains file names, Leo will load only those > files. > - When

Re: Not-clones that act like clones

2019-03-09 Thread Terry Brown
On Sat, 9 Mar 2019 10:49:19 -0800 (PST) vitalije wrote: > For HTML and CSS there are a lot of pre-processors for example: pug > for HTML and sass for css. Both of them have more than one way to > define some section once and use it anywhere you like it. Basically > you write source files in pug

Get started with Org mode without Emacs

2019-02-05 Thread Terry Brown
https://opensource.com/article/19/1/productivity-tool-org-mode?utm_medium Cheers -Terry -- 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

Re: looking for pre-existing text format for defining event dates in Leo

2019-01-30 Thread Terry Brown
On Wed, 30 Jan 2019 02:20:20 -0800 (PST) jkn wrote: > Hi all >I would quite like to use Leo to remind me of events - a bit like > a locally-based version of Google Calendar. So (I guess) I would have > a special node(s) with a list of events in some form: > > "3rd Friday of each month; pay

Re: ENB: Fixing Qt5 problems

2019-01-06 Thread Terry Brown
On Sun, 6 Jan 2019 14:53:08 -0600 "Edward K. Ream" wrote: > In theory, I suppose, setting a style class is more flexible, but > here we are dealing with a Qt bug, so limiting ourselves to a simple > workaround is plenty good enough. The only actual change to code was > in

Re: ENB: Fixing Qt5 problems

2019-01-06 Thread Terry Brown
On Sun, 6 Jan 2019 09:22:16 -0600 Terry Brown wrote: > I can take a quick look if it helps. I did introduce the use of the > ~= operator, which makes Qt stylesheets more like their more mature > cousin, CSS stylesheets. I see there's already a style branch - I don't want to duplica

Re: ENB: Fixing Qt5 problems

2019-01-06 Thread Terry Brown
On Sun, 6 Jan 2019 04:07:05 -0800 (PST) "Edward K. Ream" wrote: > Older versions of Leo switched colors using code. It will be > necessary to do so again. We can't wait for Qt to fix this problem. I don't think using code is essential, although it's an option. >From #804: Seeing

Re: edit-pane-csv separator

2019-01-02 Thread Terry Brown
e for the button: from leo.plugins.editpane.csvedit import LEP_CSVEdit s = c.free_layout.get_top_splitter() csv = s.findChild(LEP_CSVEdit) if csv: csv.parent().parent().parent().close() else: c.k.simulateCommand("edit-pane-csv") Cheers -Terry > On Sunday, December 2, 2018 a

Re: Moving on from Leo

2018-12-30 Thread Terry Brown
On Sun, 30 Dec 2018 11:37:04 -0800 (PST) Matt Wilkie wrote: > I almost forgot: you have a new job! Congratulations! I hope this > next endeavour unleashes all kinds of fresh growth and learning, and, > adequate-plus-one (or two) remuneration. :-) Thanks Matt and everyone else who's said kind

Re: The future of Leo

2018-12-23 Thread Terry Brown
On Sun, 23 Dec 2018 05:53:15 -0800 (PST) "Edward K. Ream" wrote: > We can make Leo more accessible by integrating Leo's essentials into > emacs, vim, pyzo or even atom. I was going to say that I don't understand this project because I'm not sure which parts of Leo you're talking about, but

Moving on from Leo

2018-12-21 Thread Terry Brown
I'm sorry to say that I'm moving away from involvement in Leo. This is due to no one reason but the combination of a number of factors, most of which are external to Leo (different job, other projects). I told Edward about this a couple of days ago. The specific factor prompting this

Re: For Matt and other devs: leo/dist/git_install.py installs Leo using *only* git

2018-12-11 Thread Terry Brown
On Tue, 11 Dec 2018 14:08:14 -0800 (PST) Matt Wilkie wrote: > Marked for study. > Thank you Edward, Speed. :) > > My first question is why? Meaning: I don't understand the problems > it's solving. At first reading I thought it was for disconnected > environments because of the zip archives, but

Re: edit-pane-csv separator

2018-12-02 Thread Terry Brown
sis, so it would be nice if Leo could remember the settings > for each of these files, and it would be even better if I would not > have to run the command edit-pane-csv on each file every time after I > closed the associated Leo file. > > Cheers - Josef > > On Friday, August 10

Re: Oh my: fast, incremental redraws are doable in any gui

2018-11-26 Thread Terry Brown
On Mon, 26 Nov 2018 05:13:38 -0800 (PST) "Edward K. Ream" wrote: > This may be true now, but perhaps Almar will be open to adding new > methods to the TreeWidget or TreeItem classes.  Assuming that's > possible :-) And assuming a real performance gain would result. You can just subclass them?

Re: How to get viewrendered pane size?

2018-11-13 Thread Terry Brown
On Mon, 12 Nov 2018 21:16:49 -0800 (PST) pimgeek wrote: > I want to create a changePaneSize @command in myLeoSettings.leo, but > don't know how to get and change pane size, what should I do? Probably the easiest thing is to arrange the panes as you want them, then right click the divider

Re: Learning flexx, part 2, and LeoWapp status

2018-11-08 Thread Terry Brown
On Thu, 8 Nov 2018 08:47:39 -0800 (PST) "Edward K. Ream" wrote: > On Thursday, November 8, 2018 at 7:04:05 AM UTC-6, Edward K. Ream > wrote: > > *How to communicate between components?* I'd evaluate the emit / react ( / action) framework too - avoids having to have everything know about

Not Leo in Flexx

2018-11-06 Thread Terry Brown
I could have sworn I'd posted about this, but can't find the post - I'd be curious if anyone remembered a posting along these lines. Pffft. For a while (since Aug. 9 2018 according to git) I've been fiddling with a Flexx based app. that is Leo like. But not Leo. It's an experiment with a

Re: LeoWapp progress report

2018-11-03 Thread Terry Brown
Flexx is very different from other frame works because you write everything in Python. You might try writing a web gui in Vue, React, or JQuery to get something more typical. Cheers - Terry On November 3, 2018 3:11:12 PM CDT, "Edward K. Ream" wrote: >On Saturday, November 3, 2018 at 6:57:36

Re: LeoWapp plans

2018-11-02 Thread Terry Brown
On Thu, 1 Nov 2018 20:41:48 -0700 (PDT) Matt Wilkie wrote: > > I think "Flexx uses tornado" was a crossing of threads (ha ha ha), > > I don't think it does. > > I know nothing about web sockets or the frameworks discussed in this > thread, but the docs say >

Re: LeoWapp plans

2018-10-31 Thread Terry Brown
I think "Flexx uses tornado" was a crossing of threads (ha ha ha), I don't think it does. Flexx completely hides the websockets part, it's more like React (I think, having used that once), but basically signals / listeners / actions / reactions. It actually takes a while to understand what part

Re: LeoWapp plans

2018-10-31 Thread Terry Brown
I mentioned this elsewhere, but just want to say Flexx is different in that it translates Python to javascript, although not really, really it lets you write javascript using Python syntax. So its intent is that you don't write javascript, and if you do it that way, you probably won't be able to

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 12:16:34 -0500 "Edward K. Ream" wrote: > I've gotten the first few Flexx examples working.  The widgets look > ugly, but perhaps that will not be an issue in the long run... I'm not sure how that will play out, for example can you integrate Flexx with other layers like

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 11:50:12 -0500 "Edward K. Ream" wrote: > On Tue, Oct 30, 2018 at 11:07 AM Terry Brown > wrote: > > I do wonder if it's necessary to include development of a websockets > > layer in LeoWapp. Maintenance burden, complexity, all that. > &g

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 08:51:18 -0700 (PDT) "Edward K. Ream" wrote: > On Tuesday, October 30, 2018 at 5:54:39 AM UTC-5, Edward K. Ream > wrote: > > It's troubling to disable security checks, even temporarily. I'm a > bit > > surprised that such matters weren't mentioned in the websockets > >

Re: LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Terry Brown
https://github.com/flexxui/flexx provides websocket based Python browser GUI connections. John Lunzer pointed it out here: https://github.com/leo-editor/leo-editor/issues/338#issuecomment-289618411 I've been using it in my recent (non-Leo) experiments in this area. Cheers -Terry On Mon, 29

Re: At last I understand sockets and servers

2018-10-22 Thread Terry Brown
On Sun, 21 Oct 2018 21:20:33 -0500 "Edward K. Ream" wrote: > Hmm.  Is Leo as a web app is feasible? Leo's scripting features make > it extremely dangerous. If run on a server, Leo becomes an > unverifiable cgi script. This looks like a gotcha.  Am I missing > something? Sandboxing /

Re: At last I understand sockets and servers

2018-10-21 Thread Terry Brown
On Sun, 21 Oct 2018 10:44:21 -0500 "Edward K. Ream" wrote: > On Sun, Oct 21, 2018 at 10:37 AM Cormac Williams > wrote: > > > > > Hi. Welcome to the discussion. > > > Sockets and protocols are great, except if you want to hang it on > > the internet, in which case you are far better using

Re: Docker for LeoVue etc.

2018-10-17 Thread Terry Brown
On Wed, 17 Oct 2018 03:30:46 -0500 "Edward K. Ream" wrote: > I assume that a machine must be running the guacamole server to be > accessible via the client. > > Edward No, it needs to be running a remote access protocol like VNC (vnc-server, not vnc-client) or RDP. And it needs to be

Leo as a web app.

2018-10-16 Thread Terry Brown
Here's a Dockerfile that let's Leo (The Python3 / PyQt4 version) run in a web browser. This is cheating, and I think I demoed this years ago without Docker, but it might be useful for someone. Would be interested to hear if anyone tries it / runs in to issues. Easier to understand if you're

Re: About separate processes and threads

2018-10-16 Thread Terry Brown
On Tue, 16 Oct 2018 04:36:31 -0700 (PDT) "Edward K. Ream" wrote: > The original Dreaming Big Dreams thread suggested reorganizing Leo > into more separable pieces, perhaps using a client/server > architecture or other forms of interprocess communication (IPC). Here's a presentation I just gave:

Re: Docker for LeoVue etc.

2018-10-16 Thread Terry Brown
On Tue, 16 Oct 2018 05:46:00 -0500 "Edward K. Ream" wrote: > On Mon, Oct 15, 2018 at 3:23 PM Terry Brown > wrote: > > > Responding to Chris's comments re cPanel / LeoVue etc., just a PSA, > > Docker is easier and more useful than you think ;-) > > > &g

Docker for LeoVue etc.

2018-10-15 Thread Terry Brown
Responding to Chris's comments re cPanel / LeoVue etc., just a PSA, Docker is easier and more useful than you think ;-) It sits less comfortably in Windows than it does in Linux, but it gives an extremely clear cut curated environment and is really not complicated to use if you're at all familiar

Re: Dreaming big dreams

2018-10-13 Thread Terry Brown
On Sat, 13 Oct 2018 06:06:29 -0500 "Edward K. Ream" wrote: > > .../foo/test/test_my_module.py->test_my_func() > > > Thanks for this.  So for every @file x.py, we would create an @file > test/x.py. It's a reasonable solution. > > Leo makes the idea of "near" meaningless, there's plenty of ways

Three dimensional graphs

2018-10-12 Thread Terry Brown
Funny you should bring up a third dimension, I've been experimenting with something along these lines, although not within Leo :-/ No doubt inspired by various discussions on this list (sea of nodes, colored threads, Kent's mysterious extra dimensions :-). Data model is basically a set of nodes

Re: Dreaming big dreams

2018-10-11 Thread Terry Brown
On Mon, 8 Oct 2018 02:58:28 -0700 (PDT) "Edward K. Ream" wrote: > - Why can't we put unit tests near the code being tested? I'd argue (for Python) for using the best in class unit testing framework's practice. pytest puts tests for .../foo/my_module.py->my_func() in

Re: Persistent ID for @auto nodes

2018-09-26 Thread Terry Brown
On Wed, Sep 26, 2018 at 10:25 AM Edward K. Ream wrote: > > On Wednesday, September 26, 2018 at 5:58:18 AM UTC-5, Edward K. Ream wrote: > >> It highlights the problem of learning and remembering what Leo can do. >> >> Words are not the answer: there are too many of them already. >> >> I think

Re: Reversing relationships

2018-09-25 Thread Terry Brown
Possibly the backlinks plugin might be useful to you, not sure. Cheers -Terry On Tue, 25 Sep 2018 15:58:32 -0700 (PDT) Israel Hands wrote: > Assuming my information tree is only one child deep and looks a bit > like this- > > Parent 1 > Contains nodes - A B C D > > Parent 2 > Contains nodes

Re: Need help with bidirectional relationships with differing commentary on each side

2018-09-02 Thread Terry Brown
On Sat, 1 Sep 2018 23:04:03 -0700 (PDT) Sapphira Armageddos wrote: > - UNLs: Straightforward, but can lead to needing to manually copy the > individual UNLs to track bidirectional relationships across files. > Also allows for commentary on those relationships. > > - Backlinks: Tried the plugin,

Re: seeking guidance on using Leo collaboratively with Git

2018-08-27 Thread Terry Brown
On Mon, 27 Aug 2018 10:55:13 -0700 (PDT) Phil wrote: > Thanks for that, it's helpful. But the notion of a reference file > begs the question of who maintains *that* file. In my project, both > my partner and I are continually creating new content, which means > that we would both need to make

Re: First Month of Using Leo

2018-08-26 Thread Terry Brown
On Mon, 20 Aug 2018 06:16:28 -0500 "Edward K. Ream" wrote: > > So far I've only really had success with simple abbreviations to > > quickly add TODO and various :tag: to Org Mode tasks. For instance, > > this one makes adding tasks a little easier to enter into a node > > header:

Re: Terry, please explain how provided widgets get a parent

2018-08-26 Thread Terry Brown
On Mon, 20 Aug 2018 15:39:12 -0500 "Edward K. Ream" wrote: > On Sat, Aug 11, 2018 at 2:17 PM Terry Brown > wrote: > > > Without a parent I don't understand how the Turtle widget will ever > > > become visible. > > > > Who told you parents are esse

Re: Back to fixing bugs

2018-08-17 Thread Terry Brown
On Fri, 17 Aug 2018 06:13:51 -0700 (PDT) "Edward K. Ream" wrote: > Rebecca and I will be traveling most of September. Before then, I'll > fix as many bugs as I can. Have a good trip. I'm offline pretty much for the remainder of August, FYI. Cheers -Terry -- You received this message

Re: Steps to install leo using pip in python 3.5

2018-08-16 Thread Terry Brown
On Thu, 16 Aug 2018 21:45:58 -0400 Brian Theado wrote: > • Disable python_terminal plugin Interesting, I'd noticed this too, playing with Docker images as test install environments. It seems to be the line from rlcompleter import Completer but not that it necessarily fails to import, just

Re: Trying to install on Ubuntu 16.04

2018-08-16 Thread Terry Brown
On Thu, 16 Aug 2018 00:37:09 -0700 (PDT) "Isaiah St. John" wrote: > Hi all, > > I learned of Leo from the recent HackerNews post. I'm a novice Linux > user, and I have tried just about every suggested installation method > on the Leo website without success. I first installed pip3, then did >

Re: Terry, please explain how provided widgets get a parent

2018-08-11 Thread Terry Brown
On Sat, 11 Aug 2018 11:37:18 -0700 (PDT) "Edward K. Ream" wrote: > I can get a Turtle window working outside the > free_layout/nested_splitter framework. The graphics window is a > separate window, as expected. > > But I'm stumped at how the widget returned from ns_provide eventually > gets a

Re: A prototype of fast Qt tree drawing

2018-08-10 Thread Terry Brown
On Fri, 10 Aug 2018 11:06:11 -0700 (PDT) "Edward K. Ream" wrote: > On Thursday, August 9, 2018 at 12:50:20 PM UTC-5, Terry Brown wrote: > > > But for the sake of completeness, here's a turtle: > > I can set up the new pane, and run the script. Traces show: Hmm, it

Re: Oddball formats

2018-08-10 Thread Terry Brown
On Fri, 10 Aug 2018 08:49:25 -0700 (PDT) Rob wrote: > Perhaps this has been covered before, but I haven't been able to find > relevant information in the docs or here on the forum (maybe not > asking the right questions). Anyway, I sometimes will create and edit > plain text data files using a

Re: Top level clones, uni-clone creation, and why not?

2018-08-09 Thread Terry Brown
On Thu, 9 Aug 2018 21:59:47 -0500 "Edward K. Ream" wrote: > On Thu, Aug 9, 2018 at 6:46 PM, Terry Brown > wrote: > >File > "/mnt/usr1/tnb_data/Package/leo/git/leo-editor/leo/core/leoFileCommands.py", > > line 416, in getLeoOutlineFromClipboardRetain

Top level clones, uni-clone creation, and why not?

2018-08-09 Thread Terry Brown
I wanted to create an outline that looks like this: O A B C D E A B C where A is a clone. So when I Shift-Control-C copied A and then tried Outline -> Paste as Clone with E selected, I got: File "/mnt/usr1/tnb_data/Package/leo/git/leo-editor/leo/core/leoFileCommands.py",

Re: A prototype of fast Qt tree drawing

2018-08-09 Thread Terry Brown
On Thu, 9 Aug 2018 12:19:45 -0500 "Edward K. Ream" wrote: > > Not quite sure what you mean.  The free_layout / NestedSplitter > > machinery (which I'd like to replace with the QDock layout scheme) > > should be able to host any Qt Widget.  But it doesn't *provide* > > *any*, graphics pane or

Re: A prototype of fast Qt tree drawing

2018-08-09 Thread Terry Brown
On Thu, 9 Aug 2018 11:01:17 -0500 "Edward K. Ream" wrote: > Another quick experiment shows that Terry's Easter Egg interface does > not, at present, support any graphics pane. Not quite sure what you mean. The free_layout / NestedSplitter machinery (which I'd like to replace with the QDock

Re: About unit testing Leo

2018-08-08 Thread Terry Brown
On Wed, 8 Aug 2018 01:15:04 -0700 (PDT) "Edward K. Ream" wrote: > On Monday, August 6, 2018 at 9:34:56 PM UTC-5, Terry Brown wrote: > > There may be existing personal plugins that would break if plugins > were > > loaded after the outline was fully loaded, but

Re: edit-pane-csv separator

2018-08-07 Thread Terry Brown
On Tue, 7 Aug 2018 04:27:10 -0700 (PDT) Josef wrote: > Perhaps it is best/easiest not to touch the cell content at all, and > leave such alignment things to a separate command? Otherwise you may > end up having to remember the alignment strategy for each file. Right, the alignment stuff I'm not

Re: About unit testing Leo

2018-08-07 Thread Terry Brown
On Tue, 7 Aug 2018 04:58:43 -0500 "Edward K. Ream" wrote: > On Mon, Aug 6, 2018 at 9:34 PM, Terry Brown > wrote: > > I don't think we should say plugin loading time shouldn't be changed > to > > reduce complexity, although that doesn't mean making such a cha

Re: edit-pane-csv separator

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 05:46:55 -0700 (PDT) Josef wrote: > Is there a way to set the CSV separator? I've made a start on this in the csv_delim branch. It's not finished, because I'm trying to cover the LaTeX table case: 1 & 2 & 3 \\ a & b & c \\ My initial thought was to let the delimiter be a

Re: Installation on MacOS (10.10)

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 19:16:58 -0700 (PDT) matelot wrote: > nobody runs Leo on Mac, really ? People do, I think Brian's one of them. Brian's suggestion was the first step to answering the question. You appear to have PyQt installed, but it fails to import. So entering python and then from

Re: About unit testing Leo

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 07:11:49 -0500 "Edward K. Ream" wrote: > On Fri, Aug 3, 2018 at 10:56 AM, vitalije wrote: > > Plugins can affect the load process. > >> > >> Yes, I know they can. But do they do this? > > How should I know? People are free to create their own private > plugins for special

Re: Update re: new model

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 14:48:18 -0500 "Edward K. Ream" wrote: > > AttributeError.  Basically it comes down to requiring, or not > > requiring, the user to do > > if c.gui: > >   c.gui.endEditing() > > (or `c.gui and c.gui.endEditing()`) > > > That's a lot of work, a lot of infrastructure, a lot of

Re: Update re: new model

2018-08-06 Thread Terry Brown
On Mon, Aug 6, 2018 at 9:09 AM Edward K. Ream wrote: > > On Saturday, August 4, 2018 at 2:39:26 PM UTC-5, vitalije wrote: > > > initialization code should be kept free and clean of any gui calls. > Leo's guiding architectural principle is: There shall be no global > architectural dependencies.

Re: Update re: new model

2018-08-04 Thread Terry Brown
On Sat, 4 Aug 2018 10:39:03 -0500 "Edward K. Ream" wrote: > ModuleNotFoundError: No module named 'leo.core.leoDataModel' > > What should I do? Is it this, from an earlier post? "Note, anyone who wants to try this branch, the code needs the latest version of leoDataModel.py file in leo/core/

Re: Update re: new model

2018-08-03 Thread Terry Brown
Outline -> Insert/Delete Icons -> Insert Icon just places persistent icons with no particularly meaning to any plugin, even though I was using icons from the todo plugin. I think you might see the coloring of the "top" node issue if you experiment with an outline with a really small number of

Re: Update re: new model

2018-08-03 Thread Terry Brown
Works better. Attached shows a couple of issues - top node background is a different color, and adding icons shrinks icons vertically, at least the first time you add one. Must say I'm surprised by the "draw the tree yourself" approach, but will see how it pans out. Cheers -Terry On Fri, Aug 3,

Re: About unit testing Leo

2018-08-03 Thread Terry Brown
Re gui layers etc., I've mentioned it before, but I wonder how using something like https://pythonhosted.org/blinker/ would work, performance wise. Imagine being able to say: body_change = signal('body-change') ... body_change.send('reformat', gnx=gnx, body=new_body) and not needing to know /

Re: Update re: new model

2018-08-03 Thread Terry Brown
Just FYI the tree did not render for me. Leo 5.7.4 devel, build 20180607085129, Thu Jun 7 08:51:29 CDT 2018 Git repo info: branch = ltm-leo, commit = eb3b09169816 Python 3.6.6, PyQt version 5.6.2 Windows 10 AMD64 (build 10.0.14393) SP0 isPython3: True probing with g.log(p.h) suggested node

Re: Update re: new model

2018-08-01 Thread Terry Brown
re style sheet, I think almost all styling has worked by applying the full stylesheet once to the top level window widget, from where it's inherited by all widgets that are descendants of that widget. I know there's a performance penalty for applying a large stylesheet frequently, not sure what

  1   2   3   4   5   6   7   8   9   10   >