Re: The new leoFind.py: changes to options

2021-01-17 Thread tbp1...@gmail.com
Never even heard of it! I can't imagine any time I would have liked to use an ignore-duplicates functionality. On Sunday, January 17, 2021 at 4:35:55 PM UTC-5 Edward K. Ream wrote: P. S. I've just disabled the evil @bool find-ignore-duplicates logic. I spent hours tracking down confusing

Re: The new leoFind.py: changes to options

2021-01-17 Thread tbp1...@gmail.com
I use the find command in the Nav panel extensively, and most often restricted to the current file; occasionally to the current subtree; rarely to the current node. I would really object to losing that capability. And I certainly don't want to clone the current subtree and search that

Re: A milestone: running plain functions as if they were unit tests

2021-01-09 Thread tbp1...@gmail.com
I am always conflicted about putting unit tests into the module or class itself. It's convenient because your don't have to keep and maintain a separate test file, but when they are in the same file it makes that file larger and harder to understand. So I flip-flop back and forth. On

Re: Command 'restart-leo' is not working in Leo's devel branch, build 7d98c87f04

2021-01-09 Thread tbp1...@gmail.com
I had not even known this command existed. So I tried it, and although Leo restarted successfully, I noticed a lot of apparently similar error messages. Here is a partial list: can not open C:/Users/tom/AppData/Local/Programs/Python/Python38/lib/site-packages/setup.py getEncodingFromHeader

Re: PR1804: (support for batch-change scripts) has been merged into devel

2021-01-08 Thread tbp1...@gmail.com
If you get right down to it, there isn't much difference between passing a dict and using kwargs ... I wrote one system where I use several dicts to pass args. One of them contains system config parameters, another contains request parameters. One benefit is that I need to do some

Re: Leo won't start on macOS Big Sur

2021-01-08 Thread tbp1...@gmail.com
On the face of it, the *requests* module isn't installed. My (windows) system has it, version 2.22.0. You could check: python -m pip show requests If this module isn't there, you can install it using pip, but if one is missing, others might be also, so you will have to watch those error

Re: bad .leo file:

2021-01-07 Thread tbp1...@gmail.com
Whew, good work! I had the same problem once with a .leo file, and I also tracked it down with the help of rxp. On Thursday, January 7, 2021 at 2:21:01 PM UTC-5 rosen...@gmail.com wrote: > RXP did the trick. Problem solved. > Thanks to all. > David > > On Wednesday, January 6, 2021 at 6:23:56

Re: A milestone: first light for coreFind.py

2021-01-06 Thread tbp1...@gmail.com
Ah, I see. In Python, the import statement doesn't actually import from disk if a module was previously imported. so any changes wouldn't have been picked up. Thanks. On Wednesday, January 6, 2021 at 6:22:37 AM UTC-5 Edward K. Ream wrote: > On Tue, Jan 5, 2021 at 9:17 PM tbp1...@gmail.

Re: bad .leo file:

2021-01-05 Thread tbp1...@gmail.com
I see that rxp is available on some Linux distros, using the package manager. I found it on my Mint and Ubuntu VMs. On Tuesday, January 5, 2021 at 11:27:22 PM UTC-5 tbp1...@gmail.com wrote: > I use rxp, which is a command-line xml parser. It's very old but fast and > good. A binary is

Re: bad .leo file:

2021-01-05 Thread tbp1...@gmail.com
I use rxp, which is a command-line xml parser. It's very old but fast and good. A binary is still available for Windows, I see (I assume it will work on Windows 10 because my very old copy does ) - RXP Otherwise, the source is available. You

Re: A milestone: first light for coreFind.py

2021-01-05 Thread tbp1...@gmail.com
I've seen that usage: from src.ekr import coreFind importlib.reload(coreFind) in other places in Leo code. What does the re-import accomplish that the original import didn't? On Tuesday, January 5, 2021 at 6:48:19 PM UTC-5 Edward K. Ream wrote: > On Tuesday, January 5, 2021 at 5:31:41 PM

Re: leojs progress report

2021-01-03 Thread tbp1...@gmail.com
Years ago, I wrote a (much, much simpler) in-browser javascript system. I wrote it thinking that I might rewrite it some day to be a Python server instead. That influenced how I designed the code and the (javascript) classes. At one point I did port it over to Python, mostly to see how well

Re: highlight word under cursor

2020-12-27 Thread tbp1...@gmail.com
The most important part of my script is how to unhighlight the highlighted words. Finding and highlighting them is fairly easy. To unhighlight, the script captures the existing highlighting for each of the words (in case they have some syntax coloring of their own, you need to restore it).

