Re: Yet another checker prototype

2022-05-04 Thread tbp1...@gmail.com
Tricky problem! There are just enough cases where the intent really is to write the bare function without the parens that the code would have to be a mind reader. or else the code would need to be running so one could flag the type as being a function or method, where it would hardly ever be

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
For everyone else, the fix is now in devel. On Tuesday, May 3, 2022 at 11:20:07 AM UTC-4 tbp1...@gmail.com wrote: > good going! about the setting name, yes, i suppose so, but the heck > with it at this point! > > On Tuesday, May 3, 2022 at 11:13:11 AM UTC-4 jkn wrote: > >&g

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
: the naming is a bit incons8istent. You have > > @bool show-rmargin-guide = True > but > @int rguide-col = 55 > > shouldn't the second one be rmargin-col ? > > Thanks a lot anyway > Jon N > > > On Tuesday, May 3, 2022 at 3:48:32 PM UTC+1 tbp1...@gmail.com wrote:

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
fixed. pr submitted. it was a minor error in the imports for pyqt5. i'll post here when it's been merged. On Tuesday, May 3, 2022 at 10:27:20 AM UTC-4 tbp1...@gmail.com wrote: > that's the one. i was under the impression that it is not necessary to > call end() in this usage, but

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
rget to > destroy it or call QPainter::end() on it? > QBackingStore::endPaint() called with active painter; did you forget to > destroy it or call QPainter::end() on it? > }}} > > > On Tuesday, May 3, 2022 at 2:24:40 PM UTC+1 tbp1...@gmail.com wrote: > >> Aha, just befo

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
. On Tuesday, May 3, 2022 at 9:14:02 AM UTC-4 jkn wrote: > Hi Thomas > > I have: > > Leo Log Window > Leo 6.6.2-devel, devel branch, build ae9d98d25b > > > 2022-05-02 16:58:23 -0500 > > Python 3.10.4, PyQt version 5.15.3 > linux > > > > On Tuesday, May 3,

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
> I think I will revert to an older version and confirm that that works OK. > I'll let you know what I discover. Thanks for this work anyway. > > Regards, Jon N > > > > On Tuesday, May 3, 2022 at 1:28:31 PM UTC+1 tbp1...@gmail.com wrote: > >> Funny, I just fetched the cu

Re: New: Right Margin Guidelines Now In Devel

2022-05-03 Thread tbp1...@gmail.com
12:46:00 AM UTC+1 tbp1...@gmail.com wrote: > >> @edward has merged the improvments: now in devel. >> >> On Friday, April 29, 2022 at 6:01:39 PM UTC-4 tbp1...@gmail.com wrote: >> >>> i have improved the guideline color computation. The new method worked >

Re: F5 Key Opens New Leo Session?

2022-05-01 Thread tbp1...@gmail.com
; On Sat, Apr 30, 2022 at 5:15 PM tbp1...@gmail.com > wrote: > >> I just discovered that hitting the F5 key while in leo opens a new leo >> window with only the workbook open. but why? it's not in the list of >> bindings or commands. i don't define it in any @short

Re: New: Right Margin Guidelines Now In Devel

2022-05-01 Thread tbp1...@gmail.com
@edward has merged the improvments: now in devel. On Friday, April 29, 2022 at 6:01:39 PM UTC-4 tbp1...@gmail.com wrote: > i have improved the guideline color computation. The new method worked > well enough so that i adapted it for the current line highlight, too. the > line

Re: F5 Key Opens New Leo Session?

2022-05-01 Thread tbp1...@gmail.com
othing on my machine. > > On Sun, May 1, 2022 at 4:01 AM jkn wrote: > >> doesn't happen for me on Linux FWIW (although the action is something I >> have wondered about, whether it would be useful...) >> >> >> On Saturday, April 30, 2022 at 11:15:09 PM

Re: Different results of 'test-all' cmd

2022-05-01 Thread tbp1...@gmail.com
And on my system, pylint still can check freewin without crashing: Your code has been rated at 9.95/10 (previous run: 9.89/10, +0.05) On Sunday, May 1, 2022 at 9:19:50 AM UTC-4 Edward K. Ream wrote: > On Sunday, May 1, 2022 at 8:04:14 AM UTC-5 Edward K. Ream wrote: > > > I am running pylint

F5 Key Opens New Leo Session?

2022-04-30 Thread tbp1...@gmail.com
I just discovered that hitting the F5 key while in leo opens a new leo window with only the workbook open. but why? it's not in the list of bindings or commands. i don't define it in any @shortcuts node.In fact, the string "f5" does not occur at all in myLeoSettings.leo. This action does

Re: New: Right Margin Guidelines Now In Devel

