Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I was thinking the same. After all, leointeg or leojs could parse headlines and do something with the results. What might make sense - both for security and for both Leo and leojs - would be to write a small number of methods that would be the only ones that could be used in path expression

Re: Discuss: remove support for Leo's path expressions

2023-04-07 Thread Thomas Passin
I'm a little conflicted about this suggestion. I haven't used path expressions much, but I did experiment with using them to work on both Linux and Windows, where the difference was more than just the meaning of "~". By "work", I mean that the same outline could be moved between Linux and Win

VR3 can now be opened in a tab

2023-04-07 Thread Thomas Passin
The VR3 plugin can now optionally open in a tab in the log pane instead of in its own panel in the main Leo window (also referred to as a pane in the splitter). I have attached a screen shot that shows the panel layout that I like when using VR3 in a tab. There are two new commands to control

Re: How To Install Leo Dependencies From a Git Clone

2023-04-07 Thread Thomas Passin
Keeping it up to date would be the question. On Friday, April 7, 2023 at 5:14:35 AM UTC-4 Edward K. Ream wrote: > On Thu, Apr 6, 2023 at 11:45 PM Thomas Passin wrote: > >> I just installed Python 3.11.3. I of course wanted to install Leo right >> away. I normally run Leo fr

How To Install Leo Dependencies From a Git Clone

2023-04-06 Thread Thomas Passin
I just installed Python 3.11.3. I of course wanted to install Leo right away. I normally run Leo from my clone. With an ordinary requirements.txt file one can install the requirements using pip -r requirements.txt. But Leo uses a tricky requirements.txt file that delegates everything to the

Re: Paste image from clipboard.

2023-04-06 Thread Thomas Passin
No, Leo nodes cannot display images per se. What you can do is to use markdown or ReStructuredText and use their syntax to show images. The image file would need to be in a location in the files system like any other image file. You can view the rendered node with its images, math symbols, e

Re: Qt 6.5 LTS Released

2023-04-05 Thread Thomas Passin
" MIT License Compatibility The MIT License is highly compatible with other permissive licenses. Including the BSD family of licenses. It is generally compatible with GNU GPL group of licenses. However if you distribute the code that contains or is derivative of GNU GPL code the final project

Re: OT? Beware of ChatGPT

2023-04-03 Thread Thomas Passin
pretty good job, but it's hard to predict when it's going to fail. On Thursday, March 30, 2023 at 12:09:02 PM UTC-4 Thomas Passin wrote: > Here's a really good book covering the basics of neural nets, fuzzy logic, > and the relationship between them. It's rather old

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
Now this is interesting! I wasn't considering huge image files, most just "ordinary" ones like photos, screenshots, or graphs that would be common images to want to include with, for example, a markdown document. I'll read up on your links. Thanks! On Sunday, April 2, 2023 at 5:18:24 PM UTC-

Re: New Leo "Package" File Format?

2023-04-02 Thread Thomas Passin
That's good to know. It seems to me that the main challenge would be for Leo to know just what to have in the package. External files would be easy, but for example image files - how to know about them could be a real challenge. I'm thinking that an outline could contain an @resources node,

Can Leointeg Achieve Near Parity With Leo?

2023-04-02 Thread Thomas Passin
I've need thinking about leointeg and how I've been using Leo. This has generated some thought and questions, so I thought I'd air them here. Felix has done magnificent work with creating leointeg, no doubt about it, and I hope he will post some of his thinking here. One topic is about script

Re: How can I keep md-content in Leo instead of importing it?

2023-04-02 Thread Thomas Passin
I use ReST more than MD, but they should work the in a similar way. For Leo trees that are intended to be used by Sphinx, I just make the headline of the top node start with @rst. Otherwise I just put @language rest in the body of the top node of the tree. The rst3 command creates a ReST fil

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
n this field). It's not about programming at all. Neural Networks and Fuzzy Systems: A Dynamical Systems Approach to Machine Intelligence Bart Kosko I wish I knew where my own copy of it is. I think it may be buried in a box in a storage locker. On Thursday, March 30, 2023 at 11:37:34 AM

Re: OT? Beware of ChatGPT