Re: highlight word under cursor

2020-12-27 Thread tbp1...@gmail.com
Yes, it's hard to get familiar with Leo internals. This particular script - fortunately - barely needed to know much about them. The hard part for this one was learning what QT classes and methods to use (and translating them to Python). To go much further with this script, one would have to

Re: highlight word under cursor

2020-12-26 Thread tbp1...@gmail.com
go changing any text before removing the highlighting or who knows what will happen. On Saturday, December 26, 2020 at 4:37:28 PM UTC-5 Edward K. Ream wrote: > On Saturday, December 26, 2020 at 1:14:30 PM UTC-6 tbp1...@gmail.com > wrote: > >> I should mention that this

Re: highlight word under cursor

2020-12-26 Thread tbp1...@gmail.com
highlighted too. To clear them, you would have to select another node then come back to the original one. On Saturday, December 26, 2020 at 1:41:39 PM UTC-5 tbp1...@gmail.com wrote: > Actually, I see I had several unneeded lines left over from earlier > development. They are ha

Re: highlight word under cursor

2020-12-26 Thread tbp1...@gmail.com
Actually, I see I had several unneeded lines left over from earlier development. They are harmless but not needed. The attached revision has them removed. On Saturday, December 26, 2020 at 1:33:17 PM UTC-5 tbp1...@gmail.com wrote: > I have written a script that more-or-less d

Re: highlight word under cursor

2020-12-26 Thread tbp1...@gmail.com
I have written a script that more-or-less does this. It highlights every occurrence of the selected string. You have to invoke it - I tested the script using a button, but you could bind it to a hotkey. To remove the highlighting, you unselect the string (by clicking somewhere else), and

Re: Progress re themes. Theme devs, pls read

2020-12-26 Thread tbp1...@gmail.com
On Saturday, December 26, 2020 at 9:10:39 AM UTC-5 gar wrote: > It's a matter of adding or changing a setting in *myLeoSettings.leo* vs >> changing a setting in a theme outline. Not much different. More of a >> difficulty is knowing what particular settings to change. >> > Great difference

Re: Progress re themes. Theme devs, pls read

2020-12-26 Thread tbp1...@gmail.com
It's a matter of adding or changing a setting in *myLeoSettings.leo* vs changing a setting in a theme outline. Not much different. More of a difficulty is knowing what particular settings to change. In my case, I copied one of the dark themes and used that renamed copy to try to reduce the

Re: highlight word under cursor

2020-12-24 Thread tbp1...@gmail.com
You could bind the *cff** command to some unused key combination. Except that these commands don't work on the selected text - you have to have entered something in the *find *tab first. I think that's an oversight. I'd like the *cff** commands work like *find-quick-selected*: if some text

Re: Themes: What is the setting to change the gutter font size?

2020-12-24 Thread tbp1...@gmail.com
On Thursday, December 24, 2020 at 6:43:31 AM UTC-5 Edward K. Ream wrote: > On Wed, Dec 23, 2020 at 11:24 PM tbp1...@gmail.com > wrote: > > I haven't been able to find a setting for specifying the gutter font >> size. >> > > leoSettings.leo contains a "Gut

Themes: What is the setting to change the gutter font size?

2020-12-23 Thread tbp1...@gmail.com
I haven't been able to find a setting for specifying the gutter font size. When I change the default theme to use 10pt text, the gutter numbers look like they stay at 12 pt (although they line up properly). I have searched both the default theme and LeoPyRef, and haven't found it so far.

Re: Pls read: The new theme code is in devel

2020-12-23 Thread tbp1...@gmail.com
One question, though, is what should happen if an outline doesn't just override some of a theme's settings but asks for a whole other theme. Say the theme set in myLeoSettings is a dark theme but I want a light theme for my workbook. Right now that doesn't seem to work. On Wednesday,

Re: Pls read: The new theme code is in devel

2020-12-23 Thread tbp1...@gmail.com
10.0.19041) SP0 On Wednesday, December 23, 2020 at 4:10:38 PM UTC-5 tbp1...@gmail.com wrote: > It looks like the new default no-theme is working on my Windows machine. > And it looks very acceptable, to my eyes. I still want 10pt type for my > particular display, and I alr

Re: Pls read: The new theme code is in devel

2020-12-23 Thread tbp1...@gmail.com
It looks like the new default no-theme is working on my Windows machine. And it looks very acceptable, to my eyes. I still want 10pt type for my particular display, and I already have the settings in place for that. Perhaps related to Viktor's question, I expect that reloading all settings