2022-04-29 Thread tbp1...@gmail.com
text. i may work on that at some point but not now. the changes are in a PR. i will announce here when it gets merged. On Friday, April 29, 2022 at 9:40:32 AM UTC-4 tbp1...@gmail.com wrote: > no, i can get it from the theme ... as you say, i have some familiarity > with it! > > On F

Re: All completed 6.6.2 work has been merged into devel

2022-04-29 Thread tbp1...@gmail.com
there is usually a more specific alias too, like "python3.8". I have one VM that has both "python3.6" and "python3.8". plain "python" still usually means python 2.x. On Friday, April 29, 2022 at 9:23:56 AM UTC-4 Edward K. Ream wrote: > On Thu, Apr 28, 2022 at 11:35 PM Viktor Ransmayr wrote: >>

Re: New: Right Margin Guidelines Now In Devel

2022-04-29 Thread tbp1...@gmail.com
.. I could try with screen magnifier & colour > picker if that helps maybe? > > J^n > > > > > > On Friday, April 29, 2022 at 1:48:20 PM UTC+1 tbp1...@gmail.com wrote: > >> @jkn, thank you. What theme are you using? Or if you know, what is the >> text col

Re: New: Right Margin Guidelines Now In Devel

2022-04-29 Thread tbp1...@gmail.com
able than I'd like. A small niggle > though. Maybe stick with your algorithm but allow a override setting? > > I haven't yet experimented with other than show-rmargin-guide. I will try > more next week probably. > > Thanks again! > Jon N > > On Thursday, April 28, 202

New: Right Margin Guidelines Now In Devel

2022-04-28 Thread tbp1...@gmail.com
A new merge of the devel branch brings a vertical guideline at the right-hand margin of the body pane. Off by default, it is controlled by two settings. There is a new entry about the guidelines in the Help menu. Here is the text of that entry: "A vertical guideline may optionally shown at

How To Make New Features Known?

2022-04-26 Thread tbp1...@gmail.com
I'm particularly thinking of new UI features, which are mostly turned off by default and need to be turned on by new settings. For the most part, only a few people who read about them here in Groups will see them, and most of those won't remember later. New users won't know about them. And

"Modern" Javascript/Typescript Runtime

2022-04-25 Thread tbp1...@gmail.com
For folks interested in working with typescript and javascript, i have just learned about a relatively new runtime called "Deno" that looks very interesting. it is written in rust. See Deno -- You received this message because you are subscribed to the Google Groups

Re: No more big code changes to Leo

2022-04-24 Thread tbp1...@gmail.com
D'accord. Save such things for new work. On Sunday, April 24, 2022 at 4:16:49 PM UTC-4 Edward K. Ream wrote: > #2601 is likely to > contain the last large change to Leo's code base. The corresponding PR > #2604

Re: Leo's maintenance mode is well begun

2022-04-23 Thread tbp1...@gmail.com
stay tuned... On Saturday, April 23, 2022 at 3:21:00 PM UTC-4 jkn wrote: > > that sounds very tantalising! ;-) > > J^n > > On Saturday, April 23, 2022 at 2:51:21 PM UTC+1 tbp1...@gmail.com wrote: > >> That reference paid off. i have a working testbed that paints a

Re: Leo's maintenance mode is well begun

2022-04-23 Thread tbp1...@gmail.com
any real problems. painting vertical guidelines for tab stops will have a few challenges. On Thursday, April 21, 2022 at 1:09:49 PM UTC-4 tbp1...@gmail.com wrote: > pyzo's code for indentation guides does do custom painting as well. > something i'm not clear about is when a qtextedit

Re: Leo's maintenance mode is well begun

2022-04-21 Thread tbp1...@gmail.com
...@gmail.com wrote: > "i don't know how ..." is just stream-of-consciousness and an invitation > for others to jump in > if they know something. it's just a starting point. > On Thursday, April 21, 2022 at 12:24:31 PM UTC-4 Edward K. Ream wrote: > >> On Thu

Re: Leo's maintenance mode is well begun

2022-04-21 Thread tbp1...@gmail.com
"i don't know how ..." is just stream-of-consciousness and an invitation for others to jump in if they know something. it's just a starting point. On Thursday, April 21, 2022 at 12:24:31 PM UTC-4 Edward K. Ream wrote: > On Thu, Apr 21, 2022 at 10:21 AM tbp1...@gmail.

Re: Leo's maintenance mode is well begun

2022-04-21 Thread tbp1...@gmail.com
this might be relevant - Draw vertical lines on QTextEdit in PyQt <https://stackoverflow.com/questions/30371613/draw-vertical-lines-on-qtextedit-in-pyqt> On Thursday, April 21, 2022 at 11:06:47 AM UTC-4 tbp1...@gmail.com wrote: > I'm certainly interested in having vertical guide lines