2023-03-30 Thread Thomas Passin
I'm a little ambivalent. I'd certainly like to play around with the stuff, and apparently the code in this post is set up to use actual GPT trained coefficients. But what I'm most interested just now is training with other specialized data sets, except that the ones I want don't exist, or I do

Re: OT? Beware of ChatGPT

2023-03-29 Thread Thomas Passin
GPT in 60 lines of Python - GPT in 60 lines <https://jaykmody.com/blog/gpt-from-scratch/#what-is-a-gpt?> On Tuesday, January 31, 2023 at 10:17:26 AM UTC-5 Thomas Passin wrote: > Here is an interesting link that among other things shows how ChatGPT has > major weaknesses in math

New Leo "Package" File Format?

2023-03-29 Thread Thomas Passin
There is a perennial problem when one wants to give a Leo outline to someone else. It happens when an outline contains external files, or images to display, or any other data files that might be needed. For example, an article written with the Viewrendered3 plugin in mind, or for a Sphinx do

Re: Images In Leo Nodes?

2023-03-29 Thread Thomas Passin
10:24:33 AM UTC-4 Edward K. Ream wrote: > On Tue, Mar 28, 2023 at 5:04 PM Thomas Passin wrote: > > It would be very useful if an image could be embedded into a Leo body. >> Probably no one would want to do this in a program or script, but for >> documentation it could be very

Re: New undo methods for multiple headline changes on branch 'boltex/issue3219'

2023-03-28 Thread Thomas Passin
Without a PR, it's hard to review the code without knowing what has been changed. On Tuesday, March 28, 2023 at 10:46:42 PM UTC-4 Félix wrote: > If you'd like to test out some new proposed methods to undo/redo commands > that alter many headlines at once: > https://github.com/leo-editor/leo-ed

Re: Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 8:59:01 PM UTC-4 gates...@gmail.com wrote: Not what you’re really looking for, but Leo already supports @svg nodes. Of course, those are just the image in a node, viewable in VR — no text around them in the same node, to my knowledge. Right, and VR3 has even mor

Images In Leo Nodes?

2023-03-28 Thread Thomas Passin
It would be very useful if an image could be embedded into a Leo body. Probably no one would want to do this in a program or script, but for documentation it could be very helpful. You can put an image into a ReST, MD, or Asciidoc node and view it with VR3 or by creating Sphinx output. But e

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Here's a script to reverse the effects of the change body script. On Tuesday, March 28, 2023 at 12:01:18 PM UTC-4 Edward K. Ream wrote: > On Tue, Mar 28, 2023 at 9:56 AM Thomas Passin wrote: > >> It would be easy to have a companion script that eliminates the >> font

Re: Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
It would be easy to have a companion script that eliminates the font-changing behavior. If people say they want it, I'll work one up and post it. On Tuesday, March 28, 2023 at 10:45:14 AM UTC-4 Thomas Passin wrote: Nearly all Leo themes use a monospaced typeface for the body font. Th

Script To Automatically Change The Body Font Based On Node's @Language

2023-03-28 Thread Thomas Passin
Nearly all Leo themes use a monospaced typeface for the body font. This is what you want for programming, but for documentation and other non-code writing, many people would prefer a non-monospaced font. Some might event wish for a serif style typeface. The attached script installs a global s

Re: ENB: About headline numbers

2023-03-28 Thread Thomas Passin
On Tuesday, March 28, 2023 at 9:08:01 AM UTC-4 Edward K. Ream wrote: PR #3227 contains a draft implementation of issue #3121 : headline numbers. While working on this PR, several problems

Re: PR #3224: mod_autosave is ready for review

2023-03-28 Thread Thomas Passin
When verbose mode is on, then when autosave happens the Log pane switches to the Log tab to write the message. This can be really annoying if you are working in another tab at the time. Another reason for the verbose mode setting. On Monday, March 27, 2023 at 8:10:02 PM UTC-4 Edward K. Ream w

Re: New Way To Expand/Contract Leo Trees