Re: Progress re themes. Theme devs, pls read

2020-12-22 Thread tbp1...@gmail.com
I'm currently using @string font-family = Consolas, Droid Sans Mono, DejaVu Sans Mono I think that that Consolas comes with Windows and I like it better than some of the alternatives. Apparently it can be installed on Linux in some manner. I should probably move the DajaVu font ahead of the

Re: Clones - How To Return To "Original" Node?

2020-12-22 Thread tbp1...@gmail.com
I thought there had to be something like that. Thanks, all! On Tuesday, December 22, 2020 at 5:46:09 AM UTC-5 Edward K. Ream wrote: > On Mon, Dec 21, 2020 at 10:31 PM Jacob Peck wrote: > >> “clone-find-parents” will show you all the parent nodes of that clone, >> which might be enough

Clones - How To Return To "Original" Node?

2020-12-21 Thread tbp1...@gmail.com
If I issue a command from the cff family, I will get a subtree of clones of targets that have the search phrase. After I look at several of them, I sometimes want to go back to its matching clone, the one this new clone was duplicated from. I haven't found a convenient way to do this. The

Re: highlight word under cursor

2020-12-21 Thread tbp1...@gmail.com
I understand ... and I would add something. To develop making good use of some of Leo's strengths, I have found myself breaking up files into subtrees, and nodes. Each node usually only has a page's worth of code, sometimes much less. Their arrangement and names in the outline convey quite

Re: highlight word under cursor

2020-12-21 Thread tbp1...@gmail.com
implifies refactoring and analysis. > Actually I cannot work on reasonable large codebases without it. The > project I started when knew about leo - became large enough so I can > develop it in leo w/o some features of it's IDE brothers. > > 2020-12-21 22:23 GMT+03:00, tbp1...@gm

Re: highlight word under cursor

2020-12-21 Thread tbp1...@gmail.com
I have got this feature in some editors, but I usually find it to be annoying. I prefer to move from one instance to the next with or or one of those standard shortcuts. In Leo, the NAV pane can search a node or file - of course you have to type or paste the phrase in - and gives you a list

Re: lost my leo and much data with it

2020-12-20 Thread tbp1...@gmail.com
/Frameworks/Python.framework/Versions/3.7/bin/python' > > while executing command python setup.py egg_info > ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No > such file or directory: > '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.fram

Re: Leo Needs A HELP Entry For Templates and Appearances

2020-12-20 Thread tbp1...@gmail.com
to use the default theme. I think both the command line option and the setting should give the same result for a non-existing theme file (or at least for None). On Sunday, December 20, 2020 at 10:31:37 AM UTC-5 Edward K. Ream wrote: > On Saturday, December 19, 2020 at 10:12:07 PM UTC-6 t

Multiple myLeoSettings.leo files?

2020-12-19 Thread tbp1...@gmail.com
The Help entry for settings says in part: " Put myLeoSettigns.leo in your home ~ directory or in the ~/.leo directory." It's a little obsolete because Leo will create this file for you (so the wording should be updated). But it got me wondering what would happen if somehow there were a

Leo Needs A HELP Entry For Templates and Appearances

2020-12-19 Thread tbp1...@gmail.com
We've heard from quite a few folks recently who have had trouble with themes and the appearances of Leo, especially new users. Many of them disliked the default dark template. None of them had any idea how to make changes and get the appearance more how they like. I suggest it's time for a

Re: Issues with Leo installation in Debian

2020-12-19 Thread tbp1...@gmail.com
>> Thanks for font advice! MATE in Debian 10 comes with Cantarell fonts and >> I didn't change default settings. I set fonts in Leo like in MATE (@string >> font-family = Cantarell) with default size. >> >> I attached the screenshot of Leo now. >> >> Tha

Re: Issues with Leo installation in Debian

2020-12-19 Thread tbp1...@gmail.com
, these settings may not work as intended, and should probably be disabled. On Saturday, December 19, 2020 at 1:14:49 PM UTC-5 tbp1...@gmail.com wrote: > I'm so glad you got it working. Leo 6.3 is better than the 5.x series, so > that's good. > > You can also create a launch icon for

Re: Issues with Leo installation in Debian

2020-12-19 Thread tbp1...@gmail.com
default theme > (attached). Leo looks stable and I can open files by using > Open-Outline. Sorry, it confused me, I expected to see just Open:) > > Thank you once again! > > > On Saturday, December 19, 2020 at 7:38:53 PM UTC+3 tbp1...@gmail.com > wrote: > >

Re: Issues with Leo installation in Debian