Re: Leo's maintenance mode is well begun

2022-04-21 Thread tbp1...@gmail.com
I'm certainly interested in having vertical guide lines. i don't have a clue about how to do them with Qt. i did them once in a browser application with css borders but i don't see that working for a QTextBrowser. On Thursday, April 21, 2022 at 9:56:16 AM UTC-4 Edward K. Ream wrote: > On

Re: Improved links code now in both the devel and ekr-ann branches

2022-04-20 Thread tbp1...@gmail.com
ok on windows: Ran 923 tests in 21.443s OK (skipped=8) On Wednesday, April 20, 2022 at 4:35:25 PM UTC-4 Edward K. Ream wrote: > > > On Wed, Apr 20, 2022 at 2:14 PM Viktor Ransmayr > wrote: > > >> I'll leave #2609 > open for at least

Re: Leo's Phenomenal range of Utility - How I use Leo

2022-04-20 Thread tbp1...@gmail.com
certainly, go right ahead. On Wednesday, April 20, 2022 at 1:33:24 PM UTC-4 Edward K. Ream wrote: > On Tuesday, April 12, 2022 at 12:39:54 PM UTC-5 tbp1...@gmail.com wrote: > >> There have been one or two recent threads on how different people >> discovered or use Leo. Bu

Re: ENB: about the "missing links" issue

2022-04-20 Thread tbp1...@gmail.com
Yes, that's been clear for the beginning. so you can't, for example, paste a link msg from the console into the log of a different outline - and expect to get clickable links - because that outline won't have the file. imho, the check isn't needed because we already know the file exists -

Re: ENB: about the "missing links" issue

2022-04-19 Thread tbp1...@gmail.com
any input from the windows console is a potential problem because windows does not have real utf-8 code pages - even cp 65001 is not fully utf-8 correct, and not many windows machines will be using cp65001 anyway. i don't remember how the new windows terminal factors into this. otoh, how

Re: Non-ASCII characters in a node body make edit operations produce unintended results

2022-04-13 Thread tbp1...@gmail.com
There could also be a problem with a specific version of Qt, so if you can try later version (or possibly earlier) it might behave differently. Supposedly, all Qt widgets and strings work correctly with unicode and/or utf-8 encoding. On Wednesday, April 13, 2022 at 4:14:07 PM UTC-4 tbp1

Re: Non-ASCII characters in a node body make edit operations produce unintended results

2022-04-13 Thread tbp1...@gmail.com
It looks like that on particular page, the non-ascii characters are emojis. I copied part of that page with two of the emojis into a Leo node and didn't see any unusual behavior. , and copying with worked as expected. Do you have an example that didn't work right for you? Here's an

Leo's Phenomenal range of Utility - How I use Leo

2022-04-12 Thread tbp1...@gmail.com
There have been one or two recent threads on how different people discovered or use Leo. But I haven't really seen anything that gives the flavor of how very many ways Leo can be used, apart from outright programming that is. So I thought I'd try to lay out how I typically use it. It's true

Viewrendered3 Plugin In A Tab?

2022-04-10 Thread tbp1...@gmail.com
I have adapted the VR3 plugin to run in a tab in the log pane instead of in its own pane. The way I did it, it's not strictly a plugin, but it has all the same functionality. There is a script to toggle the tab on or off, and a button to run the script. It was easy to make the change. I'm

Pylint Working Again

2022-04-10 Thread tbp1...@gmail.com
I'm glad to say that the pylint command is working again, and better than ever. The PR is now in the latest version of the devel branch. Before, pylint would block Leo - make it unresponsive - until it finished, which sometimes took a long time. Now it does not block, and you can tee it up

Re: Please test the pylint command in the ekr-hang5 branch

2022-04-09 Thread tbp1...@gmail.com
I just tried this branch, and get the same result - no output. Here's the problem. In *check_process*, we have (with my added comments_: if self.pid: # tbp: Will never be non-None if the pipe fills up ... # The process has completed. Wait for the output! outs, errs =

Re: Please test Leo's pylint command in devel

2022-04-09 Thread tbp1...@gmail.com
Thanks, @lewis, @viktor, this is very helpful. We have identified the cause: The pylint command is run using subprocess.Popen and writes output (stdout) to a pipe. When there is a lot of output, the output pipe fills up and the source has to wait until it has room again. So the process

Re: Please test Leo's pylint command in devel

