Re: Repeat question - how to refer to nodes from other nodes?

2022-01-05 Thread tbp1...@gmail.com
I'm not sure how it would work in MD and LeoVue, but with ReStructuredText, you would need a parent node; all your current nodes would become children of this new parent; and you would render the entire tree of the parent to get your document. With this design, you could have cross-node links

Re: Repeat question - how to refer to nodes from other nodes?

2022-01-05 Thread tbp1...@gmail.com
all be in the same rendered document. On Wednesday, January 5, 2022 at 7:29:48 AM UTC-5 tbp1...@gmail.com wrote: > I'm not sure how it would work in MD and LeoVue, but with > ReStructuredText, you would need a parent node; all your current nodes > would become children of this ne

Re: MacOS install Success - Mojave

2022-01-06 Thread tbp1...@gmail.com
With Windows, there is no need to separately install QT, since pyqt5 contains the binaries in a form that Python can use. This may be different on the Mac version, but it would be interesting to know. On Thursday, January 6, 2022 at 6:59:22 AM UTC-5 Israel Hands wrote: > Previously I had exper

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-01-07 Thread tbp1...@gmail.com
I just spun up a VM with Ubuntu 20.04 on a Windows host. I installed Leo 6.6b1 from Pypi using pip. (I had that xcb problem that has happened before, but was able to fix it - This seems to be due to a missing library (see missing xcb problem

Re: Plugins and LeoPyRef.leo

2022-01-07 Thread tbp1...@gmail.com
I have written two plugins. It's easy enough to add one to Leo via a pull request. That alone does not put it into LeoPyRef, but the plugin will be available anyway since it will be in Leo's plugins directory. IIRC, @ekr added one of them to LeoPyRef on his own, and added the other after I n

Re: Elixir: @doc in an @clean file

2022-01-09 Thread tbp1...@gmail.com
Leo has an elixir mode, so you could use it with @language elixir Are you already doing this? It will let you emit an *@adoc*. I tried it using an example I found at the ebook Learning Elixir Language . Here is the content of my *@clean*

Re: Elixir: @doc in an @clean file

2022-01-09 Thread tbp1...@gmail.com
Sorry, typo, I meant " It will let you emit an *@doc*." On Sunday, January 9, 2022 at 12:16:21 PM UTC-5 tbp1...@gmail.com wrote: > It will let you emit an *@adoc*. >>> [snip] >>> >> -- You received this message because you are subscribed to the Google Group

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-01-09 Thread tbp1...@gmail.com
If you don't have Leo open and you tap the key, what happens? Does the application menu open? Then if you open Leo and tap the same key when Leo isn't focused, does the same thing happen? And finally, when Leo is focused and you tap that key, does anything different happen (except for Leo ge

Re: Type checking work now in devel

2022-01-09 Thread tbp1...@gmail.com
Trying to start the latest devel version on Ubunbtu: tom@tom-ubuntu-VirtualBox:~$ python3 -m leo.core.runLeo 'type' object is not subscriptable *** Leo could not be started *** Please verify you've installed the required dependencies: https://leoeditor.com/installing.html On Sunday, January 9,

Re: Type checking work now in devel

2022-01-09 Thread tbp1...@gmail.com
I should have said that the version of Leo 6.6b1 that installs with pip works normally. I downloaded the devel version as a zip from github, unzipped it, and set PYTHONPATH to point to it. That's when I got the error message. On Sunday, January 9, 2022 at 5:56:50 PM UTC-5 tbp1...@gmai

Re: Type checking work now in devel

2022-01-09 Thread tbp1...@gmail.com
3a10afedbe 2022-01-09 05:18:04 -0500 Python 3.9.9, PyQt version 5.15.2 Windows 10 AMD64 (build 10.0.19043) On Sunday, January 9, 2022 at 5:59:31 PM UTC-5 tbp1...@gmail.com wrote: > I should have said that the version of Leo 6.6b1 that installs with pip > works normally. I downloaded the d

Re: save file menu confusion

2022-01-10 Thread tbp1...@gmail.com
tionally, though, a file that I would work on in Leo is an @file, @clean, etc. tree and not an outline. Seeing "Files" in those menu items confuses me. On Monday, January 10, 2022 at 5:33:05 PM UTC-5 Edward K. Ream wrote: > On Tue, Jan 4, 2022 at 8:49 AM tbp1...@gmail.com > wrot

Re: save file menu confusion

2022-01-11 Thread tbp1...@gmail.com
. 4. *Save As Zipped* retains a lock on the saved file, such that the file can't be deleted (or, I speculate, moved) until Leo is closed. On Tuesday, January 11, 2022 at 8:18:46 AM UTC-5 Edward K. Ream wrote: > On Tue, Jan 11, 2022 at 12:31 AM tbp1...@gmail.com > wrote: > >> T

Re: generic JSON importer fails

2022-01-11 Thread tbp1...@gmail.com
Yes, I think you will need to know the schema of the JSON files to be able to import them in a useful way.. For example, Jupyter notebooks are JSON files, but your files are probably very different. Leo can import XML files, but they are imported into a single Leo node. On Tuesday, January 11

Re: Leo won't start

2022-01-11 Thread tbp1...@gmail.com
I got that too, but it turned out that it wasn't the latest devel branch, but only the latest zip of 6.6b1 that Github was offering. When I fetched the actual latest using git yesterday (not the zip file), which was some version of 6.6b2, that error had gone away. On Tuesday, January 11, 2022

Re: Leo won't start

2022-01-11 Thread tbp1...@gmail.com
wrote: > >> Hmm, how did you 'fetch' it? I did what I always do, from my repo CLI, I >> type `git pull` and update my devel branch. I also tried 'fetching' using >> GitHub for Windows. What else should I try? >> >> Rob... >> >> On

Re: Leo won't start

2022-01-11 Thread tbp1...@gmail.com
witch back to the devel > branch, I get the same error and when I switch again to master, Leo starts > fine. > > Do I need to delete my repo altogether and start over again? Sorry I'm > such a GH dunce, it's just not intuitive to me. > > Rob... > > On

Re: Aha: how to find the next juicy problem

2022-01-11 Thread tbp1...@gmail.com
I can picture it: you start to work on some cool project, and of course you will want to use Leo. Right away, you find that you want to enhance Leo to work better on your new project-specific things! On Tuesday, January 11, 2022 at 8:15:51 AM UTC-5 Edward K. Ream wrote: > For several years (a

Re: Use cases for @rst

2022-01-12 Thread tbp1...@gmail.com
For use cases 1 and 2, you could also try rendering with the Viewrendered3 plugin, then exporting the HTML to the browser. If you have more than one node in the tree, check "Entire Tree" in the VR3 *View Options* menu. If you go this route, you don't even need an @rst file node nor an external

Re: Use cases for @rst

2022-01-12 Thread tbp1...@gmail.com
y, January 12, 2022 at 2:10:19 PM UTC-5 Rob wrote: > Thanks for that! However, when I try using vr3, I don't get the subtree > headline text marked up, so I'm missing the structure context (VR3 window > as well as external editor). Am I missing something? > > Rob... >

Re: Use cases for @rst

2022-01-12 Thread tbp1...@gmail.com
I don't get the subtree >> headline text marked up, so I'm missing the structure context (VR3 window >> as well as external editor). Am I missing something? >> >> Rob... >> >> On Wednesday, January 12, 2022 at 1:10:04 PM UTC-5 tbp1...@g

Re: save file menu confusion

2022-01-12 Thread tbp1...@gmail.com
I do grasp this distinction, at least. With *Save As*, when the save is done you end up in the saved outline, which would have a different name or path from the original. With *Save To*, you stay in the original outline. I don't know an alternative wording to suggest, but I don't think this

Re: Use cases for @rst

2022-01-12 Thread tbp1...@gmail.com
Oops, I missed actually attaching the files. On Wednesday, January 12, 2022 at 3:01:01 PM UTC-5 tbp1...@gmail.com wrote: > The way it's supposed to work is that the node headline will become a > title in the final markup unless the body already starts with that exact > strin

Re: Use cases for @rst

2022-01-12 Thread tbp1...@gmail.com
e's a big difference between the two. Using vr3, how do I get the >>> output to show the headline text? >>> >>> Rob... >>> >>> On Wednesday, January 12, 2022 at 2:10:19 PM UTC-5 Rob wrote: >>> >>>> Thanks for that! However, when I

Re: Use cases for @rst - Using VR3 for program development

2022-01-12 Thread tbp1...@gmail.com
ent all the text one step, which is not hard but copying from the browser is a bit easier. I use VR3 like this quite a bit. It's not so suitable for large programs, but within its range it's very convenient. On Wednesday, January 12, 2022 at 4:42:37 PM UTC-5 tbp1...@gmail.com wrote: >

Re: How many Leo users are still using Python3.6?

2022-01-13 Thread tbp1...@gmail.com
I think there may still be some Linux distros that provide 3.6 as their standard. Not completely sure, though. On Thursday, January 13, 2022 at 3:28:30 PM UTC-5 vitalije wrote: > Python3.6 is already deprecated (see here > ). Recently, new python

Re: save file menu confusion

2022-01-13 Thread tbp1...@gmail.com
+1 On Thursday, January 13, 2022 at 4:53:16 PM UTC-5 viktor@gmail.com wrote: > Am Do., 13. Jan. 2022 um 20:10 Uhr schrieb Edward K. Ream < > edre...@gmail.com>: > >> On Thu, Jan 13, 2022 at 2:06 PM Félix wrote: >> >>> Suggestion: >>> In photoshop and other mainstream and popular software p

Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
Now that Leo is Python 3.6+ only, there is a question about using it to maintain old Python 2.x code, of which I have some that can't be converted to Python 3.6+. The issue, of course, is that checkers like flake8 will report errors which aren't actual errors for 2.7 code. This is a best a nu

Re: Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
Can't do it for at least one case. The code is Jython 2.7, and it will be a long time, if ever, before Jython gets up to 3+. On Sunday, January 16, 2022 at 2:11:08 PM UTC-5 Edward K. Ream wrote: > On Sun, Jan 16, 2022 at 12:20 PM tbp1...@gmail.com > wrote: > >> Now th

Re: Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
been supporting and slowly developing this application since about 2007. There is zero chance I would ever convert it to all java, that would be too unpleasant to contemplate (and my client would not want to cover the cost to do it). On Sunday, January 16, 2022 at 2:37:00 PM UTC-5 tbp1...@gmail.com

Script For Counting Lines Of Python Code?

2022-01-16 Thread tbp1...@gmail.com
I'm not a big fan of counts of lines of code, but sometimes it's fun or otherwise useful. I didn't see a script to count the LOC in scripts.leo or PyLeoRef.leo, so I came up with one, but I wondered whether anyone else has a slicker one. My script counts lines of code in a Leo subtree, not in

Re: Managing Python 2.7 Code In Leo

2022-01-17 Thread tbp1...@gmail.com
Probably being able to disable automatic syntax checking in an outline would be enough. Is there a setting to do that? On Monday, January 17, 2022 at 6:01:43 AM UTC-5 Edward K. Ream wrote: > On Sun, Jan 16, 2022 at 3:08 PM tbp1...@gmail.com > wrote: > >> The project

Re: Managing Python 2.7 Code In Leo

2022-01-17 Thread tbp1...@gmail.com
for "syntax", and eventually tried "check". Seems to me that the menu item to show settings should at least show all of the ones in leoSettings.leo, if not more. On Monday, January 17, 2022 at 8:05:07 AM UTC-5 Edward K. Ream wrote: > On Mon, Jan 17, 2022 at 7:30 AM tbp1

Re: Managing Python 2.7 Code In Leo

2022-01-17 Thread tbp1...@gmail.com
n Leo! On Monday, January 17, 2022 at 12:57:12 PM UTC-5 David Szent-Györgyi wrote: > On Monday, January 17, 2022 at 6:01:43 AM UTC-5 Edward K. Ream wrote: > >> On Sun, Jan 16, 2022 at 3:08 PM tbp1...@gmail.com >> wrote: >> >>> The project is a Tomcat web applicat

Re: Managing Python 2.7 Code In Leo

2022-01-17 Thread tbp1...@gmail.com
On Monday, January 17, 2022 at 12:57:12 PM UTC-5 David Szent-Györgyi wrote: > Jython support for Python3 is planned > and roadmapped > . > Yes, and have you noticed the huge amount of work those plans will entail?

Re: PR 2393 creates leo.plugins.remove_duplicate_pictures

2022-01-29 Thread tbp1...@gmail.com
Probably because the class *RemoveDuplicates *initializes at import, not at initialization. If the class gets reused, the global data variables get reused. That works fine as a standalone, but not if reused inside Leo. On Saturday, January 29, 2022 at 6:31:55 PM UTC-5 lewis wrote: > Running e

Re: Managing Python 2.7 Code In Leo

2022-01-31 Thread tbp1...@gmail.com
> > On Monday, January 17, 2022 at 12:57:12 PM UTC-5 David Szent-Györgyi wrote: >> >>> Jython support for Python3 is planned >>> and roadmapped >>> . >>> >> >> Yes, and have you noticed the huge amount of work those

Re: Rev 2632 strips control characters from (binary) .xml files

2022-02-03 Thread tbp1...@gmail.com
On Sunday, January 3, 2010 at 12:05:38 PM UTC-5 Edward K. Ream wrote: > ... we are stripping form-feeds and > other control characters from binary .xml files. > Edward > What do you mean by "binary" ,leo files? The XML Recommendation (v1.0, anyway) specifically left those control characters in s

VR3 Markdown Mode Improvements

2022-02-03 Thread tbp1...@gmail.com
The Viewrendered3 plugin Version 3.71 now supports tables in Markdown mode. Tables like this render reasonably: | Shortcut | Action| |--|---| | `` | Normal mode | | `` | Quit current terminal | | `` | Go one window left| | `` | Go on

Improve Indenting of Blank Lines?

2022-02-06 Thread tbp1...@gmail.com
If you highlight a text block in a node's body that has some blank lines and then indent it - perhaps with - The blank lines don't stay blank. They get padded with spaces to the new left margin. That's annoying because 1) Leo puts dots in to show you the spaces, which is visual clutter I'd

Re: Improve Indenting of Blank Lines?

2022-02-06 Thread tbp1...@gmail.com
e. I do not envision a > case where that would be desired, but I mostly write code and markdown docs. > > Cheers, > > > On Sunday, February 6, 2022 at 1:57:17 PM UTC-5 tbp1...@gmail.com wrote: > >> If you highlight a text block in a node's body that has some blank

Re: Improve Indenting of Blank Lines?

2022-02-06 Thread tbp1...@gmail.com
raw() u.afterChangeBody(p, 'Clean Blank Lines', bunch) On Sunday, February 6, 2022 at 6:36:48 PM UTC-5 tbp1...@gmail.com wrote: > I've tried this with other common editors and none of them pad the blank > lines: > > Windows: > Editplus > Notepad++ > SciTe > Visu

VR3 V3.72 Adds Lua as a Supported Language

2022-02-07 Thread tbp1...@gmail.com
VR3 now supports Lua. To run Lua trees, you need to have a version of Lua installed. The as with other non-Python languages, you need to add it to the *[executables]* section of the config file *~/.leo/vr3/vr3_config.ini*. My ini file currently looks like this (lines may be wrapped by Google

CSS Properties To Change Font Size Of Menus and Buttons?

2022-02-07 Thread tbp1...@gmail.com
I have Leo running on a computer with a smallish screen, and the top-level menu bar, and the top row of buttons, render with very small type. I know what to change in the theme file to have the headlines and body display larger. But after changing what I thought would enlarge the two top-level

Toggling Marked/UnMarked State Of Nodes

2022-02-08 Thread tbp1...@gmail.com
Leo can mark and unmark nodes. There is also a command to unmark all nodes, but there is no built-in command to toggle the marked state. Toggling the selected node is often what you want. It is convenient to have such a command if you want to use a key binding, since a single key will serv

Re: Toggling Marked/UnMarked State Of Nodes

2022-02-08 Thread tbp1...@gmail.com
22 at 1:01 PM tbp1...@gmail.com > wrote: > >> Leo can mark and unmark nodes. There is also a command to unmark all >> nodes, but there is no built-in command to toggle the marked state. > > > The 'mark' command (default binding Ctrl-M) actually toggles

Re: Toggling Marked/UnMarked State Of Nodes

2022-02-08 Thread tbp1...@gmail.com
I just tried out the "mark" command - which I still haven't been able to find in PyLeoRef.leo - and contrary to my memory, it did toggle the marked state. On Tuesday, February 8, 2022 at 5:03:31 PM UTC-5 tbp1...@gmail.com wrote: > Hmmm, I used to have it bound to and IIRC

Re: Toggling Marked/UnMarked State Of Nodes

2022-02-08 Thread tbp1...@gmail.com
Ha! I finally found it. It is a *@g.commander_command* command. I would better have searched for *'mark'* with the quotes instead of plain *mark*. On Tuesday, February 8, 2022 at 7:41:22 PM UTC-5 tbp1...@gmail.com wrote: > I just tried out the "mark" command - whi

Re: Toggling Marked/UnMarked State Of Nodes

2022-02-09 Thread tbp1...@gmail.com
On Wednesday, February 9, 2022 at 4:38:53 AM UTC-5 Edward K. Ream wrote: > ... > BTW, the black code formatter thinks that all quotes should be double > quotes. I strongly disagree :-) > I'm with you on this one! -- You received this message because you are subscribed to the Google Groups

Re: ENB: Rethinking UNL's

2022-02-11 Thread tbp1...@gmail.com
I discovered that a few days ago myself. I've become interested in UNLs for a project, so I'm starting to learn about them. It seems to me that this feature provides a way for a person to get the correct escaped form of an UNL to paste into a page for navigation purposes. That could be valua

Re: ENB: Rethinking UNL's

2022-02-11 Thread tbp1...@gmail.com
->quick_w.returnPressed). On Friday, February 11, 2022 at 5:10:32 PM UTC-5 tbp1...@gmail.com wrote: > I discovered that a few days ago myself. I've become interested in UNLs > for a project, so I'm starting to learn about them. It seems to me that > this feature provides

Re: ekr-unl2-new branch: progress report

2022-02-13 Thread tbp1...@gmail.com
This work is timely from my point of view, since the project I am working on will be using them. In the original code, I have observed that g.handleUnl() didn't work right when there are index numbers in the UNL. Since there will now be no option for omitting them in p.get_UNL(), then g.handl

Re: ekr-unl2-new branch: progress report

2022-02-13 Thread tbp1...@gmail.com
On Sunday, February 13, 2022 at 4:04:39 PM UTC-5 Edward K. Ream wrote: > On Sunday, February 13, 2022 at 9:25:29 AM UTC-6 tbp1...@gmail.com wrote: > g.handleUnl does not need to change. g.handleUnl knows nothing about > index numbers, and never has. > Except that empirically, when

How To Import QtWebEngineWidgets using PyQt6

2022-02-13 Thread tbp1...@gmail.com
Does anyone know how to import QtWebEngineWidgets with PyQt6? As of version 6.23, this module exists, and I can import it (along with it QWebEngineView) in a standalone console that has not created a Qt Gui. But when I try to import it in a script running in Leo, it fails: from PyQt6 import Qt

Re: ekr-unl2-new branch: progress report

2022-02-13 Thread tbp1...@gmail.com
with or without replacing ">" by "%3E"). On Sunday, February 13, 2022 at 8:34:18 PM UTC-5 Edward K. Ream wrote: > On Sun, Feb 13, 2022 at 4:29 PM tbp1...@gmail.com > wrote: > > >> g.handleUnl does not need to change. g.handleUnl knows nothing about >

Re: ekr-unl2-new branch: progress report

2022-02-14 Thread tbp1...@gmail.com
CTRL-clicking succeeded on the UNLs that previously failed. This includes one whose terminal step included a section name (<< ... >>). The tests included both relative (within-outline) and absolute (between outline) UNLs. When the UNL included a trailing index, the cursor was placed on corre

Re: How To Import QtWebEngineWidgets using PyQt6

2022-02-14 Thread tbp1...@gmail.com
tbp1...@gmail.com wrote: > Does anyone know how to import QtWebEngineWidgets with PyQt6? As of > version 6.23, this module exists, and I can import it (along with it > QWebEngineView) in a standalone console that has not created a Qt Gui. > > But when I try to import it in a sc

Re: How To Import QtWebEngineWidgets using PyQt6

2022-02-14 Thread tbp1...@gmail.com
I have succeeded with a slightly different approach: 1. In LeoQt6.py: # Must import this before creating the GUI try: from PyQt6 import QtWebEngineWidgets except ImportError: print('No QtWebEngineWidgetsInstall with python3 -m pip install --upgrade ') 2. Add a new try: block to existi

Re: How To Import QtWebEngineWidgets using PyQt6

2022-02-14 Thread tbp1...@gmail.com
different classpath, but we've dealt with that for other Qt classes already. At any rate, any one of these three approaches gets VR3 and Freewin working again. Hurray! On Monday, February 14, 2022 at 11:55:42 AM UTC-5 tbp1...@gmail.com wrote: > I have succeeded with a slightly different ap

ViewRendered3 Now Works With PyQt6

2022-02-14 Thread tbp1...@gmail.com
As of the latest changeset in devel, VR3 works with PyQt6. It has to be at least version 6.23 or higher. In addition to PyQt6, you need to install PyQt6-WebEngine, which is also available via pip from PyPI. With this update, the rendering limitations of VR3 with PyQt6 have been removed and re

Freewin Plugin Now Works With PyQt6

2022-02-15 Thread tbp1...@gmail.com
With the latest version of the devel branch, build c6baa0090b, the Freewin plugin has its full rendering capability under PyQt6. The PyQT6 version must be at least 6.23. You may also need to install PyQt6-WebEngine, which is available via pip from PyPI. The new version of FW is 1.8. The Fre

Re: TravisCI started to fail three hours ago

2022-02-15 Thread tbp1...@gmail.com
I'd guess that there was an OS update, and they updated to a higher version of Python. The 3.6 version might still be on the VM, but not on the path. If so, calling with python3.6 instead of python3 might be enough. On Tuesday, February 15, 2022 at 10:39:32 AM UTC-5 Edward K. Ream wrote: > Th

Re: Discuss: How long should Leo support PyQt5?

2022-02-15 Thread tbp1...@gmail.com
No need to simplify existing code that is working, since it's already been adjusted for both. mypy and pylint are reasonable concerns, and maybe there will turn out to be a simple way to handle them. So let's not rush! On Tuesday, February 15, 2022 at 11:26:22 AM UTC-5 Edward K. Ream wrote: >

Re: Discuss: How long should Leo support PyQt5?

2022-02-15 Thread tbp1...@gmail.com
esn't know that pyqt6 is installed, unless PYTHONPATH has been set. That's a benefit when you need to work with different versions. On Tuesday, February 15, 2022 at 5:42:57 PM UTC-5 Edward K. Ream wrote: > On Tue, Feb 15, 2022 at 11:27 AM tbp1...@gmail.com > wrote: > >>

Re: Discuss: abandon TravisCI?

2022-02-16 Thread tbp1...@gmail.com
Trying this out for the first time: Ran 812 tests in 18.881s OK (skipped=10) What does the "skipped" tell us and which ones are they? Is this test routine what Travis runs? And how will we be able to verify that everything works on the lowest supported version of Python, since most devs won't

Re: How To Import QtWebEngineWidgets using PyQt6

2022-02-16 Thread tbp1...@gmail.com
:47 PM UTC-5 tbp1...@gmail.com wrote: > As an alternative to the approach in my previous message, Qt5 also has a > QtWebEngineWidgets module. It isn't used by current code because QWebView > is actually a QWebEngineView under the covers. But we could add importing > QtWebEngi

Re: How To Import QtWebEngineWidgets using PyQt6

2022-02-16 Thread tbp1...@gmail.com
: QWebView = QWebEngineView On Wednesday, February 16, 2022 at 9:38:13 AM UTC-5 tbp1...@gmail.com wrote: > For those following this thread and who want to use the WebEngineView with > PyQt6, my suggestion above has now made its way into the devel branch. You > can look the the cod

Re: Discuss: abandon TravisCI?

2022-02-16 Thread tbp1...@gmail.com
c:\Tom\git\leo-editor>py -m unittest %* E == ERROR: %* (unittest.loader._FailedTest) -- ImportError: Failed to import test module: %* Traceback (most recent call l

Re: Discuss: abandon TravisCI?

2022-02-16 Thread tbp1...@gmail.com
Sorry, sent too soon by mistake. Leo 6.6b2-devel, devel branch, build 513f9493ec 2022-02-16 14:35:19 -0600 Python 3.9.9, PyQt version 6.2.3 Windows 10 AMD64 (build 10.0.19043) home: C:\Users\tom leo-editor: C:\Tom\git\leo-editor On Wednesday, February 16, 2022 at 4:54:13 PM UTC-5 tbp1

Re: Discuss: abandon TravisCI?

2022-02-16 Thread tbp1...@gmail.com
All right, now I've got it. The "%*" on the command line is a mistake. When there are no command line parameters, then unittest tries to find tests in the directory tree. So just plain python3 -m unittest On Wednesday, February 16, 2022 at 4:56:24 PM UTC-5 tbp1...@

Re: Discuss: abandon TravisCI?

2022-02-16 Thread tbp1...@gmail.com
If you want to include the Leo version in the output, as I suggested earlier, then: python3 -m unittest & python3 -m leo.core.runLeo -v On Wednesday, February 16, 2022 at 11:18:57 PM UTC-5 tbp1...@gmail.com wrote: > All right, now I've got it. The "%*" on the com

Re: Discuss: abandon TravisCI?

2022-02-17 Thread tbp1...@gmail.com
22 at 5:12:07 AM UTC-5 Edward K. Ream wrote: > On Wed, Feb 16, 2022 at 10:18 PM tbp1...@gmail.com > wrote: > >> All right, now I've got it. The "%*" on the command line is a mistake. > > > My apologies for the confusion. The "%*" syntax is for

Re: Leo's python development is nearing its end

2022-02-18 Thread tbp1...@gmail.com
In the past, many or most of the development on Leo has centered on making Leo more usable, such as having more features for editing, or viewing what you have edited, or operating with scripts on content in Leo. Leo is so powerful that it should be be a very suitable platform for other kinds of

Re: cant start Leo nor LeoServer after pulling devel..

2022-02-19 Thread tbp1...@gmail.com
I get the same result without pyqt6. I don't know, support for pyqt5 is still supposed to be around for a good while yet, and it was working yesterday. On Saturday, February 19, 2022 at 5:31:38 PM UTC-5 Félix wrote: > Is support for qt5 already gone? > > -- > Félix > -- You received this mes

Re: cant start Leo nor LeoServer after pulling devel..

2022-02-19 Thread tbp1...@gmail.com
rver, i.e., an > instance of leoBridge > File "/home/felix/leo-editor/leo/core/leoserver.py", line 364, in > __init__ > import leo.core.leoApp as leoApp > File "/home/felix/leo-editor/leo/core/leoApp.py", line 23, in > from leo.core.leoQt impo

Re: cant start Leo nor LeoServer after pulling devel..

2022-02-19 Thread tbp1...@gmail.com
If merging with devel gets delayed, you could just fix that line yourself until then. On Saturday, February 19, 2022 at 6:08:29 PM UTC-5 Félix wrote: > Oh no problem then! Thank you for that quick fix Thomas! :) > > On Saturday, February 19, 2022 at 5:59:35 PM UTC-5 tbp1...@gmail.com

Re: cant start Leo nor LeoServer after pulling devel..

2022-02-20 Thread tbp1...@gmail.com
Merged in devel this morning. On Saturday, February 19, 2022 at 9:18:05 PM UTC-5 Félix wrote: > That's what I did! :) > > Thanks again! > -- > Félix > > On Sat, Feb 19, 2022 at 7:33 PM tbp1...@gmail.com > wrote: > >> If merging with devel gets delayed,

Re: The joys of coming back to Leo

2022-02-24 Thread tbp1...@gmail.com
This is all very interesting. One of the first programming language I worked with (after some Focal, Basic and a bit of PDP-8 asm), a long time ago, was Forth. Forth's commands are all defined in Forth except for a few primitives and the little Forth VM, including conditionals and loops. You

Re: Missing buttons on Find Tab

2022-02-24 Thread tbp1...@gmail.com
There haven't been buttons there for a long time, as best I know. I've never seen one for "find-all". The others have keystrokes, shown on the panel. They are all commands that can be dispatched in the minibuffer. On Thursday, February 24, 2022 at 12:04:14 PM UTC-5 Josef wrote: > is it just

To Plugin or Not?

2022-02-24 Thread tbp1...@gmail.com
I am developing an Leo application that displays in a tab in the Log frame. Eventually it will probably use two tabs. The code lives in a new subdirectory in Leo's plugins directory. Currently this code is not a real Leo plugin, because it does not use the plugin machinery. Instead, it insta

Re: To Plugin or Not?

2022-02-24 Thread tbp1...@gmail.com
o think about > for yourself. > > Jake > > On Thu, Feb 24, 2022 at 1:22 PM tbp1...@gmail.com > wrote: > >> I am developing an Leo application that displays in a tab in the Log >> frame. Eventually it will probably use two tabs. The code lives in a new >>

Re: I have an @command X executed by selecting a menu item. X wants to change the selected node.

2022-02-26 Thread tbp1...@gmail.com
You have got to get the *new_position* argument to the command. There's a method for a command to get arguments from the minibuffer, but I've never used it so I can't give you the details. Someone else could chime in here ... On Saturday, February 26, 2022 at 4:36:22 PM UTC-5 SegundoBob wrote

Re: I have an @command X executed by selecting a menu item. X wants to change the selected node.

2022-02-28 Thread tbp1...@gmail.com
On Monday, February 28, 2022 at 8:18:09 AM UTC-5 Edward K. Ream wrote: > On Sat, Feb 26, 2022 at 4:06 PM tbp1...@gmail.com > wrote: > >> You have got to get the *new_position* argument to the command. > > > And you may have to call c.redraw to recalculate position

Re: I have an @command X executed by selecting a menu item. X wants to change the selected node.

2022-02-28 Thread tbp1...@gmail.com
Yup, I definitely didn't pick that up from your original post! On Monday, February 28, 2022 at 4:14:44 PM UTC-5 SegundoBob wrote: > Thank you, tbp1 for responding. Unfortunately, if I understand you, you > totally misunderstood me. If you understood me, I totally misunderstood > you. Perhaps

Re: ENB: Live coding in Leo?

2022-03-03 Thread tbp1...@gmail.com
On Thursday, March 3, 2022 at 8:52:57 AM UTC-5 Edward K. Ream wrote: > In this Engineering Notebook post I'll explore changing Leo while Leo is > running. > > Imo, changing Leo "on the fly" is impossible, but thinking about what > would be necessary might suggest potential improvements to Leo >

Re: ENB: Live coding in Leo?

2022-03-03 Thread tbp1...@gmail.com
There is one area in Leo that is akin to live programming. That is running a Leo script that is in a subtree but is not a file. You can make a change and hit CNTL-b to rerun it. Behind the scenes the script gets turned into a file and the file gets run, but the user doesn't need to know that.

Re: ENB: Live coding in Leo?

2022-03-03 Thread tbp1...@gmail.com
I haven't been able to find it again. But I seem to remember from some time ago reading a bit on reloading Leo plugins without stopping/restarting Leo. Anyone have a pointer to it? On Thursday, March 3, 2022 at 2:01:04 PM UTC-5 Edward K. Ream wrote: > > On Thu, Mar 3, 2022 at 11:42 AM Offray

CTRL-Click on <> Moves To That Section

2022-03-04 Thread tbp1...@gmail.com
New in the devel branch - when you CTRL-click on the body on the line containing a <>, the selected node will change to the named section's node. The old behavior of CTRL-click navigating to a UNL or URL is unchanged. -- You received this message because you are subscribed to the Google Groups

Line Highlight Color Improvement

2022-03-04 Thread tbp1...@gmail.com
Leo can highlight the current cursor line in the body. If you haven't tried this out yet, there is an item in the *Help/Open Help Topics* menu that tells you what settings to use. The code tries to compute a reasonable highlight color based on the theme in use. You can override this color wit

Re: CTRL-Click on <> Moves To That Section

2022-03-04 Thread tbp1...@gmail.com
022 at 10:26:48 AM UTC-5 jkn wrote: > On Friday, March 4, 2022 at 3:01:31 PM UTC tbp1...@gmail.com wrote: > >> New in the devel branch - when you CTRL-click on the body on the line >> containing a <>, the selected node will change to the named >> section's node.

Re: CTRL-Click on <> Moves To That Section

2022-03-05 Thread tbp1...@gmail.com
later refactoring if that seems worthwhile. or if the sub-block might be useful somewhere else, too. On Saturday, March 5, 2022 at 9:08:49 AM UTC-5 jkn wrote: > On Friday, March 4, 2022 at 4:27:36 PM UTC tbp1...@gmail.com wrote: > >> : ) Let us know if there are cases it doesn't

Re: ENB: Live coding in Leo?

2022-03-07 Thread tbp1...@gmail.com
Here's an interesting and maybe relevant project - Ficl . It's old and probably defunct, but still seems interesting in this context. From the summary: " Ficl is a complete programming language interpreter designed to be embedded into other systems (incl

Python in Rust and Rust from Python

2022-03-07 Thread tbp1...@gmail.com
I just happened across this - Using Python in Rust and Rust in Python . It's a Rust library that lets you call Python code from within a Rust program - you can pass globals and locals if you want

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-07 Thread tbp1...@gmail.com
It will be fixed after @Edward, myself, or someone else can reliably reproduce the problem. It happened to me last year - I'm sure it was the exact same problem since the weird symbols were the same - but for the CTRL key instead. That went away so I thought that it had been fixed. I know th

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-07 Thread tbp1...@gmail.com
I was posting about it around April 13, 2021: https://groups.google.com/g/leo-editor/c/Pf4Wh0IT6H4/m/EHJFY86VAQAJ On Monday, March 7, 2022 at 4:24:50 PM UTC-5 tbp1...@gmail.com wrote: > It will be fixed after @Edward, myself, or someone else can reliably > reproduce the problem. It happe

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-08 Thread tbp1...@gmail.com
t; Hope this would help. Thanks. > > вт, 8 мар. 2022 г. в 00:33, tbp1...@gmail.com : > >> I was posting about it around April 13, 2021: >> >> https://groups.google.com/g/leo-editor/c/Pf4Wh0IT6H4/m/EHJFY86VAQAJ >> On Monday, March 7, 2022 at 4:24:50 PM UTC-5 tbp1

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-08 Thread tbp1...@gmail.com
On Tuesday, March 8, 2022 at 1:24:49 PM UTC-5 gar wrote: > > $ setxkbmap -print | grep xkb_symbols >xkb_symbols { include > "pc+us+ru:2+inet(evdev)+capslock(grouplock)"}; > My current Mint VM: tom@tom-VirtualBox:~$ setxkbmap -print | grep xkb_symbols xkb_symbols { inclu

Using a Leo Outline On Another Computer?

2022-03-08 Thread tbp1...@gmail.com
I'd like to open a Leo outline that is on another computer - strictly within my home LAN. I could do that by sharing a directory and putting the outline into that directory. But I'd rather have that outline be in its intended place on the drive, not in some other shared directory. I could put

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-08 Thread tbp1...@gmail.com
re's what I get on the latter two: ៀ? Well, now maybe we can make some progress! Except I don't know anything about Leo's key handling. @Edward, can you install KUbuntu or Debian and track this problem down? On Tuesday, March 8, 2022 at 2:05:49 PM UTC-5 tbp1...@gmail.com wrote:

Re: leo 6.6-devel linux - strange symbols appear in the editor on 'Win' key press

2022-03-08 Thread tbp1...@gmail.com
The hex codes for this string are 20 E1 9F 80 3F, for what that's worth. And yes, it does seem that "20" is part of it and not an accidental addition during copying. On Tuesday, March 8, 2022 at 6:12:58 PM UTC-5 tbp1...@gmail.com wrote: > Bingo! I installed a stock KUbuntu

<    1   2   3   4   5   6   7   8   9   >