2020-12-19 Thread tbp1...@gmail.com
On Saturday, December 19, 2020 at 11:09:26 AM UTC-5 btmc...@gmail.com wrote: > ... > I'm curious how do you open files in Leo 6.3? It looks like standard > "Open" item in File menu is removed but there are non-core (and unnecessary > for me) ones like File-Open-by_Name. > Use the *File/Open

Re: Issues with Leo installation in Debian

2020-12-19 Thread tbp1...@gmail.com
When you tried to install using pip, it seems to have failed to install qt5 properly. Then when you copied the zip file, it would be trying to use that incomplete qt5 system. This might be behind the problem. You can disable themes in the latest versions (e.g., 6.3) by adding a setting to

Re: Errors in leoUndo.py for None objects

2020-12-18 Thread tbp1...@gmail.com
are only happening in an outline for which I have set @string undo-granularity = word They don't happen in another outline that doesn't have this setting. On Friday, December 18, 2020 at 4:18:23 PM UTC-5 tbp1...@gmail.com wrote: > I've been getting a lot of errors like these - > > U

Errors in leoUndo.py for None objects

2020-12-18 Thread tbp1...@gmail.com
I've been getting a lot of errors like these - Unexpected exception... Traceback (most recent call last): File "d:\Tom\git\leo-editor\leo\core\leoUndo.py", line 1054, in doTyping prev_start, prev_end = u.prevSel TypeError: cannot unpack non-iterable NoneType object I can't tell yet just

Re: PIP can't find any version of Leo to install

2020-12-18 Thread tbp1...@gmail.com
UTC-5 tbp1...@gmail.com wrote: > Oh, I forgot, I got the same result for leo-editor. > > On Thursday, December 17, 2020 at 9:55:55 PM UTC-5 tbp1...@gmail.com > wrote: > >> Just out of curiosity, I ran >> >> py38 -m pip install leo== >> ERROR: Could not

Re: PIP can't find any version of Leo to install

2020-12-17 Thread tbp1...@gmail.com
Oh, I forgot, I got the same result for leo-editor. On Thursday, December 17, 2020 at 9:55:55 PM UTC-5 tbp1...@gmail.com wrote: > Just out of curiosity, I ran > > py38 -m pip install leo== > ERROR: Could not find a version that satisfies the requirement leo== > ERROR: No matchi

PIP can't find any version of Leo to install

2020-12-17 Thread tbp1...@gmail.com
Just out of curiosity, I ran py38 -m pip install leo== ERROR: Could not find a version that satisfies the requirement leo== ERROR: No matching distribution found for leo== Hmm, Pypi doesn't have any version of Leo to install? Same results on two Linux VMs. I know how to install the current

Re: lost my leo and much data with it

2020-12-17 Thread tbp1...@gmail.com
darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> > > not sure what's supposed to happen here > > On Thursday, December 17, 2020 at 9:51:45 AM UTC-5 tbp1...@gmail.com > wrote: > >> On

Re: lost my leo and much data with it

2020-12-17 Thread tbp1...@gmail.com
On Thursday, December 17, 2020 at 9:30:29 AM UTC-5 andyjim wrote: > Despite the glitch with pip, it appears I have python3.9, so I went ahead >> with: >> >> Andrews-iMac:~ jam$ python 3.9 - leo.core.runLeo python: can't open file >> '3.9': [Errno 2] No such file or directory >> > No space

Re: lost my leo and much data with it

2020-12-17 Thread tbp1...@gmail.com
:) We all need help sometimes, don't we? On Thursday, December 17, 2020 at 7:18:38 AM UTC-5 Edward K. Ream wrote: > On Wed, Dec 16, 2020 at 10:12 PM tbp1...@gmail.com > wrote: > > > So create a new directory, maybe ~/leo-outlines, if you like, and put > them there. And sta

Re: ENB: The kernel of leojs: Leo in JS

2020-12-16 Thread tbp1...@gmail.com
If you plan to write a server to be the go-between between Leo and vs, it's the API that counts, not the coding language. The server language can be whatever works well for you. So Rust, sure, go for it. Leo/python will be able to talk with your API. If you want to have an especially

Re: lost my leo and much data with it

2020-12-16 Thread tbp1...@gmail.com
On Wednesday, December 16, 2020 at 8:28:54 PM UTC-5 andyjim wrote: > Tom, you have saved my bacon. .leoRecentFiles found the missing file, 7 > directories deep at usr/local/lib/python3.7/site-packages/Leo/doc/. The > file appears uncorrupted, but it seems to be the only copy of that file >