2022-04-08 Thread tbp1...@gmail.com
You have to run it on an external file tree - @file or @clean. The message is saying that that the routine couldn't find an external file looking upwards through the tree. On Friday, April 8, 2022 at 9:02:10 PM UTC-4 lewis wrote: > I have pylint 2.13.5 installed with pip. > Right-click over a

Re: Aha: how to "interrupt" a generator

2022-04-06 Thread tbp1...@gmail.com
There are a number of interesting possibilities in Resetting generator object in Python . Some of them: "You can now use more_itertools.seekable

Re: Leo is entering maintenance mode

2022-04-06 Thread tbp1...@gmail.com
Well, yes, except that my name is there and yet I - for one - don't know how to do any of these tasks. That might be so for most of the others, too, I don't know. On Wednesday, April 6, 2022 at 2:38:46 PM UTC-4 Edward K. Ream wrote: > On Wed, Apr 6, 2022 at 1:34 PM tbp1...@gmail.com >

Re: Leo is entering maintenance mode

2022-04-06 Thread tbp1...@gmail.com
Which reminds me, who besides you knows (and is authorized to do) the PR acceptance, release process, and Github admin tasks? On Wednesday, April 6, 2022 at 2:32:49 PM UTC-4 tbp1...@gmail.com wrote: > Heh, heh, I'm sure that there will never be an end to maintenance items! > > On

Re: Leo is entering maintenance mode

2022-04-06 Thread tbp1...@gmail.com
Heh, heh, I'm sure that there will never be an end to maintenance items! On Wednesday, April 6, 2022 at 1:12:41 PM UTC-4 Edward K. Ream wrote: > Don't panic. I'll continue to answer email and review PRs. > > This week marks a personal milestone. Nothing remains on my to-do list for > Leo,

Re: How did we ever live without reindent?

2022-04-06 Thread tbp1...@gmail.com
New to me! Did you notice the date? It goes back to the year 2000. On Wednesday, April 6, 2022 at 11:28:21 AM UTC-4 Edward K. Ream wrote: > Recent problems with Leo's beautify command lead me to the reindent.py > script in python/Tools/scripts. reindent fixes all problems involving >

How To Draw SVG Images In The Viewrendered3 Pane

2022-04-03 Thread tbp1...@gmail.com
You may be developing a script that creates an SVG image and you want to display it easily. Maybe you need to keep tweaking the image until you get it the way you like, so it has to be easy. How can you do it? The Viewrendered3 plugin (VR3) will display a node whose body contains only SVG

Re: Is it possible to do regex searches in LEO?

2022-04-03 Thread tbp1...@gmail.com
On Sunday, April 3, 2022 at 12:21:39 AM UTC-4 tbp1...@gmail.com wrote: > I believe there is also a command that can clone nodes that match a regex, > but I've never used it so I'm not the one to ask. > Yes, the clone-find* commands use the find string in the *Find* panel, an

Re: Is it possible to do regex searches in LEO?

2022-04-02 Thread tbp1...@gmail.com
You can visit all the nodes and test each body or headline with a regex. So it's really not about Leo, but about the regexes. That doesn't make it simple (!), but at least it's only about one subject and not two. I'd be thinking about something like this (untested): ANNUALre = 'ANNUAL[

Re: Leo as a Database

2022-04-01 Thread tbp1...@gmail.com
https://tiddlywiki.com/ > > On Thursday, March 31, 2022 at 6:45:34 AM UTC+2 tbp1...@gmail.com wrote: > >> Thanks for the comments. I don't disagree with most of them, but of >> course, "reasons". I had some user requirements in mind that these choices >>

Re: Ahas re tree traversals

2022-03-31 Thread tbp1...@gmail.com
Or, to put things another way, when you reach the end of a subtree, you don't automatically know how many levels (or indents, if you think of levels as indents) to return to. The leaf of a subtree won't have a next link, so you need some state to know where to go next. On Thursday, March 31,

Re: Leo as a Database

2022-03-30 Thread tbp1...@gmail.com
f formats for > instant messaging back in ... 1998. Ward Cunningham invented the Wiki > starting from Hypercard, so why not start from leo to invent ... the next > big thing ? > > I agree that a SQLite format for leo internally might be a good idea. But > apparently Edward won't

Leo as a Database

2022-03-30 Thread tbp1...@gmail.com
If you look at it right, Leo can be thought of - and used - as a database. I don't really mean just the tree-and-body organization and data. I mean a database in a more geneal and organized sense. A year or two ago, we had in another thread a presentation of how @Edward's brother Speed uses

Re: Simplified Leo Theme Outlines