2023-03-27 Thread Thomas Passin
I did forget to uncomment the line, but I *thought* I had caught that with a later PR. Sorry! On Monday, March 27, 2023 at 4:40:47 AM UTC-4 Edward K. Ream wrote: On Mon, Mar 27, 2023 at 2:00 AM lewis wrote: I added *@bool **use-mouse-expand-gestures** - True* to myLeoSetttings.leo but the

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I agree that making Leo do autosave smoothly every few seconds or at least often could be hard. I certainly wouldn't want it to freeze for a short (or sometimes longer) time while it saved. OTOH, I'm never sure I really want autosave. I've had plenty of times where I don't save on purpose sin

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:53:47 AM UTC-4 Edward K. Ream wrote: On Sun, Mar 26, 2023 at 9:43 AM Thomas Passin wrote: I just now got repeated crashes when trying to do a particular operation - it started happening every time. My script goes out to the internet and tries to download a

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
Ream wrote: > On Sun, Mar 26, 2023 at 8:06 AM Thomas Passin wrote: > >> I think it's a crash from Qt, but not from this new UI code. > > > Imo the new UI code isn't off the hook yet. Qt should never crash, but > Leo's tree drawing code has crashed Qt many

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 10:21:21 AM UTC-4 al...@laerios.com wrote: > @paolomi thinks it should not be in ~/ so as to reduce clutter in the > user's home directory. On 26.3.2023 07:25, Edward K. Ream wrote: > - The home directory is a natural place for this data. > - The home directory o

Re: Devel reverts recent UI work

2023-03-26 Thread Thomas Passin
I don't think it's the new code, as I said on the other thread. I think there are some Qt problems in general, but I don't think they are from this. I've submitted a new PR that has a setting that needs to be set to True to enable the new behavior. The code did require something new, and I s

Re: New Way To Expand/Contract Leo Trees

2023-03-26 Thread Thomas Passin
I think it's a crash from Qt, but not from this new UI code. That's because I have been getting hard crashes for weeks at least. I did not used to get them, so I'm thinking it's something about a particular version of Qt, or a Windows update (In fact, I had an update recently). I think it's Q

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-26 Thread Thomas Passin
On Sunday, March 26, 2023 at 6:25:34 AM UTC-4 Edward K. Ream wrote: On Sat, Mar 25, 2023 at 8:36 PM Thomas Passin wrote: @paolomi has requested that Leo's user's home directory be moved - on Linux - from the location it has always had to a new one. The current location is ~/.leo.

Re: Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
Thanks for your thoughts, Felix. XDG is one of those not-quite-standards that is supposed to promote interoperability and "sane" locations for various kinds of system files and others. I'm no expert but it seems to me that some major distros follow it less strictly for user locations than oth

Move Location Of ~/.leo File For Future Installs?

2023-03-25 Thread Thomas Passin
@paolomi has requested that Leo's user's home directory be moved - on Linux - from the location it has always had to a new one. The current location is ~/.leo. @paolomi thinks it should not be in ~/ so as to reduce clutter in the user's home directory. Existing installations would not be chan

New Way To Expand/Contract Leo Trees

2023-03-25 Thread Thomas Passin
Just merged into the devel branch is a new way to expand or contract nodes using the mouse. When you hold the CTRL key and move the mouse over a node, it will expand. When you hold down the SHIFT key instead, the node will contract. In practice, this means that you can just wave the mouse ove

Re: Unable to create Leo's Documentation locally