Re: lost my leo and much data with it

2020-12-16 Thread tbp1...@gmail.com
in from pip.*internal.main import main ImportError: No > module named pip.*internal.main > > Where do I go from here? Thanks. > > > On Tuesday, December 15, 2020 at 12:16:24 AM UTC-5 tbp1...@gmail.com > wrote: > >> The most obvious thing would be that you never save

Re: ENB: The kernel of leojs: Leo in JS

2020-12-16 Thread tbp1...@gmail.com
I also found dukpy: dukpy <https://pypi.org/project/dukpy/> " DukPy is a simple javascript interpreter for Python built on top of duktape engine *without any external dependency*". It can transpile to Typescript. On Wednesday, December 16, 2020 at 5:36:24 PM UTC-5 tbp1...

Re: ENB: The kernel of leojs: Leo in JS

2020-12-16 Thread tbp1...@gmail.com
PyPy has a "preliminary" version of a javascript interpreter for Python code. https://doc.pypy.org/en/latest/faq.html?highlight=javascript#can-i-use-pypy-s-translation-toolchain-for-other-languages-besides-python On Wednesday, December 16, 2020 at 4:55:50 PM UTC-5 Edward K. Ream wrote: > On

Re: ENB: The kernel of leojs: Leo in JS

2020-12-16 Thread tbp1...@gmail.com
I believe that Graal can (or soon will be able to) target both python and javascript. What I'm not sure about yet is whether you could write in python and output javascript. It may be that you would have to write in java and then you could output either python or javascript (see, e.g.,

Re: lost my leo and much data with it

2020-12-14 Thread tbp1...@gmail.com
r 14, 2020 at 7:47:10 AM UTC-5 Edward K. Ream wrote: > >> On Sun, Dec 13, 2020 at 7:08 PM tbp1...@gmail.com >> wrote: >> >>> Your actual .leo files are probably still there, where ever they were >>> before. You could look for them with find. Then after g

Re: lost my leo and much data with it

2020-12-14 Thread tbp1...@gmail.com
from >> Python. Says it's installed but doesn't seem to be. >> should I just run a leo install anyway? What install command should I >> use? MacOS >> >> On Sunday, December 13, 2020 at 8:08:24 PM UTC-5 tbp1...@gmail.com wrote: >> >>> Your actual .leo

Re: lost my leo and much data with it

2020-12-14 Thread tbp1...@gmail.com
Of course, if brew was your only package manager, I suppose my suggestions above might not work out so well... On Sunday, December 13, 2020 at 11:22:59 PM UTC-5 tbp1...@gmail.com wrote: > Many systems have both Python 2.7x and Python 3.x. On several Linux > systems I have, "pytho

Re: lost my leo and much data with it

2020-12-13 Thread tbp1...@gmail.com
from > Python. Says it's installed but doesn't seem to be. > should I just run a leo install anyway? What install command should I > use? MacOS > > On Sunday, December 13, 2020 at 8:08:24 PM UTC-5 tbp1...@gmail.com wrote: > >> Your actual .leo files are probably still th

Re: lost my leo and much data with it

2020-12-13 Thread tbp1...@gmail.com
Your actual .leo files are probably still there, where ever they were before. You could look for them with find. Then after getting Leo reinstalled, you should be good to go. Otherwise, there's always the backups :) On Sunday, December 13, 2020 at 7:42:01 PM UTC-5 andyjim wrote: > I updated

Re: Upgrading Leo from 6.1 to 6.3 - my oh my

2020-12-13 Thread tbp1...@gmail.com
I learned that some GUI settings left over from years ago still have an effect if I'm not using a theme. And sometimes those settings and the theme don't play together well. OTOH, I'm not using a theme just now because there are a few things I don't like in the current dark theme but I

Re: Three big Ahas re collaborating with Leo

2020-12-12 Thread tbp1...@gmail.com
This is where I get uneasy because I have messed up too many merge attempts (never tried with Leo outlines). Those merge tools can be so confusing as to what is going to happen! On Saturday, December 12, 2020 at 10:06:53 AM UTC-5 Edward K. Ream wrote: > ... 2. Because of conflict markers,

Re: ENB: Are huge Leo outlines possible?

2020-12-10 Thread tbp1...@gmail.com
have stored it there, but it's been too long... On Thursday, December 10, 2020 at 8:51:30 PM UTC-5 David Szent-Györgyi wrote: > On Wednesday, December 9, 2020 at 10:11:01 AM UTC-5 tbp1...@gmail.com > wrote: > >> Ah, the pdp-8, a trip down memory lane. I used an 8i extensively i