2022-03-30 Thread tbp1...@gmail.com
Git hub seems to have added them to the current outstanding PR. I couldn't see a way to create a new one just for these new themes. On Wednesday, March 30, 2022 at 10:30:29 AM UTC-4 Edward K. Ream wrote: > On Tue, Mar 29, 2022 at 11:03 AM tbp1...@gmail.com > wrote: > >> >&

Re: usinf Linux signals to cause Leo to eg. save files?

2022-03-30 Thread tbp1...@gmail.com
It ought to be possible to extend leoserver to help with this. As things stand, you can run a Leo GUI session and a VSCode session at the same time (I've only done it on the same machine but that's not a fundamental problem) and you could use the leoserver instance to do signalling or

Simplified Leo Theme Outlines

2022-03-29 Thread tbp1...@gmail.com
When I put Leo on a small tablet recently, I had a hard time adjusting the theme to give a workable appearance. Whenever I made a change, say to the font size for some UI element, some other part of the screen would not have been changed, or edges of an element would be cut off, or other

Re: 6.6 coming this Thursday, March 31

2022-03-28 Thread tbp1...@gmail.com
6.6 branch is working normally on Linux Mint, with very brief testing. Leo 6.6-final, None branch, build 43adfaf64f 2022-03-27 09:30:01 -0500 Python 3.8.0, PyQt version 5.14.2 linux On Monday, March 28, 2022 at 11:03:16 PM UTC-4 viktor@gmail.com wrote: > Hello Edward, > > Viktor Ransmayr

Using More Readable Body Fonts

2022-03-28 Thread tbp1...@gmail.com
Leo themes always use monospaced fonts for the body text. This is understandable because Leo is so often used for programming. But there seem to be many users who use it for non-programming writing activities. In these cases, monospaced fonts aren't always the best because their readability

Viewrendered3 Case Study

2022-03-23 Thread tbp1...@gmail.com
The Viewrendered3 plugin can do a pretty fair job of mixing text, code, calculation, and graphics, once you learn how. As an illustration, I am attaching the exported HTML output of one of my projects. The subject is the epidemiology of the COVID pandemic in the US. Specifically, to simulate

Re: How did I came across Leo?

2022-03-23 Thread tbp1...@gmail.com
Here are two utility commands/scripts I use that help with this kind of thing. 1) get_plugins -- Show all plugins with their their docstrings. 2) Create Outline From Clipboard -- With a copied node or entire outline in the clipboard, create a new outline from it. Run *get_plugins * with

Re: How did I came across Leo?

2022-03-23 Thread tbp1...@gmail.com
On Wednesday, March 23, 2022 at 11:13:18 AM UTC-4 gates...@gmail.com wrote: > It's my primary IDE these days, and I've written quite a few 'LApps' > (leo-apps) that live inside their own outlines for various tasks -- > effectively custom tools. Leo is pretty central to how I interact with >

Re: How did I came across Leo?

2022-03-23 Thread tbp1...@gmail.com
finding it. You can navigate back to the starting point by clicking the back arrow button (twice in this case). Leo is loaded with goodies like this but it can be hard to find out about them. On Wednesday, March 23, 2022 at 10:45:27 AM UTC-4 tbp1...@gmail.com wrote: > Oh, yes, and when you

Re: How did I came across Leo?

2022-03-23 Thread tbp1...@gmail.com
AM UTC-4 tbp1...@gmail.com wrote: > On Wednesday, March 23, 2022 at 10:21:50 AM UTC-4 jkn wrote: > >> A couple of points from this interesting list: >> >> > - the minibuffer is inherited from emacs, and serves ... a yet to >> discover number of functions

Re: How did I came across Leo?

2022-03-23 Thread tbp1...@gmail.com
On Wednesday, March 23, 2022 at 10:21:50 AM UTC-4 jkn wrote: > A couple of points from this interesting list: > > > - the minibuffer is inherited from emacs, and serves ... a yet to > discover number of functions > Personally I think 'minibuffer' is an unhelpful name, it's just an > interface

Re: How did I came across Leo?

2022-03-22 Thread tbp1...@gmail.com
It's true that there can be a huge learning curve if you want to get beyond the obvious and do some custom things. Yet if you learn to use @file and @clean files, and especially if you want to develop in Python, or do some Sphinx-style documentation, you can get that going pretty easily.

Re: Using leo to _refactor_ Arduino c++ code and libraries. A bad idea ?

2022-03-22 Thread tbp1...@gmail.com
Assuming that Leo can run on the machine that cross-compiles your project, the easiest way to go would be to write a batch file that does the build - maybe there already is one - and launch that from within Leo. You can set up your project within Leo by importing all the files. It's possible

Re: Could Leo Have Canvas-type Nodes?