2023-03-18 Thread Thomas Passin
On Saturday, March 18, 2023 at 1:28:05 PM UTC-4 viktor@gmail.com wrote: Hello Thomas I used a slightly simpler version, since I did not want to add any dependency & make it non-windows specific: import sys import subprocess pyexe = sys.executable cmd = [pyexe, '-m', 'sphinx', '-C',

Re: Please test PR #3150: @font and @color bugs

2023-03-17 Thread Thomas Passin
I'm very confused here. On Friday, March 17, 2023 at 10:55:27 AM UTC-4 Edward K. Ream wrote: PR #3150 fixes problems with `@color` and `@font` settings. Apparently @font settings have not been working for a year or more. In that sense, the ch

Re: Unable to create Leo's Documentation locally

2023-03-17 Thread Thomas Passin
The following script will build everything except the slides. Either it needs to be run from the *leo/doc* directory or the path needs to be added to the script instead of the "." in the last line: #see https://github.com/leo-editor/leo-editor/issues/1566 import sys import subprocess pyexe=sys.

More Git Techniques From The Old New Thing

2023-03-15 Thread Thomas Passin
Raymond Chen sometimes shares git-wrangling techniques. Today's offering: How can I create a git feature branch that can merge into multiple other branches? -- You received this message because you are subscribed to the Google

Re: OT: Breakthrough: "Liquid" neural networks

2023-03-11 Thread Thomas Passin
Interesting! And also hot off the presses, the complete neural structure of the brain of the fruit fly larva has been mapped. It has 93 neuron types, 3016 neurons, with, get this, *548,000* interconnections. The "liquid neural network" described in the Quanta article has 19 neurons and 253

Re: For Devs: An @notImplemented Decorator

2023-03-10 Thread Thomas Passin
" pylint prefers NotImplementedError." - EKR Often during development I prefer not to handle an exception, and want the program continue to run. Though I suppose I could put exception handling into the decorator. -- You received this message because you are subscribed to the Google Groups "

For Devs: An @notImplemented Decorator

2023-03-09 Thread Thomas Passin
It can be helpful to be able to handle functions/methods that have not been implemented. This is often done by having them print a string (such as "Not Implemented") and returning. This is a bit clumsy and one needs to edit it out when the function is ready to test. As an alternative, I some

Re: LeoInteg 1.0.12 Released!

2023-03-05 Thread Thomas Passin
Very nice work, Felix! On Sunday, March 5, 2023 at 1:55:39 AM UTC-5 Félix wrote: > > [image: banner1.0.12.png] > *Requires Leo Version 6.7.2 > * > > 🎉 *I'm happy to announce the release of LeoInteg 1.0.12 >

Re: Windows Console Colors To Match Your Leo Theme (Part 2)

2023-03-04 Thread Thomas Passin
This is Part 3 of the series on changing Windows console colors to match your Leo theme. This post is Part 3, the last part, of the series on making and using Windows console color themes. The ColorTool.exe program (see Part 1) makes it relatively easy to modify an existing theme. To create o

Re: Windows Console Colors To Match Your Leo Theme (Part 2)

2023-03-04 Thread Thomas Passin
To make changing your console color themes easier, it's worth while making either a batch file or some aliases. Doskey aliases are probably less familiar, so that's what I will cover in this post. Here is a doskey alias for making the console change to the tbp-dark.ini theme (the command shoul

Windows Console Colors To Match Your Leo Theme

2023-03-04 Thread Thomas Passin
Would you like your Windows console colors to be like your Leo theme? In this post I will explain how to make this happen, at least if you use one of my solarized or quasi-solarized themes. In the next post I will give you a few tips to make changing themes easier. In a post after that I will

Re: Two standard outline editing commands

2023-03-02 Thread Thomas Passin
On Thursday, March 2, 2023 at 3:41:48 PM UTC-5 chr...@gmail.com wrote: If these two indeed don't exist, can they be added by scripting? via a plugin? Maybe I could dot hat, but am not yet quite sure yet, gotta read more doc. The best way to proceed, IMHO, is to develop the script in your wor

Re: Thumb-nail Explanation Of Leo

2023-02-28 Thread Thomas Passin
On Tuesday, February 28, 2023 at 12:03:04 PM UTC-5 off...@riseup.net wrote: I think that your explanation is pretty complete. For me, one of the most important aspects of Leo is that the structure of the plain-text documents is not only implicit, and in that sense "rarely visualized", as you p

Re: Thumb-nail Explanation Of Leo

2023-02-27 Thread Thomas Passin
akes possible a divide-and-conquer strategy." On Sunday, February 26, 2023 at 6:02:29 PM UTC-5 Thomas Passin wrote: > Thanks ... I'll see how to work that in. It might fit in as one of the > key concepts. > > On Sunday, February 26, 2023 at 5:54:59 PM UTC-5 stevelitt wrote: &

Re: Leo Themes - Tweaks and Comparisons

2023-02-27 Thread Thomas Passin
Looking at the images I just posted, they all have a slight lack of sharpness. It must be something about resizing done by Google Groups, because the originals look sharper. On Monday, February 27, 2023 at 9:18:45 PM UTC-5 Thomas Passin wrote: > From time to time I revisit Leo's colo

Re: Thumb-nail Explanation Of Leo

2023-02-26 Thread Thomas Passin
Thanks ... I'll see how to work that in. It might fit in as one of the key concepts. On Sunday, February 26, 2023 at 5:54:59 PM UTC-5 stevelitt wrote: > Thomas Passin said on Sat, 25 Feb 2023 09:11:31 -0800 (PST) > > > >Leo's key concepts include a tree-like organizati

Programming By Contract for Python

2023-02-25 Thread Thomas Passin
I just learned something new that may be of interest to some devs. There are a few packages that add Programming By Contract to Python. In particular, iContract: https://github.com/Parquery/icontract If you have not heard of this approach, it was introduced in the Eiffel language in the late

Re: Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
My last post was deleted for some reason. "*Literate Programming with Directed Acyclic Graphs (dag)" - *well, yes, but it's a very limited subset of what Leo can do. "*Use Leo, the Literate Editor with Outlines, to program with directed acyclic graphs, along with section-references, @others,

Re: Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
On Saturday, February 25, 2023 at 12:11:31 PM UTC-5 I wrote: Leo is notoriously to explain to people. Most attempts start out something like "It's a text editor, an IDE, oh, yes, a PIM, and so much more". The listener is not very enlightened. That should have read "Leo is notoriously hard

Thumb-nail Explanation Of Leo

2023-02-25 Thread Thomas Passin
Leo is notoriously to explain to people. Most attempts start out something like "It's a text editor, an IDE, oh, yes, a PIM, and so much more". The listener is not very enlightened. I've been bugged by this, so I have been working on refining the Leo's purpose and key concepts. I'd like to

Re: Leo 6.7.2 delayed until Friday, March 3

2023-02-23 Thread Thomas Passin
Thanks for still being the chief wrangler of all these activities! On Thursday, February 23, 2023 at 4:41:30 AM UTC-5 Edward K. Ream wrote: > On Wednesday, February 22, 2023 at 10:31:16 AM UTC-6 Edward K. Ream wrote: > Recent bugs make an extra week of testing seem prudent. > > *Status report* >

New Command "execute-external-file" Now In Devel

2023-02-22 Thread Thomas Passin
The new command to run external files, "execute-external-file", is now in the devel branch. Thanks to all who helped me test and improve it! This new minibuffer command will find the nearest external file root node, try to figure out what kind of processor to run it - python, ruby, julia, etc.

Links On Leo's GitHub Page Are Still Obsolete

2023-02-21 Thread Thomas Passin
Many of the links on the top GitHub page still point to leoeditor.com, and the Download link points to the old SourceForge page, with the latest version there going back to 2018. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe fro

Re: Command To Run External File

2023-02-21 Thread Thomas Passin
Thanks for testing! I was surprised by all the terminals available, too. On my Mint virtual machine ( I have lightly annotated the responses): tom@tom-VirtualBox:~$ find /usr/bin -name *term -type f /usr/bin/setterm # Not a terminal - controls terminal properties /usr/bin/xterm /usr/bin/

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
That's a good idea! I think a setting would be the Leonine way to do it. When I convert this into a Leo command, I'll look at making it happen. On Monday, February 20, 2023 at 7:06:26 PM UTC-5 SegundoBob wrote: > Thomas Passin, > > Your fix passes all my tests. > >

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
@mike, that was a good diagnosis. When Leo is not run from a terminal (in Linux), the process space does not include a terminal and the shell may not even be the same shell (e.g., *sh* instead of *bash*) as one might expect. I have revised the terminal-finding code for Linux to try several heu

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
Oh, I understand now. Thank you. I'll see what can be done. On Monday, February 20, 2023 at 8:09:22 AM UTC-5 SegundoBob wrote: > On 2/19/23 18:25, Thomas Passin wrote: > > " but it does not work when I use the file browser Thunar to open the > > Leo-editor file"

Re: Command To Run External File

2023-02-19 Thread Thomas Passin
" but it does not work when I use the file browser Thunar to open the Leo-editor file". I don't understand what you mean here, @SegundoBob. The intended use is to select - within Leo - a node in an external file, and have it run in (or get launched by) a terminal. How does the file browser

Re: Command To Run External File

2023-02-19 Thread Thomas Passin
Thanks, I'd appreciate it. On Sunday, February 19, 2023 at 12:38:04 PM UTC-5 jkn wrote: > sorry, I have installed it but not tried it. I'll give it a go this week > > On Sunday, February 19, 2023 at 2:27:15 AM UTC tbp1...@gmail.com wrote: > >> If nobody complains about it in another week, I'll pa

Re: Command To Run External File

2023-02-18 Thread Thomas Passin
If nobody complains about it in another week, I'll package it up as a new Leo command. On Monday, February 6, 2023 at 4:15:40 AM UTC-5 jkn wrote: > I'll give it a try (kubuntu linux, mainly) and let you know what I find... > > On Monday, February 6, 2023 at 6:18:42 AM UTC tbp1...@gmail.com wrote

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-18 Thread Thomas Passin
11:45:05 AM UTC-5 Edward K. Ream wrote: > On Fri, Feb 17, 2023 at 5:00 PM Thomas Passin wrote: > >> Here is a script so you can see if you like the effect of having a >> non-monospaced font for non-code bodies. > > > Thanks, Thomas, for this work. PR #3150 > <

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-17 Thread Thomas Passin
lf_and_parents(): if has_direct(p.b, p.h): css = STYLE break editor = c.frame.body.wrapper.widget editor.setStyleSheet(css) ud = g.user_dict ud['alt_body_font_proc'] = set_alt_body_font g.registerHandler('select3', ud['alt_body_f

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-17 Thread Thomas Passin
Here is a script so you can see if you like the effect of having a non-monospaced font for non-code bodies. It only works for @language rest nodes. Copy the script below into a node in your workbook. Run it with CTRL-B. After that, any time you switch to an *@language rest* node, it will use

Re: Feature to upgrade leoInteg and vscode

2023-02-16 Thread Thomas Passin
And done ... On Thursday, February 16, 2023 at 8:47:57 AM UTC-5 Edward K. Ream wrote: > On Thu, Feb 16, 2023 at 12:31 AM Félix wrote: > >> If you feel like it and have 5 seconds of free time, I would recommend >> upvoting this vscode feature request, which could benefit leoInteg and >> leojs :

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
The only place the jEdit colorizer does anything about fonts is this: def getFontFromParams(self, family: Any, size: Any, slant: Any, weight: Any, defaultSize: int = 12) -> None: return None That is to say, it does nothing about getting or setting fonts. -- You received this message becaus

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
Not quite true: there are a few @font php nodes too. On Wednesday, February 15, 2023 at 1:59:55 PM UTC-5 Thomas Passin wrote: In the standard Leo distro, those @nodes are only used for @language forth, and the Forth colorizer handler uses special bespoke classes. So there may be a bug that

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
er handler uses special bespoke classes. So there may be a bug that the special Forth code works around but no other language hits. On Wednesday, February 15, 2023 at 10:32:48 AM UTC-5 Edward K. Ream wrote: On Wed, Feb 15, 2023 at 8:09 AM Thomas Passin wrote: @ekr: "I suspect that a

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
@ekr: "I suspect that adding a node @font rest fonts will suffice." I must be missing the magic way to do this, because none of these changed the font for *@language rest* nodes. I've tried: headline: @font rest body: font-family = Georgia headline: @font rest body: font-family: Georgia head

Re: Body Nodes That Do Not Use A Mono-spaced Font

2023-02-15 Thread Thomas Passin
@ekr: "Leo uses a mono-spaced font for body text. Happy, this statement is not correct. Unless I am mistaken, Leo can already do what you want." My statement was oversimplified - the body font is normally set in the stylesheet and it could be chosen to be a non-monospaced font. -- You receive

Body Nodes That Do Not Use A Mono-spaced Font

2023-02-14 Thread Thomas Passin
Leo uses a mono-spaced font for body text. No doubt this comes from Leo's background as a programming editor/IDE. But many people don't use it like that, or not only like that. They use it for creating documents, notes, or other non-programming uses. For these uses, non-monospaced fonts can

Re: Leo package as published on test.pypi.org

2023-02-13 Thread Thomas Passin
Typo in the URL - should be test.pypi.org. As for staleness, it's only for testing the packaging to make sure it will work on PyPi, so maybe the staleness is not too important. On Monday, February 13, 2023 at 11:14:35 AM UTC-5 David Szent-Györgyi wrote: > I was looking for a pypy package of ot

Re: Leo's pylint Command Enhanced

2023-02-10 Thread Thomas Passin
On Friday, February 10, 2023 at 9:38:22 AM UTC-5 Edward K. Ream wrote: On Fri, Feb 10, 2023 at 8:04 AM Thomas Passin wrote: The pylint command now can run pylint against a subtree that is not an external file (@file, @clean, ...). Many thanks, Thomas, for this work. For a long time I didn&#

Leo's pylint Command Enhanced

2023-02-10 Thread Thomas Passin
The pylint command now can run pylint against a subtree that is not an external file (@file, @clean, ...). The old behavior is still in place. The command looks up the tree from the focused node to see if that node is in the subtree of an external Python file. If yes, it runs against that fil

Re: GUI For Using Git

2023-02-10 Thread Thomas Passin
They do like to promote themselves. I've only had it installed for two days, so all I know that it seems decent. If I start getting too much spam email, I'll get my email client to deep-six it. I don't use git often enough to really retain commands that are more than simple pulls, etc, and I'

GUI For Using Git

2023-02-09 Thread Thomas Passin
I use a GUI program to help me with using git/GitHub. I'm sure I'm not alone. On Windows I have been used the Windows-only *Git eXtension*s, which works well enough but sometimes I'm not quite sure what some operations are going to do. On Linux I've been using* Git-Cola,* which is simpler, b

Re: Python Developer Of The Week

2023-02-06 Thread Thomas Passin
Thanks, guys! On Monday, February 6, 2023 at 7:30:27 PM UTC-5 Félix wrote: > That's pretty cool!! :) > > Félix > > On Monday, February 6, 2023 at 4:16:01 PM UTC-5 Edward K. Ream wrote: > >> On Mon, Feb 6, 2023 at 9:58 AM Thomas Passin wrote: >> >>> I

Re: Pipx

2023-02-06 Thread Thomas Passin
Link for pipx <https://pypa.github.io/pipx/> On Monday, February 6, 2023 at 5:33:37 PM UTC-5 Thomas Passin wrote: > I just tried out pipx, which is a Python install program that wraps pip > such that for each installed package, it creates a separate virtual > environment, ins

Pipx

2023-02-06 Thread Thomas Passin
I just tried out pipx, which is a Python install program that wraps pip such that for each installed package, it creates a separate virtual environment, installs into that, and creates executables to launch each of the entry points. I believe that it installs basically similar to using --edita

Python Developer Of The Week

2023-02-06 Thread Thomas Passin
I gave an email interview to the PyDev Of The Week series. Edward was featured there several years ago so I'm in good company. I'm posting it here because I talk quite a bit about Leo. PyDev Of The Week <https://www.blog.pythonlibrary.org/2023/02/06/pydev-of-the-week-thomas-pass

Command To Run External File

2023-02-05 Thread Thomas Passin
I've been working on a command to run an external file (@file, @clean ...). I think it is ready, and I'd appreciate it if other folks could test it for me. The idea is that you select a node in the external file tree and launch the command. It works on Windows and Linux but not Mac (I need m

Re: Why nits matter

2023-02-05 Thread Thomas Passin
It might be easiest to copy the gnx of the next child node (if there is one), and then go to that gnx after the delete. That way you wouldn't have to worry about positions changing, On Sunday, February 5, 2023 at 4:13:23 PM UTC-5 Félix wrote: > I'll just chime in to say this is not trivial. (a

Re: Revised: Info issue #2867 re developer scripts

2023-02-04 Thread Thomas Passin
" There's no need t make the scripts @clean trees. @file with @language batch works well enough (thought I prefer to use "::"" Darn, posted before I was done. That's supposed to read There's no need to make the scripts @clean trees. @file with @language batch works well enough (though I pref

Re: Revised: Info issue #2867 re developer scripts

2023-02-04 Thread Thomas Passin
I use a c:\usr\bin directory to make it more Linux-like. I just couldn't get myself to make a ~\.local\bin directory, though. Maybe I should reconsider... There's no need t make the scripts @clean trees. @file with @language batch works well enough (thought I prefer to use "::" On Saturday,

Re: Aha! A better way to study code

2023-02-04 Thread Thomas Passin
I don't see a matching *remove-icon* command, though. On Saturday, February 4, 2023 at 9:45:49 AM UTC-5 Edward K. Ream wrote: > On Sat, Feb 4, 2023 at 6:35 AM jkn wrote: > >> That's cool, thanks. so even now I can do "insert-icon" / (browse to an >> icon) , and have it be added to a node ;-

Testing "Equality" Floating Numbers In Unit Testing

2023-02-03 Thread Thomas Passin
In working on developing unit tests for my GF4 project, I'm going to have to compare expected vs actual results of floating point numbers. This subject is notoriously difficult to get "right" - there are all kinds of pitfalls one would never think about. The standard Python library now has on

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Thomas Passin
Felix, you have done a lot of hard work! I've been wondering what the possibilities will be for writing scripts for LeoInteg or LeoJS (of course, in Java/Type -script instead of Python)? How hard will it be to code up and run small utility scripts, for example? On Friday, February 3, 2023 at

Re: Aha! A better way to study code

2023-02-03 Thread Thomas Passin
The attached outline has some icons attached to headlines. It was posted for issue 3121 by @wangzhaohe. I don't know how he attached them, but it gives a dramatic example. On Friday, February 3, 2023 at 10:15:38 AM UTC-5 Edward K. Ream w

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
Well, it's not really a bug - you just have to prefix each body of code in the tree with a code language directive (@language code), otherwise VR3 doesn't know that the node is code and not markdown/rst/etc. On Wednesday, February 1, 2023 at 1:51:07 PM UTC-5 Thomas Passin wrote:

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
10:40 AM Thomas Passin wrote: > > Yes, one step closer to literate programming without weave, etc. Often I >> use << named sections >> as a kind of pseudo-code to clarify what's going >> on. I'd like it if we could have organizer nodes like this in extern

Re: Aha! A better way to study code

2023-02-01 Thread Thomas Passin
Yes, one step closer to literate programming without weave, etc. Often I use << named sections >> as a kind of pseudo-code to clarify what's going on. I'd like it if we could have organizer nodes like this in external files, too. On Wednesday, February 1, 2023 at 11:14:20 AM UTC-5 Edward K. R

Viewrendered3 Improvements

2023-01-31 Thread Thomas Passin
The viewrendered3 plugin has a command *vr3-open-markup-in-editor* . In the case of plain text (*@language text* and *@language plain*) nodes, this used to export only the selected node, not the entire subtree, even if the *Entire Tree* option was selected. This has been corrected. In additi

Re: CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
On the list of CTRL-click actions, I forgot navigating to function definitions. On Tuesday, January 31, 2023 at 2:36:15 PM UTC-5 Thomas Passin wrote: > The CTRL-Click feature has been extended so that if you CTRL-Click on a > line that starts with import module or from module import, Le

CTRL-Click Can Now Navigate To Import Statements

2023-01-31 Thread Thomas Passin
The CTRL-Click feature has been extended so that if you CTRL-Click on a line that starts with import module or from module import, Leo will navigate to an external file whose filename is *module.py* or *module.pyw*, if it is the same outline. This also works if the import statement includes pa

Re: OT? Beware of ChatGPT

2023-01-31 Thread Thomas Passin
n Sunday, January 29, 2023 at 11:25:38 PM UTC-5 Thomas Passin wrote: > Humans probably have a level of abstraction that is most susceptible to > manipulation. It would perhaps differ between people to an extent, and > also perhaps with the kind of subject being manipulated. I suspect

<    3   4   5   6   7   8   9   10   11   12   >