Re: ENB: Are huge Leo outlines possible?

2020-12-09 Thread tbp1...@gmail.com
Ah, the pdp-8, a trip down memory lane. I used an 8i extensively in the early 70s, but did not make the acquaintance of TECO. After looking it up on Wikipedia, I' m glad I didn't. Remember how 3 ascii characters were packed into two 12-bit words? And while the 8e may have come with 12k of

Re: About the default behavior for externally modifying a .leo file while it's opened in Leo

2020-12-06 Thread tbp1...@gmail.com
No, I don't think that's what Félix means. Open a .Leo file in say a text editor while it's also open in Leo. In the text editor, make a change to the .leo file and save. Leo doesn't notice the change. I just tried it. After I closed and reopened the .leo file in Leo, the change showed up

Re: Headline editing change

2020-12-01 Thread tbp1...@gmail.com
r > if I'm the only one who sees this behavior. > > Rob... > > On Tuesday, December 1, 2020 at 12:04:47 PM UTC-5 tbp1...@gmail.com wrote: > >> Running Windows on a near-current devel branch, I don't get this >> behavior. I tried both as described by Rob, and by backspaci

Re: Headline editing change

2020-12-01 Thread tbp1...@gmail.com
Running Windows on a near-current devel branch, I don't get this behavior. I tried both as described by Rob, and by backspacing to delete a character, and neither time did the focus go to the body. Going back to the release version 6.3, I also don't get this behavior. I also tried the 6.3

Re: exec python code from myLeoSettings at startup and on reload-settings

2020-11-30 Thread tbp1...@gmail.com
I think there would need ot be a new type of setting: @execute. You would probably need to code it yourself :) On Monday, November 30, 2020 at 3:52:09 PM UTC-5 gar wrote: > Still working on "myLeoIDE" mode. > The idea with making command files and loading them with import gave my > alot of

Re: PR's are a great success

2020-11-30 Thread tbp1...@gmail.com
I suggest searching for Raymond Chen's posts on git tricks in his blog "The Old New Things". This search might be a starting point: *"the old new thing" commit tricks*. Examples: https://devblogs.microsoft.com/oldnewthing/20190514-00/?p=102493

Re: SB: Please Read. Huge Ahas re unit testing

2020-11-29 Thread tbp1...@gmail.com
I'm glad to see you taking this approach. I think that different development tasks should be done in separate branches. In the past I've not always been careful about this, and by now I think I may finally have learned the lesson. On Sunday, November 29, 2020 at 1:52:56 PM UTC-5 Edward K.

Re: inject arbitrary python code into leo's node