2022-03-22 Thread tbp1...@gmail.com
On Tuesday, March 22, 2022 at 10:29:41 AM UTC-4 Edward K. Ream wrote: > > On Tue, Mar 22, 2022 at 9:17 AM tbp1...@gmail.com > <https://groups.google.com/> <https://groups.google.com/>> wrote: > As a proof of principle, I have already adapted VR3 to run in tab. It

Re: Could Leo Have Canvas-type Nodes?

2022-03-22 Thread tbp1...@gmail.com
d the body in tabs, so we can check out if we really like it or not. It gives a lot more screen space for viewing than using the triple panes we currently use be default. On Tuesday, March 22, 2022 at 10:17:20 AM UTC-4 tbp1...@gmail.com wrote: > As a proof of principle, I have already adapt

Re: Could Leo Have Canvas-type Nodes?

2022-03-22 Thread tbp1...@gmail.com
active python terminal plugin, > etc.) :) > > Tabs are great. I've long wished that the body pane was tabbed -- > would've made one of my personal "Leo Apps" much easier to implement. > > On Tue, Mar 22, 2022 at 7:51 AM tbp1...@gmail.com > wrote: > >> &

Re: Could Leo Have Canvas-type Nodes?

2022-03-22 Thread tbp1...@gmail.com
ld be able to write to the tab instead. And presumably any code that can use a Qt canvas could write to one of these tabs. On Tuesday, March 22, 2022 at 7:51:28 AM UTC-4 tbp1...@gmail.com wrote: > I'm getting very enthusiastic about this notion because I can see how it > could work - from

Re: Could Leo Have Canvas-type Nodes?

2022-03-22 Thread tbp1...@gmail.com
is idea, I am wholeheartedly for it. I > have long wanted such a feature, but couldn't figure out just how to word > it. > > On Mon, Mar 21, 2022 at 10:42 AM tbp1...@gmail.com > wrote: > >> Leo's nodes are basically text-only nodes. The text is available from >> the

Re: Basic concepts of using Leo to organise a python program