2020-11-27 Thread tbp1...@gmail.com
ours in the resultless attempts to make it work :-( > пятница, 27 ноября 2020 г. в 19:25:28 UTC+3, tbp1...@gmail.com: > >> You could also add your directories to the pythonpath by adding a .pth >> file containing the path(s), possibly in your application's directory or

Re: inject arbitrary python code into leo's node

2020-11-27 Thread tbp1...@gmail.com
You could also add your directories to the pythonpath by adding a .pth file containing the path(s), possibly in your application's directory or in site-packages. On Friday, November 27, 2020 at 11:18:58 AM UTC-5 tbp1...@gmail.com wrote: > You could put the packages into some standard locat

Re: inject arbitrary python code into leo's node

2020-11-27 Thread tbp1...@gmail.com
on should be the default one > > пятница, 27 ноября 2020 г. в 18:26:07 UTC+3, tbp1...@gmail.com: > >> Wouldn't this work, as long as you know the path already? >> >> import sys >> sys.path.insert(path_to_lib, 0) >> import lib >> >> This would cause P

Re: inject arbitrary python code into leo's node

2020-11-27 Thread tbp1...@gmail.com
Wouldn't this work, as long as you know the path already? import sys sys.path.insert(path_to_lib, 0) import lib This would cause Python to look first in path_to_lib for the import. I've used this technique a few times myself. On Friday, November 27, 2020 at 9:16:06 AM UTC-5 gar wrote: > What

Replace-all Fails for RexExP Replacements

2020-11-21 Thread tbp1...@gmail.com
When I run a search/replace with a RegExp search phrase, and I want to specify a group to change, the replace works when I use the command replace-then-find (ALT+-), but it fails when I run replace-all. Test case: Add a space following a regex group - 1. Enter the following into a node body:

Re: Colorizing of @language directive

2020-11-19 Thread tbp1...@gmail.com
olorizes SQL code that follows an @language sql directive, as I wanted. I got interested in this because I had some SQL bits that I wanted VR3 to render in a colorized manner. That change was easy, but then the @language sql didn't behave as desired. On Thursday, November 19, 2020 at 4:32

Colorizing of @language directive

2020-11-19 Thread tbp1...@gmail.com
For a line in the body starting with @language, the directive is colored for common languages but not all. Specifically, it gets colored for plsql but not sql. I would like to include sql in the colored directives. I noticed that there was a syntax rules file plsql.py in the leo/modes

Re: More About TAB Issues

2020-11-19 Thread tbp1...@gmail.com
of having fixed tab stops. I had never noticed this before, but I see that it is also the way the Editplus works. Thank you, Edward, for getting this straightened out! On Thursday, November 19, 2020 at 6:50:33 AM UTC-5 Edward K. Ream wrote: > On Wed, Nov 18, 2020 at 5:01 PM tbp1...@gmail.

Re: More About TAB Issues

2020-11-19 Thread tbp1...@gmail.com
Thanks! On Thursday, November 19, 2020 at 6:50:33 AM UTC-5 Edward K. Ream wrote: > On Wed, Nov 18, 2020 at 5:01 PM tbp1...@gmail.com > wrote: > >> I have probably lost track in all the posts in the last TABs thread, but >> pressing the TAB key in the middle of a line

Re: More About TAB Issues

2020-11-18 Thread tbp1...@gmail.com
2020 г. в 02:01, tbp1...@gmail.com : > >> I have probably lost track in all the posts in the last TABs thread, but >> pressing the TAB key in the middle of a line now indents the line instead >> of adding a tab at the cursor location. I'm referring to the current devel >

More About TAB Issues

2020-11-18 Thread tbp1...@gmail.com
I have probably lost track in all the posts in the last TABs thread, but pressing the TAB key in the middle of a line now indents the line instead of adding a tab at the cursor location. I'm referring to the current devel branch: Leo 6.4-devel, devel branch, build b6a382048c 2020-11-18

Re: Tab-related bugs in devel and master

2020-11-18 Thread tbp1...@gmail.com
C-5 tbp1...@gmail.com wrote: > I just checked , and match-brackets worked there, too. It > didn't work for /**/ though, if that's what you meant by "//". > > On Wednesday, November 18, 2020 at 1:50:54 PM UTC-5 tbp1...@gmail.com > wrote: > >> match-brackets d

Re: Tab-related bugs in devel and master

2020-11-18 Thread tbp1...@gmail.com
I just checked , and match-brackets worked there, too. It didn't work for /**/ though, if that's what you meant by "//". On Wednesday, November 18, 2020 at 1:50:54 PM UTC-5 tbp1...@gmail.com wrote: > match-brackets does work on [], and {} as well. What kind of synt

Re: Tab-related bugs in devel and master

2020-11-18 Thread tbp1...@gmail.com
match-brackets does work on [], and {} as well. What kind of syntax regards "//" as bracket markers?. On Wednesday, November 18, 2020 at 12:29:01 PM UTC-5 gar wrote: > Leo does have a match-brackets command, which I have hot-keyed to Ctrl+]. >> It selects the region between a bracket and its

Re: Tab-related bugs in devel and master

2020-11-18 Thread tbp1...@gmail.com
On Wednesday, November 18, 2020 at 11:19:44 AM UTC-5 Edward K. Ream wrote: > On Wed, Nov 18, 2020 at 8:45 AM gar wrote: > >> >>> Put your cursor to the beginning of the line (position 0, not the first >> char). Hold shift, press down - the line is selected. Press tab - next line >> becomes

Re: Tab-related bugs in devel and master

2020-11-18 Thread tbp1...@gmail.com
Also I want more versatile select commands - select whatever in braces/quotes/..., goto to the maching brace, goto the closes symbol etc. Leo does have a match-brackets command, which I have hot-keyed to Ctrl+]. It selects the region between a bracket and its matching one. There is also

Re: How to zoom-in or zoom-out vr3 font size?

2020-10-03 Thread tbp1...@gmail.com
Actually, there is a setting to change the default font size: @int qweb-view-font-size = 16 (or use some other size). On Saturday, October 3, 2020 at 11:48:28 AM UTC-4 tbp1...@gmail.com wrote: > The rendering pane is basically a web browser. So click in the rendering > pane, th

Re: mathematical formulas display in vr3

2020-10-03 Thread tbp1...@gmail.com
Yes, it is great, isn't it? Are you asking how to make it work? You have to set a setting: For ReStructured Text, the setting is @bool vr3-math-output = True For Markdown, the setting is @bool vr3-md-math-output = True You also have to tell it where the MathJax script file is located. The