2022-03-21 Thread tbp1...@gmail.com
On Monday, March 21, 2022 at 10:56:08 AM UTC-4 cve...@gmail.com wrote: > Definitely, and I appreciate your (and Edward's) responsiveness and > openness. I don't grasp everything in your message (yet), I only installed > leo on one computer yesterday and was a bit surprised to see it (pip >

Could Leo Have Canvas-type Nodes?

2022-03-21 Thread tbp1...@gmail.com
Leo's nodes are basically text-only nodes. The text is available from the node's body, typically p.b, or the headline, p.h. I wonder if there could be another part of a node, a drawing canvas. Perhaps p.cnvs? If we could figure out how to converse with the canvas of a node, then we could

Re: Basic concepts of using Leo to organise a python program

2022-03-21 Thread tbp1...@gmail.com
ly see there anything that leo couldn't do better. Can you > clarify what you have in mind here ? > > On Monday, March 21, 2022 at 6:01:46 AM UTC+1 tbp1...@gmail.com wrote: > >> I fooled around with a sample Brain project on the Brain's web site. I >> was able to import the &quo

Re: Basic concepts of using Leo to organise a python program

2022-03-20 Thread tbp1...@gmail.com
need to be invented. There would be no point in trying to reproduce what The Brain already has! On Friday, March 18, 2022 at 2:12:18 PM UTC-4 tbp1...@gmail.com wrote: > Actually, just the browser bookmark scripts and optionally the mind > mapping visualization, would probably do it. > >

Re: PR #2495 (A mass code cleaning) has been merged into devel

2022-03-18 Thread tbp1...@gmail.com
A gutsy move! Thank goodness for Version Control Systems, eh? So far, VR3, Freewin, and a few scripts of mine seem to work normally. On Friday, March 18, 2022 at 3:54:13 PM UTC-4 Edward K. Ream wrote: > PR #2495 fixes a > systematic

Re: Leo Theme Adjustments For UI Elements

2022-03-18 Thread tbp1...@gmail.com
e tunings. On Friday, March 18, 2022 at 4:34:40 PM UTC-4 Edward K. Ream wrote: > On Thu, Mar 17, 2022 at 12:17 PM tbp1...@gmail.com > wrote: > >> Most if not all Leo themes I have seen use the same fonts (and usually >> font sizes) for most of the visual elements, suc

Re: Basic concepts of using Leo to organise a python program

2022-03-18 Thread tbp1...@gmail.com
Actually, just the browser bookmark scripts and optionally the mind mapping visualization, would probably do it. On Friday, March 18, 2022 at 2:07:27 PM UTC-4 tbp1...@gmail.com wrote: > Having downloaded one of the example brains, and looked at a few of the > online examples, I'm

Re: Basic concepts of using Leo to organise a python program

2022-03-18 Thread tbp1...@gmail.com
provide similar capabilities. Add some enhancements to the mind mapping script I provided a while ago, and we might be able to have a really good alternative. On Friday, March 18, 2022 at 11:28:31 AM UTC-4 tbp1...@gmail.com wrote: > I've tried TheBrain maybe three times over these many ye

Re: Basic concepts of using Leo to organise a python program

2022-03-18 Thread tbp1...@gmail.com
I've tried TheBrain maybe three times over these many years. It always seems so promising, and I always abandon it with frustration. On Friday, March 18, 2022 at 11:10:22 AM UTC-4 cve...@gmail.com wrote: > ... Now, maybe leo could also import TheBrain files ? ;-) > Now there is an interesting

Re: Is It Time For A Leo Project File Format?

2022-03-18 Thread tbp1...@gmail.com
at 11:48:06 PM UTC+1 tbp1...@gmail.com wrote: > >> It's been a long time since I tried it, and my current install of Hg >> doesn't seem to be having any trouble with a .leo file. That's good! >> >> On Wednesday, March 16, 2022 at 6:31:24 PM UTC-4 tbp1...@gmail.com wr

Re: Leo Theme Adjustments For UI Elements

2022-03-17 Thread tbp1...@gmail.com
Here's an updated theme outline that handles more of the widgets, including those in the Log frame. On Thursday, March 17, 2022 at 1:17:32 PM UTC-4 tbp1...@gmail.com wrote: > Most if not all Leo themes I have seen use the same fonts (and usually > font sizes) for most of the visual el

Leo Theme Adjustments For UI Elements

2022-03-17 Thread tbp1...@gmail.com
Most if not all Leo themes I have seen use the same fonts (and usually font sizes) for most of the visual elements, such as the tree and menu bars. And that font will invariably be a monospaced programming font, as is used for the body text. Yet most of these visual elements are not used for

Re: Is It Time For A Leo Project File Format?

2022-03-16 Thread tbp1...@gmail.com
It's been a long time since I tried it, and my current install of Hg doesn't seem to be having any trouble with a .leo file. That's good! On Wednesday, March 16, 2022 at 6:31:24 PM UTC-4 tbp1...@gmail.com wrote: > I have used Mercurial on my computer for some time. But it just grew and

Re: Script To List Any Python Object

2022-03-16 Thread tbp1...@gmail.com
Mar 15, 2022 at 10:26 PM tbp1...@gmail.com > wrote: > >> Here is a utility script - in the attached outline - that will list the >> contents of an object's __dict__ in a fairly readable way including the >> docstrings. > > > Thanks for this. An alternati

Re: Is It Time For A Leo Project File Format?

2022-03-16 Thread tbp1...@gmail.com
leable-systems/timeline > [3b] https://mutabit.com/repos.fossil/malleable-systems > > Cheers, > > Offray > On 16/03/22 6:47, tbp1...@gmail.com wrote: > > I should perhaps written "additional" so as not to imply replacing the > existing .leo files. > > On

Re: Is It Time For A Leo Project File Format?

2022-03-16 Thread tbp1...@gmail.com
I should perhaps written "additional" so as not to imply replacing the existing .leo files. On Wednesday, March 16, 2022 at 7:39:19 AM UTC-4 Edward K. Ream wrote: > On Tue, Mar 15, 2022 at 12:35 PM tbp1...@gmail.com > wrote: > > The short answer to the question is no :

Script To List Any Python Object

2022-03-15 Thread tbp1...@gmail.com
Here is a utility script - in the attached outline - that will list the contents of an object's __dict__ in a fairly readable way including the docstrings. You can use it for listing the methods, functions, and classes of c or g, or of any other Python object. In the outline, the script

Is It Time For A Leo Project File Format?

2022-03-15 Thread tbp1...@gmail.com
As I have been working on sending a Leo outline to a remote computer, I've realized that sending the outline doesn't send any external files or resources. Resources might be css style files, images, or other files that are used by an outline. This is also a problem when you want to simply

Re: Remote Leo Files - Security Issues

2022-03-14 Thread tbp1...@gmail.com
leave that to the system firewall. On Monday, March 14, 2022 at 1:14:02 AM UTC-4 viktor@gmail.com wrote: > Hello Thomas, > > tbp1...@gmail.com schrieb am Samstag, 12. März 2022 um 23:00:34 UTC+1: > >> Since we are looking at getting Leo to work with files on a remote >> computer,

Re: Using A Leo Outline On Another Computer (Part 2)

2022-03-13 Thread tbp1...@gmail.com
be cumbersome for what I'm trying to do. And you would still have to transfer the file contents from machine to machine anyway. On Sunday, March 13, 2022 at 11:51:06 PM UTC-4 tbp1...@gmail.com wrote: > This works - the little client script together with the monkey-patched > leoserver wa

Re: Using A Leo Outline On Another Computer (Part 2)

2022-03-13 Thread tbp1...@gmail.com
13, 2022 at 6:21:36 PM UTC-4 tbp1...@gmail.com wrote: > Continuing the previous discussion (Using a Leo Outline On Another > Computer? <https://groups.google.com/g/leo-editor/c/lbrgq0YBG-0>), we > don't even have to change leoserver. Instead, we can import it and monkey > pa

Using A Leo Outline On Another Computer (Part 2)

2022-03-13 Thread tbp1...@gmail.com
Continuing the previous discussion (Using a Leo Outline On Another Computer? ), we don't even have to change leoserver. Instead, we can import it and monkey patch it. Basically, import leo.core.leoserver, and then add the following:

Re: Using a Leo Outline On Another Computer?

2022-03-13 Thread tbp1...@gmail.com
I'll take a look. On Sunday, March 13, 2022 at 7:27:08 AM UTC-4 Edward K. Ream wrote: > On Tuesday, March 8, 2022 at 4:12:39 PM UTC-6 tbp1...@gmail.com wrote: > >> I'd like to open a Leo outline that is on another computer - strictly >> within my home LAN. I could

Re: Using a Leo Outline On Another Computer?

2022-03-13 Thread tbp1...@gmail.com
Yes it is. On Sunday, March 13, 2022 at 7:09:14 AM UTC-4 Edward K. Ream wrote: > On Saturday, March 12, 2022 at 11:07:20 PM UTC-6 tbp1...@gmail.com wrote: > >> And the new (very simpleminded) leoserver command is: > > > [Snip] > > Thanks for all this work. I spoke w

Re: Using a Leo Outline On Another Computer?

2022-03-12 Thread tbp1...@gmail.com
t;: result} return self._make_response(data) On Saturday, March 12, 2022 at 11:59:50 PM UTC-5 tbp1...@gmail.com wrote: > And here is the entire client main loop using commander methods instead of > c.k.simulateCommand(): > > async def client_main_loop(timeout): > uri

Re: Using a Leo Outline On Another Computer?

2022-03-12 Thread tbp1...@gmail.com
pp.gui.replaceClipboardWith(file) > c.k.simulateCommand('new') > c1 = g.app.commanders()[-1] > c1.k.simulateCommand('paste-retaining-clones') > return > return > > In practice I suppose we wouldn't want to retur

Remote Leo Files - Security Issues

2022-03-12 Thread tbp1...@gmail.com
Since we are looking at getting Leo to work with files on a remote computer, we should discuss the security aspect. I think there are basically two kinds of things we'd like to prevent. My terminology here is that the "host" computer is the one that contains a Leo file that we'd like to work

Re: Using a Leo Outline On Another Computer?

2022-03-12 Thread tbp1...@gmail.com
uppose we wouldn't want to return from the client this way because we wouldn't want to shut down the remote leoserver instance. On Saturday, March 12, 2022 at 8:31:35 AM UTC-5 tbp1...@gmail.com wrote: > On Saturday, March 12, 2022 at 8:23:14 AM UTC-5 tbp1...@gmail.com wrote: > >>

Re: Using a Leo Outline On Another Computer?

2022-03-12 Thread tbp1...@gmail.com
On Saturday, March 12, 2022 at 8:23:14 AM UTC-5 tbp1...@gmail.com wrote: > It seems to me that almost everything we need already exists except for > the actual acquire-from-the-leoserver. part. > For instance, once Leo has the bytes from the other computer, loading them is es

Re: Using a Leo Outline On Another Computer?

2022-03-12 Thread tbp1...@gmail.com
On Saturday, March 12, 2022 at 1:25:05 AM UTC-5 Félix wrote: > > That is, we want the desktop version of Leo to be the "client". > Oh! I get it now! - (I thought Thomas was thinking about writing a > Leo-dumb-terminal client (à la leointeg) in python with Qt5/Qt6/tcl-tk or > some other gui

Re: Using a Leo Outline On Another Computer?

2022-03-11 Thread tbp1...@gmail.com
work with leointeg (or used to - maybe Felix has changed it by now). I think that's acceptable. On Thursday, March 10, 2022 at 10:20:42 PM UTC-5 tbp1...@gmail.com wrote: > So here is my first question. In the linked docs: > > "leoserver.py has optional command line arguments that y

<    1   2   3   4   5   6   7   8   9   >