Re: How to zoom-in or zoom-out vr3 font size?

2020-10-03 Thread tbp1...@gmail.com
The rendering pane is basically a web browser. So click in the rendering pane, then use or like most other browsers. Note that this will change the entire display, including image size. If you do not want that, then you will have to edit the stylesheet, which is in Leo's

Re: ENB: Saving restoring layouts

2020-10-03 Thread tbp1...@gmail.com
, or is its reference simply replaced by the new? If the former, we might have a leak if the old layout still hangs around somewhere. On Saturday, October 3, 2020 at 8:07:38 AM UTC-4 Edward K. Ream wrote: > On Fri, Oct 2, 2020 at 11:57 AM tbp1...@gmail.com > wrote: > > By adding prin

Re: Leo won't start

2020-10-02 Thread tbp1...@gmail.com
I always use the command python -m leo.core.runLeo. This lets me avoid problems with paths to any special launchers, and just runs the actual code directly. If I want to run from my Github repo, I first set the PYTHONPATH environmental variable to the top of the repo first. As for the command

Re: ENB: Saving restoring layouts

2020-10-02 Thread tbp1...@gmail.com
By adding print statements to the constructors, I see that only one VR3 plugin instance is getting created per outline. I also see that a new VR3 controller widget (ViewRenderedController3) is getting created every time the vr3-show command is run. So the question is, what happens to the

Re: ENB: Saving restoring layouts

2020-09-30 Thread tbp1...@gmail.com
On Wednesday, September 30, 2020 at 11:57:38 AM UTC-4 Edward K. Ream wrote: > On Tue, Sep 29, 2020 at 10:23 PM tbp1...@gmail.com > wrote: > > When a pane is opened as a toplevel window by using the Open Window >> context menu, that pane is not a part of the ordinary nested s

Re: LaTex to PDF workflow using Leo

2020-09-30 Thread tbp1...@gmail.com
Yes, the method signature has changed. It's now: def afterChangeNodeContents(self, p, command, bunch, inHead=False): """Create an undo node using d created by beforeChangeNode.""" The command argument seems to be the name of the Leo command that would cause the undoable changes.

Re: ENB: Saving restoring layouts

2020-09-29 Thread tbp1...@gmail.com
This question is related to (or part of) the question of how you can tell that your pane has been opened as top-level window or as one of the panes of a nested splitter? On Tuesday, September 29, 2020 at 11:23:41 PM UTC-4 tbp1...@gmail.com wrote: > When a pane is opened as a toplevel win

Re: ENB: Saving restoring layouts

2020-09-29 Thread tbp1...@gmail.com
When a pane is opened as a toplevel window by using the Open Window context menu, that pane is not a part of the ordinary nested splitter layout, so far as I can tell. How can this pane be accessed? On Tuesday, September 29, 2020 at 12:35:13 PM UTC-4 Edward K. Ream wrote: > For the last

Leo Should Include a Basic ns_provider Class

2020-09-26 Thread tbp1...@gmail.com
after looking over VR3's ViewRenderedProvider3 class, and the TestPaneProvider class in Terry Brown's example of putting up an additional pane (see https://leoeditor.com/FAQ.html#how-can-i-create-a-pane-for-matplotlib-charts), it seems to me that Leo should be providing a basic or generic

Re: About changes to VR3

2020-09-24 Thread tbp1...@gmail.com
Ream wrote: > On Thu, Sep 24, 2020 at 10:57 AM tbp1...@gmail.com > wrote: > >> Note that the Viewrendered plugin suffers from the same problems as VR3 >> did. That is not surprising since the VR3 splitter code was taken directly >> from VR. >> > > Yes. I am

Re: About changes to VR3

2020-09-24 Thread tbp1...@gmail.com
Note that the Viewrendered plugin suffers from the same problems as VR3 did. That is not surprising since the VR3 splitter code was taken directly from VR. On Thursday, September 24, 2020 at 11:55:02 AM UTC-4 tbp1...@gmail.com wrote: > Here is the code for my experimental command to open

Re: About changes to VR3

2020-09-24 Thread tbp1...@gmail.com
.c.k.simulateCommand('vr3-update') I have de-compactified the layout dictionary to make it easier to read and modify. On Thursday, September 24, 2020 at 10:00:36 AM UTC-4 Edward K. Ream wrote: > On Wed, Sep 23, 2020 at 11:53 PM tbp1...@gmail.com > wrote: > > After a few minor changes,

<    3   4   5   6   7   8   9   >