Modified headline query

2024-05-24 Thread lewis
I wrote a script to add a datestamp to the top node of a file. It modifies 
the headline and the headline icon changes to show it has changed.
However when I close the leo file there is no prompt to save the file and 
the update is lost.

I'm obviously missing some important detail and look forward to a helpful 
explanation of why the file is not recognised as changed.
Here is the script:





















*@language pythonfrom datetime import datetimenow = 
datetime.now()TIME_STAMP = (f"{now.day}/{now.month}/{now.year} 
{now.hour}:{now.minute}:{now.second}")def datestamp_node():# POSITION  
  c.selectPosition(c.rootPosition())  # select root node position and move 
to it# MOVES TO FIRST NODEp = c.p# NODE headlinep.h 
= "datestamp Leo" + " " + TIME_STAMP  # timestamp "datestamp Leo" node
c.setHeadString(p, p.h)  # write the new headline.g.es_print(f"   
new headline is: ", p.h)c.redraw(p)datestamp_node()*

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a32d0ac8-838e-49b0-a401-7a9633ece2ebn%40googlegroups.com.


Re: glitches installing and starting Leo

2024-05-17 Thread lewis
It may be worth looking at the leoOPML plugin which allows Leo to read and 
write OPML files.

On Friday, May 17, 2024 at 1:52:25 PM UTC+10 tbp1...@gmail.com wrote:

> On Thursday, May 16, 2024 at 11:04:15 PM UTC-4 andyjim wrote:
>
> one more question and I'll try to leave you alone:
> I use Bike, an outlining editor. The file extension is .bike
> Can I represent an external Bike file in a Leo outline and from that Leo 
> outline can I open the external file in the Bike application? 
>
>  
> I don't know anything about a Bile file.  In general, if you can run Bike 
> and get it to pen a file from the command line, we can easily issue that 
> command from within Leo.  I see that a Bike outline is an html file. I 
> don't know where they keep their images, etc, but it's not hard to display 
> an html file in Leo.  Editing it is something else, though. I see that Bike 
> also has an OPML format too.  OPML is a XML file but has a bad design for 
> interchanging anything complicated.  In theory, an XSLT transformation 
> could be written to convert it into a Leo file.  It's been so long since I 
> worked on XSLT transformations (about 20 years) that I'm awfully rusty. 
> There's also said to be a text format for Bike but I don't know anything 
> about that.
>
> So the answer might be that it can probably be done, but you might not be 
> able to do the kind of editing of rich text that you can apparently do in 
> Bike.  OTOH, Leo could be made to use a rich text editor instead of the 
> plain text-based one it normally uses.  There's at least one plugin that 
> does that, though I don't know if it still works.
>
> Anyway, the answer to the question of representing an external Bike file 
> in Leo is "probably yes, depending on what you want to do with it in Leo".
>
> Reading a little more (Bike: An Elegant Outliner For Mac-Focused Workflows 
> ),
>  
> it looks like it's an elegant riff off of Dave Winer's MORE outliner.  
> Surprise, so is Leo!  Dave strikes again.  And OPML is a data format from 
> ... Dave.  Or it could be more reminiscent of Radio Userland 
> , another Dave Winer 
> project.  Anyone else remember Radio Userland?
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f2b1cea9-e64e-4704-b405-5a2492642731n%40googlegroups.com.


Re: A Script To Display The Viewrendered3 Pane in the Same Place s The Body

2024-05-13 Thread lewis
Thomas,
Thanks for the script. I really appreciate the effort you have put into 
improving the VR3 functionality.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/52a6-7adf-449e-a8d5-e86760d97b9fn%40googlegroups.com.


Re: Script to expand toolbar

2024-04-02 Thread lewis
>From original issue #407 - You can put that in *@button expand-toolbar* 
node in your myLeoSettings.leo under @buttons node.
If it is first child of @buttons then this button will be on left side of 
toolbar and it will be easier to click this button and then to find button 
you need. 

I confirmed it also works for me as a script using Ctrl-B.

I'm not aware of where  w.objectName() == 'qt_toolbar_ext_button'   is 
defined.
On Wednesday, April 3, 2024 at 12:26:44 AM UTC+11 Edward K. Ream wrote:

> On Tue, Apr 2, 2024 at 4:25 AM lewis  wrote:
>
>> @vitalije first provided a script to expand the toolbar in 
>> https://github.com/leo-editor/leo-editor/issues/407
>> Here is an update that works with PyQt6
>>
>
> It doesn't work for me.  Where is qt_toolbar_ext_button defined??
>
> Edward
>
>>
>> """
>> Expand button bar
>> """
>>
>> from PyQt6.QtCore import QPointF, Qt
>> from PyQt6.QtGui import QMouseEvent
>> from PyQt6.QtWidgets import QApplication
>>
>> pos = QPointF(0, 0)
>> button = Qt.MouseButton.LeftButton
>> btns = Qt.MouseButton(0)
>> mods = Qt.KeyboardModifier(0)
>>
>> # Define the event types directly without accessing them through Qt
>> e1 = QMouseEvent(QMouseEvent.Type.MouseButtonPress, pos, button, btns, 
>> mods)
>> e2 = QMouseEvent(QMouseEvent.Type.MouseButtonRelease, pos, button, btns, 
>> mods)
>>
>> # Assuming 'c' and 'w' are already defined
>> for w in c.frame.iconBar.w.children():
>> if w.objectName() == 'qt_toolbar_ext_button':
>> QApplication.sendEvent(w, e1)
>> QApplication.sendEvent(w, e2)
>> break
>>
>> Again thanks to Vitalije for the original script.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "leo-editor" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to leo-editor+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/leo-editor/6590e9b3-9ffa-4ed8-ba38-cf403c4ed62fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/leo-editor/6590e9b3-9ffa-4ed8-ba38-cf403c4ed62fn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> -
> Edward K. Ream: edre...@gmail.com
> Leo Editor: https://leo-editor.github.io/leo-editor/ 
> <http://leoeditor.com/>
> -
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6592561b-f0e6-4b93-91d5-d5786291d79fn%40googlegroups.com.


Script to expand toolbar

2024-04-02 Thread lewis
@vitalije first provided a script to expand the toolbar in 
https://github.com/leo-editor/leo-editor/issues/407
Here is an update that works with PyQt6

"""
Expand button bar
"""

from PyQt6.QtCore import QPointF, Qt
from PyQt6.QtGui import QMouseEvent
from PyQt6.QtWidgets import QApplication

pos = QPointF(0, 0)
button = Qt.MouseButton.LeftButton
btns = Qt.MouseButton(0)
mods = Qt.KeyboardModifier(0)

# Define the event types directly without accessing them through Qt
e1 = QMouseEvent(QMouseEvent.Type.MouseButtonPress, pos, button, btns, mods)
e2 = QMouseEvent(QMouseEvent.Type.MouseButtonRelease, pos, button, btns, 
mods)

# Assuming 'c' and 'w' are already defined
for w in c.frame.iconBar.w.children():
if w.objectName() == 'qt_toolbar_ext_button':
QApplication.sendEvent(w, e1)
QApplication.sendEvent(w, e2)
break

Again thanks to Vitalije for the original script.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6590e9b3-9ffa-4ed8-ba38-cf403c4ed62fn%40googlegroups.com.


Re: I just had successful eye surgury

2024-03-29 Thread lewis
Best wishes and hope you recover well.

On Friday, March 29, 2024 at 7:03:52 AM UTC+11 Edward K. Ream wrote:

> A vitrectomy 
> of
>  
> the rt eye. I'll be limited in what I can do for about a week.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/091eb641-afa4-482d-91f0-e7991dcfc0a5n%40googlegroups.com.


Re: Fix For Ctrl-Click On UNL Not Opening Outline

2023-12-09 Thread lewis
See #3706 which concerns headline focus.
I will try out your patch.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4ce1dbcf-a7da-493b-b4ec-a1b0bc11212dn%40googlegroups.com.


Re: Fix For Ctrl-Click On UNL Not Opening Outline

2023-12-09 Thread lewis
I set myLeoSettings file to:
@string unl-status-kind = legacy

I then created a *new* leo file and created a new node: Test UNLs for 
Thomas - legacy 

You are correct the new version UNLs don't have the full path to the file:
unl://Test_UNLs.leo#Test UNLs for Thomas - legacy

Ctrl-click on a node with that new version UNL does not open the file. Nor 
does it move to file if already open





*Leo Log WindowLeo 6.7.6-devel, devel branch, build ec97534c2d2023-12-09 
16:30:04 -0600Python 3.12.0, PyQt version 6.6.1Windows 10 AMD64 (build 
10.0.19045) SP0*

On Sunday, December 10, 2023 at 3:18:56 PM UTC+11 tbp1...@gmail.com wrote:

> What version or changeset are you running?  It's been broken for me in 
> devel for a while, and also in 6.7.5.  I get UNLs from nodes, and they look 
> like this:
>
> unl:gnx://LeoPyRef.leo#ekr.20230630132340.1  (New style)
> unl://workbook.leo#get unl body ("Legacy" style)
>
> Neither form works for me with a CTRL-click for a file outside the current 
> outline, because -
>
> The new version UNLs do not include the full path to a file, whereas your 
> example does.  Without the full path, the navigation method has to try a 
> series of heuristics to work out the path, and that's what the current 
> method doesn't get right. I get the UNLs to test using p.get_UNL() or 
> p.get_legacy_UNL().  If your example UNL string came from an older 
> version of Leo, well, that's not what you would get with current versions.
> On Saturday, December 9, 2023 at 9:33:13 PM UTC-5 lewis wrote:
>
>> Ctrl-click on UNL is not broken for me :)
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/81fb47ca-da1b-4e7d-bff7-a5c9c256a4ban%40googlegroups.com.


Re: Fix For Ctrl-Click On UNL Not Opening Outline

2023-12-09 Thread lewis
Thomas, Ctrl-click on UNL does not open another file if I have setting:
@string unl-status-kind = gnx

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d24cf8af-385c-43ed-bdf8-f0dd542cdcb2n%40googlegroups.com.


Re: Fix For Ctrl-Click On UNL Not Opening Outline

2023-12-09 Thread lewis
Ctrl-click on UNL is not broken for me :)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3f57ceb7-7454-44bb-9c61-c5634aff4794n%40googlegroups.com.


Re: Fix For Ctrl-Click On UNL Not Opening Outline

2023-12-09 Thread lewis
This feature works for me. I have a node with body text:
unl://n:/leo/abc.leo#unl_workbook.leo

Ctrl-click the node headline and file abc.leo opens in a new Tab, with 
cursor at the specified node. 

On Sunday, December 10, 2023 at 6:21:19 AM UTC+11 tbp1...@gmail.com wrote:

> Ctrl-clicking on a UNL string in a node is supposed to navigate to that 
> location, even if it's in another outline.  That outline should open if 
> it's not already.  But after the recent changes to the UNL design, the 
> functionality only works within the same outline.  It won't open an outline 
> and navigate to the target node.
>
> A fix is in the works, but Edward and Felix don't have a lot of extra 
> cycles right now to review and approve the PR.  So here is a monkey-patch 
> that restores the navigation capability in advance of merging the PR.  This 
> is basically the same code as is in the PR, packaged as a little outline 
> that can do the monkey-patching.  The code changes g.openUNLFile().
>
> To use, open the outline, select its top-level node, and run its script 
> (with CTRL-b).  The patch will need to be applied again each time you start 
> Leo.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bc56637c-93b5-432d-9582-5cda42c3bf37n%40googlegroups.com.


mod_http plugin issue

2023-11-28 Thread lewis
I have the mod_http.py plugin enabled in myLeoSettings.leo however when Leo 
starts the log pane does not show the message 'http serving enabled at 
127.0.0.1:8130'

http://localhost:8130/ in a browser is unable to connect and can’t 
establish a connection to the server at localhost:8130.
I'mrunning Leo 6.7.6-devel, devel branch, build 1ca1bbfaa4.
Can anyone confirm the plugin works?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/37c9d6fb-9ba5-47ac-8ea2-cbe35319d670n%40googlegroups.com.


Re: Problem running Leo after installing Python 3.12

2023-10-14 Thread lewis
PyQt version 6.5.3 has been released. It supports Python v3.12. 
After updating PyQt Leo runs on windows with Python 3.12 with no errors.

On Thursday, October 12, 2023 at 9:36:22 PM UTC+11 lewis wrote:

> It seems I will need PyQt6 v6.5.3 which supports Python v3.12 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6ec9cfad-2142-4889-8423-f69e5bc9cc0bn%40googlegroups.com.


Re: Problem running Leo after installing Python 3.12

2023-10-12 Thread lewis
I have PyQt6 installed but it is v6.5.2
See 
https://www.riverbankcomputing.com/pipermail/pyqt/2023-October/045542.html

On Thursday, October 12, 2023 at 10:03:51 PM UTC+11 Edward K. Ream wrote:


Yes, you must install Qt.

#3604  suggests 
improving this message.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5b78991a-0c4d-4ab0-8165-1c539f09039an%40googlegroups.com.


Re: Problem running Leo after installing Python 3.12

2023-10-12 Thread lewis
It seems I will need PyQt6 v6.5.3 which supports Python v3.12 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/daf008fe-8372-42f0-a02d-230af178b21bn%40googlegroups.com.


Problem running Leo after installing Python 3.12

2023-10-12 Thread lewis
On Windows PC I installed Python 3.12 but when I tried running Leo with 
launchLeo.py I get:



*'NoneType' object has no attribute 'gui'** Leo could not be started ***

I also tried running with
>python.exe -m leo.core.runLeo  

but got same result. Has anyone had a similar problem?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e143bd80-6184-43d9-99fb-5f7224737786n%40googlegroups.com.


Re: Press ⌘ then click node

2023-07-27 Thread lewis
 file:///path/to/a/file/or/directory 

works on Windows if 3 slashes are used.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4bc78837-f9b8-417c-89d9-e08a0526f1ben%40googlegroups.com.


Re: Search for node by GNX with g.findGnx

2023-07-20 Thread lewis
@tbpassin thanks for your observation that the script works. Occasionally I 
use the script to locate a Gnx that appears in a console ouput.

>From Leo's glossary on Gnx:
 *Such gnx’s permanently and uniquely identify nodes. Gnx’s have the form:*

*id.mmddhhmmssid.mmddhhmmss.n*

So it seemed reasonable to me that if I enter such a Gnx that g.findGnx 
would work.

On Wednesday, July 19, 2023 at 6:07:43 AM UTC+10 tbp1...@gmail.com wrote:

> I didn't word that right. I meant that the string returned by the dialog 
> isn't a gnx string that can be found.  In my test case, the gnx in the 
> clipboard started with "*gnx:*" When I manually removed the "*gnx:*" 
> prefix, @Lewis's script ran correctly. 
>
> On Tuesday, July 18, 2023 at 3:58:56 PM UTC-4 Thomas Passin wrote:
>
>> The problem here is not with findGnx() or es_clickable_link().  The 
>> problem is that  g.app.gui.runAskOkCancelStringDialog(c,'SEARCH Node by 
>> GNX',"Enter search GNX: ") is failing to find an existing gnx*.*  
>> Checking to see if it has returned None or not will prevent a exception, 
>> but the failure is a bug.
>>
>> This statement is based on the one  test case I ran, in which I got the 
>> gnx into the clipboard and pasted it from there into the dialog.
>> On Tuesday, July 18, 2023 at 9:20:47 AM UTC-4 Edward K. Ream wrote:
>>
>>> On Tue, Jul 18, 2023 at 7:11 AM lewis  wrote:
>>>
>>> Have you used 
>>>> *p0 = g.findGnx(GNX_ID, c)  # moves to position p0 *
>>>> to replicate the issue?
>>>>
>>>
>>> No. Why should I?  The problem is with GNX_ID.
>>>
>>> execute-script with the following works for me:
>>>
>>> print(p)
>>> prev = p.back()
>>> gnx = prev.gnx
>>> p0 = g.findGnx(gnx, c)  # moves to position p0 
>>> print(p0)
>>>
>>> The result:
>>>
>>> >> response re script error>
>>> >> response re script error>
>>> >> response re script error>
>>> 
>>>
>>> This is *your* scripting problem, not mine.
>>>
>>> Edward
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d75ffa41-6ab0-4528-b5d1-252436ad3fb1n%40googlegroups.com.


Re: Search for node by GNX with g.findGnx

2023-07-18 Thread lewis


On Tuesday, July 18, 2023 at 9:33:33 PM UTC+10 Edward K. Ream wrote:

GNX_ID may not be correct, but that depends on what you entered.

I know that the GNX_ID is correct as I have used (p.v.gnx) to get the GNX.

The following @button script works for me, regardless of p (or p.b):

g.es_clickable_link(c, p, 0, p.h)

Edward


Have you used 
*p0 = g.findGnx(GNX_ID, c)  # moves to position p0 *
to replicate the issue? I do not have the same errors and the clickable 
link persists if script searches for node by node name using:
*p = g.findNodeAnywhere(c, node_name)*

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/243832fa-ff1d-474d-886c-a6dd49b8b801n%40googlegroups.com.


Search for node by GNX with g.findGnx

2023-07-18 Thread lewis
Using this script to search for a node by a Gnx:



*GNX_ID: str = g.app.gui.runAskOkCancelStringDialog(c,'SEARCH Node by 
GNX',"Enter search GNX: ").strip()p0 = g.findGnx(GNX_ID, c)  # moves to 
position p0 g.es_clickable_link(c, p0, 0, (p0.h))  # clickable-link, use 
p.h*

If the node matching GNX is empty (no body text) it displays a persistent 
clickable link in Log pane.

However if the node matching GNX contains body text it gives errors:
is_sentinel: can not happen. delims: (None, '')
is_sentinel: can not happen. delims: (None, '')
is_sentinel: can not happen. delims: (None, '')
is_sentinel: can not happen. delims: (None, '')

A clickable link displays in Log pane but when pressed the link is not 
persistent, the clickable link disappears and the errors repeat.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/84f9e33e-4440-4242-a1b0-5dc94172579cn%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
OK thanks. It's my mistake when editing my settings.

On Friday, July 7, 2023 at 10:43:30 AM UTC+10 tbp1...@gmail.com wrote:

> I asked about the duplicate somewhere else (can't find it just now).  
> Edward said the extra node wasn't harmful and would be a reminder for him 
> which he would remove later.
>
> On Thursday, July 6, 2023 at 8:37:03 PM UTC-4 iamap...@gmail.com wrote:
>
>> I noticed myLeoSettings.leo file has node structure:
>>> @settings
>>> UNLs
>>> >@string unl-status-kind = gnx
>>>
>>> What is the reason for using clones in leoSetting.leo file?
>>>
>>
>> I guess this is just Edward's cff workflow :D It's just not cleaned up
>>
>>
>> -- 
>> --
>> Sincerely,
>>
>> HaveF
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8dfa6fc4-fb1f-4187-ae76-32f4ed2e1febn%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
I noticed myLeoSettings.leo file has node structure:
@settings
UNLs
>@string unl-status-kind = gnx

Any Leo user knows that "This @settings tree contains all active settings. 
Settings outside this tree have no effect."
I moved the UNLs node under @settings and all fixed. :)

Why did I make that mistake? I copied the UNLs node from leoSettings.leo 
file. The first UNLs node I saw was a clone which is outside the @settings 
tree.
What is the reason for using clones in leoSetting.leo file?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d0e06f9b-a293-4ffa-b1d3-0dd07c39c1cen%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
On laptop build 947ea935f5 works correctly.
However on PC 947ea935f5 does not show gnx-style format.

Here is log from PC updating to build 947ea935f5 
$ git pull
remote: Enumerating objects: 85, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 85 (delta 58), reused 69 (delta 42), pack-reused 0
Unpacking objects: 100% (85/85), 47.31 KiB | 13.00 KiB/s, done.
>From https://github.com/leo-editor/leo-editor
   d845b1024..947ea935f  devel -> origin/devel
 * [new branch]  ekr-3423-node-history -> 
origin/ekr-3423-node-history
   2534f31b7..9c1261cd8  ekr-dmypy -> origin/ekr-dmypy
   f587fb5f7..f3ae2e5cb  ekr-tweak-unls-> origin/ekr-tweak-unls
   d845b1024..947ea935f  felix-server5 -> origin/felix-server5
Updating d845b1024..947ea935f
Fast-forward
 leo/plugins/freewin.py | 19 ++-
 1 file changed, 10 insertions(+), 9 deletions(-)

I repeated git pull:
$ git pull
Already up to date.

On Thursday, July 6, 2023 at 11:42:02 PM UTC+10 Edward K. Ream wrote:

> On Thu, Jul 6, 2023 at 8:26 AM lewis  wrote:
>
>> I updated to build 947ea935f5 and the status bar now shows gnx format.
>> Previously build c4434257ff was installed.
>>
>
> Good. Keep on testing. Detours don't matter :-)
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/542f07a1-48de-4357-934b-5a386e677bb0n%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
I updated to build 947ea935f5 and the status bar now shows gnx format.
Previously build c4434257ff was installed.

On Thursday, July 6, 2023 at 11:19:06 PM UTC+10 tbp1...@gmail.com wrote:

> I have *@string unl-status-kind = legacy *set in myLeoSettings.leo, and 
> the status bar does show the path-based UNL.  I added a setting *@string 
> unl-status-kind = gnx* to my workbook, restarted Leo, and for that 
> outline, I see gnx-style addresses in the status bar.
>
> Leo 6.7.4-devel, devel branch, build 947ea935f5
> 2023-07-06 08:01:34 -0500
> Python 3.11.4, PyQt version 6.4.3
> Windows 10 AMD64 (build 10.0.19045) SP0
>
> On Thursday, July 6, 2023 at 9:06:47 AM UTC-4 lewis wrote:
>
>> No, the local file does not have @string unl-status-kind = legacy
>> Only myLeoSettings.leo has @string unl-status-kind = gnx 
>>
>> Strange. Both my desktop and laptop have this behaviour. I'll keep 
>> investigating.
>>
>> On Thursday, July 6, 2023 at 10:53:33 PM UTC+10 Edward K. Ream wrote:
>>
>>> On Thu, Jul 6, 2023 at 4:40 AM lewis  wrote:
>>>
>>>> In myLeoSettings.leo I have:
>>>> @string unl-status-kind = gnx
>>>>
>>>> However the status bar still shows legacy format, it does not show 
>>>> links in the gnx format:
>>>> unl:gnx//G:/My Drive/editor/workbook.leo#lewis.20170803232020.1
>>>>
>>>> Do I need to add another setting?
>>>>
>>>
>>> Works for me in devel.
>>>
>>> Does your local .leo file define @string unl-status-kind = legacy ?
>>>
>>> Edward
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/531c927b-2538-4c3e-a326-411ff2b1c982n%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
 No, the local file does not have @string unl-status-kind = legacy
Only myLeoSettings.leo has @string unl-status-kind = gnx 

Strange. Both my desktop and laptop have this behaviour. I'll keep 
investigating.

On Thursday, July 6, 2023 at 10:53:33 PM UTC+10 Edward K. Ream wrote:

> On Thu, Jul 6, 2023 at 4:40 AM lewis  wrote:
>
>> In myLeoSettings.leo I have:
>> @string unl-status-kind = gnx
>>
>> However the status bar still shows legacy format, it does not show links 
>> in the gnx format:
>> unl:gnx//G:/My Drive/editor/workbook.leo#lewis.20170803232020.1
>>
>> Do I need to add another setting?
>>
>
> Works for me in devel.
>
> Does your local .leo file define @string unl-status-kind = legacy ?
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/06d7a812-e732-4d57-85b3-202e11ca24bdn%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
Sorry, I realise my previous post was unclear.
The status bar still shows legacy format
unl://G:/My Drive/editor/workbook.leo#Home

On Thursday, July 6, 2023 at 7:40:29 PM UTC+10 lewis wrote:

In myLeoSettings.leo I have:
@string unl-status-kind = gnx

However the status bar still shows legacy format, it does not show links in 
the gnx format:

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f7f34da1-b6b8-4605-bcba-6f105094f5dcn%40googlegroups.com.


Re: Why gnx-based unls are important

2023-07-06 Thread lewis
In myLeoSettings.leo I have:
@string unl-status-kind = gnx

However the status bar still shows legacy format, it does not show links in 
the gnx format:
unl:gnx//G:/My Drive/editor/workbook.leo#lewis.20170803232020.1

Do I need to add another setting?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1b71d37b-b21f-4537-818e-1995d194a5d9n%40googlegroups.com.


Re: PR #3277 has been merged into devel

2023-04-18 Thread lewis
Running this script from the Leo scripting tutorial:






*fn = g.os_path_finalize_join(g.app.homeDir, 'leo_output_file.txt')with 
open(fn, 'w') as f:f.write(c.p.b)with open(fn, 'r') as f:for line 
in f.readlines():g.es(line.rstrip())*

Gives traceback:
Leo 6.7.3-devel, devel branch, build e2c9fa06e0
2023-04-17 20:36:03 -0500
Python 3.11.3, PyQt version 6.5.0
Windows 10 AMD64 (build 10.0.19044) SP0
exception executing script
Traceback (most recent call last):
  File "N:\git\leo-editor\leo\core\leoCommands.py", line 1194, in 
executeScript
c.executeScriptHelper(args, define_g, define_name, namespace, script)
  File "N:\git\leo-editor\leo\core\leoCommands.py", line 1239, in 
executeScriptHelper
exec(compile(script, scriptFile, 'exec'), d)
  File "C:/Users/lewisneal/.leo/scriptFile.py", line 3, in 
fn = g.os_path_finalize_join(g.app.homeDir, 'leo_output_file.txt')
^^^
AttributeError: module 'leo.core.leoGlobals' has no attribute 
'os_path_finalize_join'
On Tuesday, April 18, 2023 at 11:44:49 AM UTC+10 Edward K. Ream wrote:

> PR #3277  changes 
> g.os_path_finalize and g.os_path_finalize_join, and rev 32c9f 
> 
>  
> adds a missing alias.
>
>
> These changes are non-trivial. Please report any problems immediately.
>
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d2b5ade2-c589-43c9-98cf-fae1f3e6b1f6n%40googlegroups.com.


Re: Eye surgery tommorrow

2023-04-12 Thread lewis
Best wishes, hope it goes well.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6f979faa-dab5-4c7a-91ac-3e0aa7fa9f05n%40googlegroups.com.


Re: VR3 can now be opened in a tab

2023-04-09 Thread lewis
I use an @button Delete-TAB

TAB_name = g.app.gui.runAskOkCancelStringDialog(c,'Delete TAB',"Enter 
Tab name: ").strip()
c.frame.log.deleteTab(TAB_name)  # delete named Tab

Is there a way to get a list of Tab names?
On Sunday, April 9, 2023 at 12:28:45 AM UTC+10 tbp1...@gmail.com wrote:

> Yes, as long as you know its name, which you do from its label:
>
> log.deleteTab(TABNAME)
>
> On Saturday, April 8, 2023 at 10:26:30 AM UTC-4 jkn wrote:
>
>> This look interesting, thanks.
>>
>> One thing I have never really needed, but occasionally wondered about; it 
>> is possible to *delete* a tab in the log pane? (perhaps it should be called 
>> the 'tab pane'?...)
>>
>> J^n
>>
>> On Friday, April 7, 2023 at 3:04:48 PM UTC+1 tbp1...@gmail.com wrote:
>>
>>> 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 that tab behavior:
>>>
>>> vr3-tab -- opens VR3 in a tab
>>> vr3-toggle-tab -- opens or closes VR3 in a tab.
>>>
>>> I like to use an @button node in the @settings tree to make a button for 
>>> vr3-toggle-tab. The button runs c.k.simulateCommand('vr3-toggle-tab').
>>>
>>> vr3-toggle will close VR3 if open in a splitter pane as well as in a 
>>> tab.  Next time, the command will open it in the splitter.  Conversely, 
>>> vr3-toggle-tab will close VR3 in either a tab or the splitter, but will 
>>> re-open it in a tab the next time the command is run.
>>>
>>> An advantage to running VR3 in a tab is that you can open something else 
>>> in a new splitter pane without interfering with VR3.
>>>
>>> One minor drawback is that focus will switch to the log pane when 
>>> something is written there - most likely when the outline has been saved.  
>>> Then you have to click in the VR3 tab to see it again.  I haven't found 
>>> this to bother me much.
>>>
>>> This new behavior has now been merged into the devel branch, so it's 
>>> ready to try out.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e98b3662-4fff-4cb6-b066-74eec7ae1ad1n%40googlegroups.com.


Re: New Way To Expand/Contract Leo Trees

2023-03-27 Thread lewis
Yes I did use '*='  *in the setting.
The mouse-over is working fine*.* I haven't had any crashes using the 
gesture on Win10. 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/793aac7b-9f06-421b-85cb-8fbc91300c28n%40googlegroups.com.


Re: New Way To Expand/Contract Leo Trees

2023-03-27 Thread lewis
I added *@bool **use-mouse-expand-gestures** - True*   to 
myLeoSetttings.leo but the mouse-over expand/contract is still disabled. 
Does the setting need to be changed in qt_tree.py ?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c44da2a0-e681-449a-b91a-16a4495b8e86n%40googlegroups.com.


Re: Two standard outline editing commands

2023-03-02 Thread lewis
See leoSettings.leo for *@bool insert-new-nodes-at-end*

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2fd3d16c-29c4-48a8-870e-80e94bd387aen%40googlegroups.com.


Re: Two standard outline editing commands

2023-03-02 Thread lewis
You could combine the *goto-last-sibling* command and the *insert-node* 
command in a script.

On Friday, March 3, 2023 at 7:41:48 AM UTC+11 chr...@gmail.com wrote:

> Hi,
>
> - I can't find an *insert-sibling *command, by which a headline can be 
> created below the last offspring of the currently active *expanded* 
> parent, at the same level as that active parent. 
>
> - Same thing for a *split-headline* command, by which while in headline 
> text editing mode, we can split the headline, transferring all text 
> following the caret into a new sibling, right below the current headline.
>
> 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.
> Or should I present this as a feature request, if such a thing is accepted 
> for consideration in this group?
>
> Chris
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/12bf7fb3-f54c-44ab-bc9e-273d52db5a52n%40googlegroups.com.


Re: Status report: Leo's new website

2023-01-21 Thread lewis
At https://groups.google.com/g/leo-editor the line
*Welcome to Leo's <http://leoeditor.com/> Google Group.* 
needs the link updated to https://leo-editor.github.io/leo-editor

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c12d353a-4373-4d7c-b949-430ca486c888n%40googlegroups.com.


Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-21 Thread lewis
I don't have the transcript. The update request was for a script that 
ChatGPT had already created and I asked for a path to be changed to a  
AskOkCancelStringDialog input. So the request was fairly direct.

On Saturday, January 21, 2023 at 9:10:52 PM UTC+11 Edward K. Ream wrote:

> On Sat, Jan 21, 2023 at 3:01 AM lewis  wrote:
>
>> I asked ChatGPT to read 
>> https://leo-editor.github.io/leo-editor/scripting-miscellany.html then 
>> update a python script with a Leo method.
>> It worked fine :)
>>
>
> Wow! I thought ChatGPT was limited to its training set. Do you have a 
> transcript? I'd love to see it.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ff4bfc95-6e42-4fc4-b81e-65e3fc39c40an%40googlegroups.com.


Re: Curious to know if any Leonistas tried out ChatGPT?

2023-01-21 Thread lewis
I asked ChatGPT to read 
https://leo-editor.github.io/leo-editor/scripting-miscellany.html then 
update a python script with a Leo method.
It worked fine :)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6ec2b2f6-76da-4cd6-8c20-65fdcd9778e7n%40googlegroups.com.


Re: Cannot Start Leo When Enchant Speller Is Missing Libraries

2023-01-11 Thread lewis
In leosettings.leo under Spell checking there is a node:
@string enchant-language = en-US

Does that help?

On Wednesday, January 11, 2023 at 4:18:20 PM UTC+11 tbp1...@gmail.com wrote:

> Of course, one solution is to uninstall pyenchant.  I did that and now Leo 
> can run.  
>
> On Tuesday, January 10, 2023 at 10:53:40 PM UTC-5 Thomas Passin wrote:
>
>> I created a new virtual machine for a Linux distro new to me - Manjaro.  
>> Although pyenchant is installed, and the system's package manager claims 
>> that the Enchant libraries are installed, they aren't playing together.
>>
>> I installed Leo but it won't start because pyenchant isn't working.  I 
>> don't think the error messages will be helpful, but here are the last few 
>> lines:
>>
>> File "/home/tom/.local/lib/python3.10/site-packages/enchant/__init__.py", 
>> line 287, in _request_dict_data
>> self._raise_error(e_str % (tag,), DictNotFoundError)
>>
>>   File 
>> "/home/tom/.local/lib/python3.10/site-packages/enchant/__init__.py", line 
>> 233, in _raise_error
>> raise eclass(default)
>>
>> enchant.errors.DictNotFoundError: Dictionary for language 'en_US' could 
>> not be found
>> Please check https://pyenchant.github.io/pyenchant/ for details
>>
>> I don't think that the problem is really that the en_US dictionary can't 
>> be found, because of other errors when I import pyenchant into a Python 
>> REPL session.  It imports but then can't actually run various functions.
>>
>> I looked in the pyenchant web site, and found that it can be tricky to 
>> get the right version of the pyenchant working with the versions of the 
>> enchant binaries that  might have been compiled for your machine 
>> (especially on Windows, and yes, I know this case is Linux).
>>
>> I can't find a setting to allow Leo to skip loading the spellchecker.  I 
>> have looked in LeoSettings.leo and myLeoSettings, and searched through 
>> pyLeoRef without hitting on one.  It seems to me that I remember such a 
>> setting, but I haven't been able to find it.
>>
>> If there is not such a setting, I think there should be one.  It doesn't 
>> make sense for Leo to be unable to run because of a problem with the 
>> pyenchant system.
>>
>> Does anyone have some insight here?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1664a5d6-45fe-4e80-922f-37e13c5ce5ebn%40googlegroups.com.


Re: macos 10.13 - leo 6.7.0 with miniconda

2022-10-15 Thread lewis
With a set of tabs open, if you Right-click over the active Tab there is a 
menu of:



*New OutlineDetachHorizontal tileVertical tile*

I expected the Horizontal tile, or Vertical tile command to cascade 
outlines, but it separates one outline at a time.
I'm not sure of the Right-click menu source.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/84faa650-e64f-416e-aac5-f4c35768bc1bn%40googlegroups.com.


Re: Please test Leo's pylint command in devel

2022-04-08 Thread lewis
I tested with a large file - running pylint on leoGlobals.py gives lots of 
output.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/24ed129f-ed2e-4dbb-90b6-0a6f1365d08cn%40googlegroups.com.


Re: Please test Leo's pylint command in devel

2022-04-08 Thread lewis
Thanks for the tip.
I ran pylint on an @clean node with a line  *g.es_print(" ")*  which caused 
pylint to give some output. 
That line shows as a UNL link in the log pane:




*pylint: asknames.py* Module asknamesN:\leo\asknames.py:21:0: 
E0602: Undefined variable 'g' (undefined-variable)pylint finished*


On Saturday, April 9, 2022 at 11:33:38 AM UTC+10 tbp1...@gmail.com wrote:

> You have to run it on an external file tree - @file or @clean.  The 
> message is saying that that the routine couldn't find an external file 
> looking upwards through the tree.
>
> On Friday, April 8, 2022 at 9:02:10 PM UTC-4 lewis wrote:
>
>> I have pylint 2.13.5 installed with pip.
>> Right-click over a node and selecting Run Pylint gives message:
>> *pylint: no files found*
>>
>> Alt-x pylint command gives same message.
>>
>> Is there any setup required to use pylint in Leo?
>>
>>
>>
>>
>> *Leo Log WindowLeo 6.6.1-devel, devel branch, build 4bdce3ef48Python 
>> 3.10.4, PyQt version 6.2.4Windows 10 AMD64 (build 10.0.19042) SP0*
>>
>> On Saturday, April 9, 2022 at 1:18:50 AM UTC+10 Edward K. Ream wrote:
>>
>>> Thomas and I have been investigating #2586 
>>> <https://github.com/leo-editor/leo-editor/issues/2586>. Everything 
>>> works for me, but Thomas only gets output from the pylint command if he 
>>> sets wait = True in the node:
>>>
>>> "class BackgroundProcessManager" in leoBackground.py.
>>>
>>> This is all the more mysterious since (I think) we are both testing on 
>>> Windows machines.
>>>
>>> I would appreciate any feedback about whether you see pylint output, on 
>>> whatever platform you like.  Thanks!
>>>
>>> Edward
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/33799ed4-5985-4007-89d1-a9ab96b63edcn%40googlegroups.com.


Re: Please test Leo's pylint command in devel

2022-04-08 Thread lewis
I have pylint 2.13.5 installed with pip.
Right-click over a node and selecting Run Pylint gives message:
*pylint: no files found*

Alt-x pylint command gives same message.

Is there any setup required to use pylint in Leo?




*Leo Log WindowLeo 6.6.1-devel, devel branch, build 4bdce3ef48Python 
3.10.4, PyQt version 6.2.4Windows 10 AMD64 (build 10.0.19042) SP0*

On Saturday, April 9, 2022 at 1:18:50 AM UTC+10 Edward K. Ream wrote:

> Thomas and I have been investigating #2586 
> . Everything works 
> for me, but Thomas only gets output from the pylint command if he sets wait 
> = True in the node:
>
> "class BackgroundProcessManager" in leoBackground.py.
>
> This is all the more mysterious since (I think) we are both testing on 
> Windows machines.
>
> I would appreciate any feedback about whether you see pylint output, on 
> whatever platform you like.  Thanks!
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/63db340f-2fa5-4ccc-b890-81c56850e72an%40googlegroups.com.


Re: PR 2393 creates leo.plugins.remove_duplicate_pictures

2022-01-29 Thread lewis
Running externally works fine. However running in Leo as a script there are 
3 issues.
Quit button does not work.
A single file is reported as a duplicate.
With a single file - if you rerun the script the number of duplicate files 
reported increments by 1.

Regards
Lewis
On Saturday, January 29, 2022 at 10:32:04 PM UTC+11 Edward K. Ream wrote:

> On Fri, Jan 28, 2022 at 7:55 PM lewis  wrote:
>
>> Docstring needs updating
>>
>
> Thanks for this report.
>
> Rev .31f45a5 in devel changes the docstring in three places and removes 
> the unused 'c' positional arg from the run method.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/eaf10083-8790-471e-9f18-08f6ca0941e9n%40googlegroups.com.


Re: PR 2393 creates leo.plugins.remove_duplicate_pictures

2022-01-28 Thread lewis
Docstring needs updating - change line15 (and 19) from:
python -m leo.plugins.remove_duplicate_slides
to:
python -m leo.plugins.remove_duplicate_pictures


On Thursday, January 27, 2022 at 11:59:55 PM UTC+11 Edward K. Ream wrote:

> PR #2393  has been 
> merged into devel. This PR adds a program (nominally a plugin) that removes 
> duplicate pictures from a directory and its subdirectories. There is no 
> need ever to enable this plugin.
>
> To execute:  python -m leo.plugins.remove_duplicate_pictures 
>
> The -h argument will show all options. Imo, there is no need for more. 
>
> See the docstring for a list of required third-party packages.
>
> Please report any bugs. I do not plan to add any enhancements. 
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/25a60bc7-fa06-45b0-95f7-b6c1065702b7n%40googlegroups.com.


Re: Call on all Leonistas! Please help get this feature by simply upvoting! thanks!

2022-01-24 Thread lewis
There's still a few more votes needed. Please visit the page above and give 
the issue a +1/"" 

Thanks
Lewis
On Sunday, January 23, 2022 at 3:01:49 PM UTC+11 Félix wrote:

> Please help the Edward and Myself in the development of LeoInteg and LeoJs 
> by visiting this issue page: 
>
> https://github.com/microsoft/vscode/issues/136927#issuecomment-1019399147
>
> And once at that page please give the issue I raised a +1/"" reaction so 
> that this feature gets added, enabling the *LeoInteg and LeoJs* 
> Developers can add automatic text wrapping with the @wrap directive to 
> match Leo's ffunctionality :)
>
> Thanks a lot guys!!! 
>
> Félix
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1781194d-921c-471a-9c3c-889ca724b7d0n%40googlegroups.com.


Re: Please Test Current Line Highlighting

2021-08-30 Thread lewis
I tested the latest tweak in another leo outline, with the *@string 
line-highlight-color *setting in myLeoSettings file and it worked fine.
Nice work.

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4d8421fc-9f9b-4f43-a7e7-8dbe7e02432cn%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-11 Thread lewis
Using both commands mmap-list and mmap-tree renders correctly with either 
setting
*@string mmap_render_dev = browser* or *@string mmap_render_dev = vr3*

However output with setting @string mmap_render_dev = freewin does not 
render as a tree. I have attached a screenshot of the rendering.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/71d49d35-a8a2-4c35-9063-b317381ea1c9n%40googlegroups.com.


Re: Please check tips at startup

2021-08-10 Thread lewis
The fix is working fine with Qt5.



*Leo 6.4-devel2, devel branch, build 5be9a9acd52021-08-10 07:13:24 
-0500Python 3.9.6, PyQt version 5.15.2Windows 10 AMD64 (build 10.0.19042) 
SP0*

Terminal shows record of Show Next Tip e.g.
*show_tips *

Lewis

On Tuesday, August 10, 2021 at 10:22:03 PM UTC+10 Edward K. Ream wrote:

> I have just fixed #2127 
> <https://github.com/leo-editor/leo-editor/issues/2127>, which caused Leo 
> to exit on startup when using Qt 6 and @bool show-tips = True.
>
> As part of the fix, there is a new guard that will prevent similar crashes 
> from ever again killing Leo.
>
> I would appreciate hearing how the code works with Qt 5.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9529292e-41f7-4676-ad48-f1cc4cab9c72n%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-08 Thread lewis
I've read your first post Progress Report - Mind Maps for Leo 
<https://groups.google.com/g/leo-editor/c/eAOvXZGK1-o/m/Nw0X2pY8AwAJ> and 
am trying to understand the difference between mmap-tree and mmap-list 
commands. It says: 
*The mind mapping system now works via a set of minibuffer commands.  You 
can put an indented list into a node and display it as a mind map.  Or you 
can display an entire subtree as a mind map.*

*One of these scripts takes an indented list in the selected node and feeds 
it to the monkey-patched script.  The other one converts a tree starting at 
the selected node to an indented list and then feeds it to the 
monkey-patched script.* 

I see how mmap-tree command works on an entitre subtree and creates the svg 
tree.
I'm not sure how mmap-list command works taking an indented list from a 
node. Can you give an example of an 'indented list' and an example of the 
output?


On Monday, August 9, 2021 at 1:41:28 PM UTC+10 tbp1...@gmail.com wrote:

> I'm not sure what you mean by rendering a list.  The mmap output would be 
> svg, not a text list.  When FW opens, it will show the svg source.  When 
> the render toggle is pressed, it should show the diagram, or possibly 
> something indecipherable if the fallback widget is being used, but I don't 
> know how it could show a "list".
>
> Maybe you mean something different than I am thinking of.  Would you 
> please post a screen shot of the FW rendered output?
>
> There is a setting to force FW to use the fallback rendering widget.  The 
> advantage is that the F9 and F7 keys work the same as they do when the 
> Zettlekasten commands are installed.  The disadvantage is that that widget 
> can't render svg diagrams or other complex html.  The default is to use the 
> normal widget, which can render svg diagrams.  The setting is @string 
> fw-render-pane. You can only get the fallback widget if the value of the 
> setting is exactly *nav-view*.
>
> FW would also have been affected by not having the PyQtWebEngine, but I 
> assume you tested FW after installing it.  One thing to remember is that 
> after making a change to a mmap setting, then in the outline you want to 
> work in, all settings must be reloaded *and* the mmap-monkeypatch command 
> must be run - or Leo must be restarted.  I may be able to simplify that in 
> the future, we'll see...
>
> Oh yes, and thank you for doing this testing and for your patience!
> On Sunday, August 8, 2021 at 10:40:21 PM UTC-4 lewis wrote:
>
>> Installing PyQtWebEngine fixed the problem. Thanks for the tip.
>> The rendering works well for both browser and vr3.
>>
>> However with setting *@string mmap_render_dev = freewin*
>> the freewin window launches but pressing the [Rendered<-->Plain] toggle 
>> renders a list not a tree. This behavior occurs on 2 machines.
>>
>> Regards
>> Lewis
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9783a366-ef56-46e8-b2f2-c35a24d783c1n%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-08 Thread lewis
Installing PyQtWebEngine fixed the problem. Thanks for the tip.
The rendering works well for both browser and vr3.

However with setting *@string mmap_render_dev = freewin*
the freewin window launches but pressing the [Rendered<-->Plain] toggle 
renders a list not a tree. This behavior occurs on 2 machines.

Regards
Lewis


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a16128a7-7a09-4278-bc32-973cfa2bcb48n%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-08 Thread lewis


> Mostly I'm interested in what's going on with VR3 and those error messages.
>

I disabled myLeoSettings and used the default leoSettings.leo to rule out 
any custom settings. The @command scripts are in the local outline and at 
the same level as @commands, @string mmap_render_dev = vr3
I ran mmap-tree and get:

























*Leo Log WindowLeo 6.4-devel2, devel branch, build 27d3615ab22021-08-03 
16:08:35 -0500Python 3.9.6, PyQt version 5.15.2Windows 10 AMD64 (build 
10.0.19042) SP0read outline in 0.03 secondsunexpected exception in 
g.getScriptTraceback (most recent call last):  File 
"N:\git\leo-editor\leo\core\leoGlobals.py", line 7429, in getScripts = 
g.extractExecutableString(c, p, s)  File 
"N:\git\leo-editor\leo\core\leoGlobals.py", line 7477, in 
extractExecutableStringlanguage = g.scanForAtLanguage(c, p)  File 
"N:\git\leo-editor\leo\core\leoGlobals.py", line 3522, in 
scanForAtLanguagefor p in p.self_and_parents(copy=False):  File 
"N:\git\leo-editor\leo\core\leoNodes.py", line 527, in self_and_parents
p = p.copy()  File "N:\git\leo-editor\leo\core\leoNodes.py", line 1414, in 
copyreturn Position(self.v, self._childIndex, 
self.stack)RecursionError: maximum recursion depth exceeded*
[end]

And with the @command scripts as children of @commands node, here are error 
messages : 


















*VR3 stylesheet: 
N:/git/leo-editor/leo/plugins/viewrendered3/vr3_rst.cssTraceback (most 
recent call last):  File "N:\git\leo-editor\leo\core\leoCommands.py", line 
2203, in doCommandreturn_value = command_func(event)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1242, in 
update_rendering_panevr3.update(tag='view', keywords={'c': c, 'force': 
True})  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1908, 
in updatef(_tree, keywords)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 2753, in 
update_rstself.set_html(h, w)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 3649, in set_html
w.setHtml(s, url_base)TypeError: setHtml(self, str): too many arguments*
[end]

Hope it helps
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b4b31346-4466-461c-ba6f-341e3c83f30an%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-06 Thread lewis
Hi Thomas,
I have the @command scripts in myLeoSettings.leo not in a separate outline.
If I move the @command scripts up to the same level as @commands, running 
mmap-tree causes Leo to crash with no console messages.
The crash also occurred with headline @string mmap_render_dev = freewin and 
= browser. I confirmed this several times.

This matches leoSettings.leo>\@commands node which states:
"Denotes the tree containing active @command nodes. @command nodes outside 
this tree are ignored."

I will retest with the @command scripts in the separate outline and let you 
know. 
On Friday, August 6, 2021 at 10:31:46 PM UTC+10 tbp1...@gmail.com wrote:

> Thanks for the feedback.
>
> On Friday, August 6, 2021 at 5:48:42 AM UTC-4 lewis wrote:
>
>> Tried out the Mindmap scripts and they are excellent! Thanks for all the 
>> work.
>>
>
> : )
>  
>
>> I have not used @commands before so it took me a while to realise the 3 
>> scripts had to be children of the @commands node. It may help users if this 
>> is made clear in README>The Commands.
>>
>
> That's odd, because I have quite a few @command nodes that are not under 
> an @commands parent.  In fact, I even have an *@string* setting mixed in 
> with the mind map commands under @commands, and that works.  The commands I 
> have that are not under an @commands node are in a separate outline, not 
> *myLeoSettings.leo*.  I wonder if that makes a difference.  Maybe someone 
> who knows more can tell us the facts here. 
>  
>
>> Running the mmap-tree command worked and created the @clean mmap.html 
>> node. I'm not sure this is actually a problem with the Mindmap script but I 
>> get this error in the log pane:
>>
>
> That seems to be an error with Viewrendered3.  I haven't seen it before 
> (I'm its developer).  My version of Leo is the same as yours:
>
> Leo 6.4-devel2, devel branch, build 27d3615ab2
> 2021-08-03 16:08:35 -0500
> Python 3.9.5, PyQt version 5.15.2
> Windows 10 AMD64 (build 10.0.19043) 
>
> It seems very unlikely that Python 3.9.5 vs 3.9.6 or the minor Windows 
> version could be a factor.  Have you gotten this error any other time with 
> VR3?  If you run the mind map command again, do you get it again?  Do you 
> get it if you make a mind map on a different node?  I just made several 
> mind maps using VR3 for the output and did not get any errors.
>
> Would you do me a favor?  Enable the Freewin plugin, and add a new setting 
> with headline *@string mmap_render_dev = freewin.  *This could be in an 
> outline or in myLeoSettings.leo.  Reload settings.  Then make a mind map on 
> the same node as before.  The output will open in Freewin instead of VR3.  
> Post here whether you get any errors doing it that way.
>
> If you wanted to make one more test for me, you could change the setting 
> to *browser* and again see if you get an error making the mind map.
>  
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Leo Log WindowLeo 6.4-devel2, devel branch, build 27d3615ab22021-08-03 
>> 16:08:35 -0500Python 3.9.6, PyQt version 5.15.2Windows 10 AMD64 (build 
>> 10.0.19042) SP0read outline in 3.24 secondsVR3 stylesheet: 
>> N:/git/leo-editor/leo/plugins/viewrendered3/vr3_rst.cssTraceback (most 
>> recent call last):  File "N:\git\leo-editor\leo\core\leoCommands.py", line 
>> 2203, in doCommandreturn_value = command_func(event)  File 
>> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1242, in 
>> update_rendering_panevr3.update(tag='view', keywords={'c': c, 'force': 
>> True})  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1908, 
>> in updatef(_tree, keywords)  File 
>> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 2753, in 
>> update_rstself.set_html(h, w)  File 
>> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 3649, in 
>> set_htmlw.setHtml(s, url_base)TypeError: setHtml(self, str): too many 
>> arguments*
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5e665251-7630-4dbe-9d96-edb6b9be2850n%40googlegroups.com.


Re: Mind Maps For Leo Now Available

2021-08-06 Thread lewis
Tried out the Mindmap scripts and they are excellent! Thanks for all the 
work.

I have not used @commands before so it took me a while to realise the 3 
scripts had to be children of the @commands node. It may help users if this 
is made clear in README>The Commands.

Running the mmap-tree command worked and created the @clean mmap.html node. 
I'm not sure this is actually a problem with the Mindmap script but I get 
this error in the log pane:


























*Leo Log WindowLeo 6.4-devel2, devel branch, build 27d3615ab22021-08-03 
16:08:35 -0500Python 3.9.6, PyQt version 5.15.2Windows 10 AMD64 (build 
10.0.19042) SP0read outline in 3.24 secondsVR3 stylesheet: 
N:/git/leo-editor/leo/plugins/viewrendered3/vr3_rst.cssTraceback (most 
recent call last):  File "N:\git\leo-editor\leo\core\leoCommands.py", line 
2203, in doCommandreturn_value = command_func(event)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1242, in 
update_rendering_panevr3.update(tag='view', keywords={'c': c, 'force': 
True})  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1908, 
in updatef(_tree, keywords)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 2753, in 
update_rstself.set_html(h, w)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 3649, in 
set_htmlw.setHtml(s, url_base)TypeError: setHtml(self, str): too many 
arguments*

Regards
Lewis
On Wednesday, August 4, 2021 at 11:45:39 AM UTC+10 tbp1...@gmail.com wrote:

> The Mind mapping commands are now available in scripts.leo, in this 
> afternoon's commit of Leo's *devel* branch on GitHub.  The three scripts 
> are in the new *Mind Maps* node, plus a README that tells how to use them.
>
> A node that contains an indented list can be turned into a mind map.  The 
> subtree headed by a selected node can be displayed as a depth-2 mind map.
>
> The mind maps are in the form of SVG diagrams, and can be displayed by the 
> Viewrendered3 or Freewin plugins, or by the system web browser.
>
> Give it a try.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8e4f1298-f2ac-4cb9-9450-55cd49fffcaan%40googlegroups.com.


Re: Find feature in Plugins> viewrendered3> About

2020-11-17 Thread lewis
Found a way :)
>From the window menu select *Export* which displays content in a browser 
tab named .

This is obliquely mentioned in point 11. Export the rendered node or 
subtree to the system browser;

On Wednesday, November 18, 2020 at 6:30:32 PM UTC+11 lewis wrote:

>
> After Plugins> viewrendered3> About, is there a way to search the content 
> in the Leo rendered window?
> The vr3 guide is quite large and a Find function would be very helpful.
>
> Regards
> Lewis
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/19671352-a5d6-4c43-bb70-853549234d79n%40googlegroups.com.


Find feature in Plugins> viewrendered3> About

2020-11-17 Thread lewis

After Plugins> viewrendered3> About, is there a way to search the content 
in the Leo rendered window?
The vr3 guide is quite large and a Find function would be very helpful.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f9ceb0fb-da1b-4fca-8325-7f453b288270n%40googlegroups.com.


Re: LeoWapp: Leo in a browser?

2020-10-15 Thread lewis
The new command  *restart-leo*   works when running LeoWapp.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f859febf-b049-4ae7-b673-01da1c4e024en%40googlegroups.com.


Re: Discuss: drop support for Qt docks?

2020-09-16 Thread lewis
Running no-docks branch




*Leo Log WindowLeo 6.3-devel, no-docks branch, build 8cf77079032020-09-16 
09:30:06 -0500Python 3.8.5, PyQt version 5.15.1Windows 10 AMD64 (build 
10.0.18362) SP0*

When I right click on the split-line > openWindow> Viewrendered3
The floating window launches but content area is blank, and I get this 
error:










*hook failed: select2, >, Traceback (most recent call last):  File 
"N:\git\leo-editor\leo\core\leoPlugins.py", line 322, in 
callTagHandlerresult = handler(tag, keywords)  File 
"N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1495, in updatedock 
= pc.leo_dock or pcAttributeError: 'ViewRenderedController3' object has no 
attribute 'leo_dock'*

Lewis

On Thursday, September 17, 2020 at 12:25:42 AM UTC+10 Edward K. Ream wrote:

> On Wednesday, September 16, 2020 at 6:51:44 AM UTC-5, Edward K. Ream wrote:
>
> > I won't merge this branch into devel until October 11, at the earliest.
>
> I am considering merging the no-docks branch into devel this coming 
> Friday. This will improve testing.
>
> There is little risk: `git checkout 96f2826` is always available to get 
> the old code.
>
> Does anyone have any problems with this plan?
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8a94adbf-f1fd-4d6d-ac2c-0e76b1fcb8e9n%40googlegroups.com.


Re: Discuss: drop support for Qt docks?

2020-09-15 Thread lewis
I only use docks for vr3 panes and would not miss the docks features. The 
vr3 commands are quite sufficient.
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d1cd72a0-3c85-4efb-83d6-24e4ea32da75n%40googlegroups.com.


Re: The docks3 branch is ready for testing

2020-09-15 Thread lewis
The only time I use docks is to have upon launch, a vr3 rendered pane, on 
the RHS of body pane. I have similar frustrations with retaining a stable 
layout so no complaints from me if docks is dropped.
I can simply use vr3 and vr3-toggle commands.

Regards
lewis

On Tuesday, September 15, 2020 at 5:15:56 PM UTC+10 vitalije wrote:

Can anyone who uses docks and prefer docks explain me what are the benefits 
of using docks? Perhaps I miss something and I am not using them correctly.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ce59aaee-4588-4742-b9a8-da5194c5b1aen%40googlegroups.com.


Re: Easier docks: status report

2020-09-06 Thread lewis
Ran commit a10998 with --use-docks option which gave a different layout 
than last saved. All docks were fixed and I was unable to be update the 
layout.
I had to run  --init-docks to enable the layout to be updated.

Regards
Lewis

On Monday, September 7, 2020 at 5:41:42 AM UTC+10 Edward K. Ream wrote:

> On Sunday, September 6, 2020 at 12:04:12 PM UTC-5, Edward K. Ream wrote:
>
> 1: --use-docks will imply --global-docks.
>> 2: --global-docks will imply --use-docks, as at present.
>> 3: --global-docks will be deprecated, with a warning message.
>>
>
> The new code is in devel.  Please test it and report any problems.
>
> *Notes*
>
> --init-docks also implies --use-docks. This should have been done long ago.
>
> I have not found any need to clear caches.  Just use --use-docks to set up 
> your layout.
>
> I have just closed #1643 
> <https://github.com/leo-editor/leo-editor/issues/1643>.  Please reopen if 
> you find problems.
>
> Edward
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d83a2e10-e5d2-40a5-8c39-475b873c69c4n%40googlegroups.com.


Re: view-rendered plugin and mermaid.js

2020-08-13 Thread lewis
There is a setting in LeoSettings :

*@bool use-vr-dock = False*
*  True: The VR dock is (can be) moved.*
*  False: (Recommended) The VR dock splits the body dock.*

*  *Warning*: You may have to clear caches if you change this setting.*

Add that setting to your myLeoSettings file, set to True. You will then be 
able to drag and detach the VR3 pane.

Regards
Lewis


On Friday, August 14, 2020 at 9:01:56 AM UTC+10, k-hen wrote:
>
> This worked!  I was able to get it for a new test file  BUT the 
> original file has VR3 docked *inside* the body and I can't seem to detach 
> it.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f290e3fb-4686-42bf-a5b8-7208a42827e4o%40googlegroups.com.


Delete a Tab from the Tabs pane?

2020-07-13 Thread lewis
I am creating a new Tab using:

*c.frame.log.selectTab('Results')# Create Tab 'Results'*

Once the output has been sent to the new Tab, I can clear the contents 
using:
*c.frame.log.clearTab('Results')*

Is there a command to delete the Tab from the Tabs pane?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6f69711b-0007-481b-a7ca-38dba855ddfao%40googlegroups.com.


Help with c.doCommandByName

2020-05-28 Thread lewis

Using the keys branch ( #1596 
<https://github.com/leo-editor/leo-editor/issues/1596#> ), I changed some 
@buttons to use the new c.doCommandByName and received error:


*TypeError: doCommandByName() missing 1 required positional argument: 
'event'only 0 lines*

Edward explained that:
 c.doCommandByName takes two arguments.
 c.executeMinibufferCommand takes only one. 
There is no need to change your calls to c.executeMinibufferCommand.


So I am trying to understand how args work. I have tried to get the command 
to have 2 arguments but ignore or have arg2 empty.
The @button has:
c.doCommandByName('move-outline-right', event=None)

Not being an expert, it gives error:
*AttributeError: 'NoneType' object has no attribute 'get'*

Once I have that working, an example of how I could use arg2 would be 
appreciated.

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/89a89fae-09eb-4ee6-92be-58f6ad0b7054%40googlegroups.com.


Re: iLeo not working

2020-05-20 Thread lewis
launchleo.py --ipython
is working again with ipython version 7.14.0, and QtConsole version 4.7.4





*Leo Log WindowLeo 6.3-devel, devel branch, build e7f2e02cc62020-05-18 
06:55:35 -0500Python 3.8.2, PyQt version 5.14.2Windows 10 AMD64 (build 
10.0.18362) SP0*

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b5d95de4-795c-4759-a80c-aeeb67ae41fa%40googlegroups.com.


Re: a portable Leo.exe, maybe

2020-05-07 Thread lewis
Hi Matt,

This worked fine for me with no errors or hiccups at all on a Windows 10 
machine.
In log pane it reported python 3.6.10

A fine success :)

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/679a6141-66e7-4775-bd0f-7b66374d7a86%40googlegroups.com.


Re: Query about promote-child-bodies script

2020-04-19 Thread lewis
Hi Vitalije,

Before your reply I had been looking at the leo files in Scite and noticed 
when nodes are created with script to convert lines to nodes, a linefeed is 
added before the , but the last node does not have a line feed before 
  (see body text G, H):


http://leoeditor.com/namespaces/leo-python-editor/1.1; 
>





CSV NEW
CSV NEW
LineNumber 0
LineNumber 1
LineNumber 2
LineNumber 3



A, B,
C, D
E, F
G, H

A, B,

C, D

E, F

G, H



Whereas if I create a new node using  insert-node command, the 
treatment is only to add the 
[snip]
E, F

G, H
I, J



It is this difference which causes the promote-child-bodies script to copy 
the body text back without linefeeds. Would it be more consistent for a 
linefeed to precede  always? Why is the last line treated differently?
I am not an expert at all on linefeed terminology so apologies if this is a 
poor suggestion.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1a4dbc5b-df61-4aeb-8b94-fcd76ae42532%40googlegroups.com.


Re: Query about promote-child-bodies script

2020-04-18 Thread lewis
Using 
p.b = '\n'.join(result)

Here is the output result:

"Model", "C1", "C2", "C3"

"CSM1", 30, 40, 50

"CSM2", 30, 45, 60
"CSM3", 30, 55, 70


Which as expected adds an extra leading newline between the text for each 
node. Except in the case of the last node which I added manually, by 
 insert-node command.
Note that it is the *different behaviour of the manually added nodes* which 
I can't explain.

Regards
Lewis

On Saturday, April 18, 2020 at 11:10:04 PM UTC+10, Thomas Passin wrote:
>
>
> You need to include the separators you want, in this case a newline:
>
> p.b = '\n'.join(result)
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a1212a54-69a6-4c69-90e7-cc3b23584b8e%40googlegroups.com.


Query about promote-child-bodies script

2020-04-18 Thread lewis
After using a leo script_A to convert a list of lines into separate nodes 
for each line of p.b.
I have a script_B that reads child nodes, and copies all the body text 
lines back to the parent. It is based on @button promote-child-bodies, from 
LeoDocs.

result = [p.b]
b = c.undoer.beforeChangeNodeContents(p)
for child in p.children():
result.append(f'{child.b}' )# copy body only
p.b = ''.join(result)
c.undoer.afterChangeNodeContents(p,'promote-child-bodies',b)


Here is a sample of CSV to which I apply the script_A, creating 3 nodes

"Model", "C1", "C2", "C3"
"CSM1", 20, 40, 50
"CSM2", 30, 45, 60


After manually adding a fourth node, containing body text: "CSM3", 40, 55, 
70
I run script_B which reads the new node and adds the new body text but it 
is not on a new line.

"Model", "C1", "C2", "C3"
"CSM1", 20, 40, 50
"CSM2", 30, 45, 60"CSM3", 40, 55, 70

Is it possible that when the nodes are created with script_A, hidden 
characters are added? I tried using show-invisibles but I only see spaces. 
Using /n adds new blank lines between all and is not suitable.
Any ideas on how to move it to the next line?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d09fa220-2eef-4119-ae7e-86aed94ef248%40googlegroups.com.


Re: Leo command line options are ignored

2020-04-12 Thread lewis
I have installed leo with Git. The issue of command line options first came 
up when I had multiple python versions installed.

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a6fec414-9050-4038-ae97-b64c49f2632a%40googlegroups.com.


Re: Leo command line options are ignored

2020-04-12 Thread lewis
Thanks all. Fixed with a registry edit.

Lewis

>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5f53ec28-805e-4722-88b7-2eebf01d7ecf%40googlegroups.com.


Leo command line options are ignored

2020-04-11 Thread lewis
I have a windows PC where command line options for Leo are ignored. If I 
start leo with

*launchleo.py --no-splash*

leo starts and splash screen still appears.

Same occurs with
*launchleo.py --gui=console*

where Leo starts with PyQt5 gui, not the console gui as expected. This is 
not related to any recent build of Leo.
Has anyone any idea how to fix this?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5d026f89-7a10-49d7-86bb-a496f3b32c26%40googlegroups.com.


Re: Viewrendered3 Read For Beta Testing

2020-03-28 Thread lewis
I do have nbformat installed.
Since build eb6f4ec070 I get this in console log:
--
Empty setting name in False
set parent @settings
Leo 6.3-devel, devel branch, build eb6f4ec070
2020-03-28 18:58:09 -0500
VR3: *** No Markdown ***
VR3: *** No nbformat
[snip]

However I do not get that message in Leo's log pane. Why are there extra 
messages in the console log about Markdown and nbformat?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c96031c3-5d4a-4527-a260-5b8a908d22cd%40googlegroups.com.


Re: Leo for organizing notes?

2020-01-19 Thread lewis
Hello Andy,

Re: My project, which will undoubtedly take a couple of years, is to class 
and organize all notes into a "thoughtbase"

I have attached a simple small file which demonstrates the power of Leo 
clones. It is a list which uses clones to organise and classify items.
One way I use Leo-editor is to manage material lists for engineering. You 
can see it can be easily adapted to manage any list and operate as a 
database.
There is no need to have the Master list of cloned items; I only use that 
for convenience.

Under the settings there is a node (@button Show-Clones) which presents 
Leo's *show-clones* command in a simple to use menu button.
Select any cloned item and press the Show-Clones menu button. The log pane 
will show clickable links!
In effect this is a 'Where Used' report from the data.

You can use clones as attributes of an item or Topic, and may be well 
suited to your task of organising main headings, and any number of 
sub-headings.

I am not a programmer either, but via Leo and the community I have learnt 
how to write python scripts and also simple external python programs.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5b4d07b3-dbb7-4277-ba79-a09cbd1297c6%40googlegroups.com.


DB_sample.leo
Description: Binary data


Re: Matt: distribute leoAst separately?

2020-01-10 Thread lewis
Using LeoAst.py may be suitable as it will appear in a pypi search for Ast 
or Leo. 

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2028fdfb-0db1-4328-bcd3-5511d2f0445f%40googlegroups.com.


Re: Lewis Neal: pylint reports two undefined symbols in mod_http.py

2019-12-09 Thread lewis
Just had a chance to look at the code and I did make changes to the method:
def do_POST(self):

The 2 lines shown are part of the changes I made.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4c5359c4-a475-4bef-9fef-958a64c30ab5%40googlegroups.com.


Re: How to count chatacters?

2019-12-08 Thread lewis
This prints the headline, and then prints body character count. Note - a 
newline is counted as a character.

g.es_print(p.h, len(p.b))

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6bea3901-46ad-4eda-8cc0-a56153e33a14%40googlegroups.com.


Re: Lewis Neal: pylint reports two undefined symbols in mod_http.py

2019-12-08 Thread lewis
I know nothing about the pylint complaints. I did not use use pylint or any 
other code check process on mod_http plugin changes.
This tells you something about my coding skills :) I did the minimum to get 
the plugin working again.

It's completely new to me but I'm happy to try using pylint and understand 
what the messages mean. 

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d29aa535-a2c8-4e46-a34a-93a1eba55b49%40googlegroups.com.


Re: Anyone using the pyzo_in_leo plugin?

2019-10-07 Thread lewis
I'm using pyzo_in_leo only to see how useful it can be.
It uses a lot of screen area in Leo; pyzo docks have minimum size, so you 
can't drag them to very narrow space. At least you can toggle pyzo docks 
on/off if you like. This is one reason think it's good to retain the 
python_terminal plugin for now.

With pyzo_in_leo active, several times I have observed a bug where the 
outline column goes blank, but is still functioning. You can arrow up/down 
but the headline text is invisible.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/fd5c2689-dc95-4418-9512-c91e78d8aaa5%40googlegroups.com.


Re: Discuss: is it time to retire the python_terminal plugin?

2019-10-01 Thread lewis
I haven't kept up to date with how pyzo features are available in Leo.
Pyzo is installed and the pyzo_in_leo.py plugin is enabled but from the 
Plugins menu no pyzo plugin or information is available.

LeoDocs currently has no mention of pyzo plugin. Are there any guides on 
how to use Pyzo shells? 

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5f41788c-f59e-4331-8531-7c656da12d6b%40googlegroups.com.


Re: leo_in_pyzo plugin is ready for testing

2019-09-30 Thread lewis
I'm sure you meant *pyzo_in_leo* plugin :)

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3fef75c9-0d78-432a-986e-478fd977705e%40googlegroups.com.


Re: leo 6.1 user expirience issues

2019-09-21 Thread lewis
I was able to move my Render pane around for a preferred layout, but 
recently it has become fixed at the bottom edge.
What setting do I need to change to allow movement?

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/654188fd-8b0a-46e6-8a11-08b5018c46a0%40googlegroups.com.


Re: Identity a node, read it's data

2019-08-22 Thread lewis
Thanks Vitalije, I'll try and apply that to what I would like to do :)

For example say I have 3 nodes in a leo file:

node_A (containing data e.g. CSV)
node_B
node_C

I would like to write:
script in node_B to edit/write data in node_A
script in node_C to analyse and report on the data in node_A

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e72c962f-b5d3-48dd-8cea-9374147a0a90%40googlegroups.com.


Identity a node, read it's data

2019-08-22 Thread lewis
Leo docs describe Global Node Index (gnx) as giving each node a unique, 
immutable identity.

I have a few questions.
1. How do you find the gnx identity of a node?
2. Once you know the gnx of a node, can a script be directed to read the 
data in that node?

I get the impression gnx's are related to external files, or clones. 
Whereas I am looking for a simple way to identify a node and read it's data.

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7b43a124-0407-4c61-af85-e6896910c4b4%40googlegroups.com.


Re: Two birthday stories on my 70th birthday

2019-08-15 Thread lewis
Congratulations on your birthday, I hope all the family enjoys the 
celebrations.
Thank you for Leo, it is a great place to learn, both in the community and 
the editor. I look forward to new projects and it's continuing evolution.

I always enjoy stories about your brother Speed, even though they only 
offer glimpses of his knowledge :) 

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d7615873-a905-4ebe-8ff7-52fd5da2bd63%40googlegroups.com.


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

2019-07-28 Thread lewis
Pycryptodome is the fork for the deprecated Pycrypto package.
With pycryptodome installed, the Stickynote encryption commands are active; 
the GUI loads and asks you to enter a key.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b7ca16cb-6515-4bef-a646-83309f11ace4%40googlegroups.com.


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

2019-07-27 Thread lewis
I haven't been able to get the *stickynoteenc* command working. Tabula 
plugin states:
'Encrypted mode requires the python-crypto module.' Can anyone confirm 
which module this is or if the name is correct?
I installed cryptography package - https://github.com/pyca/cryptography

Running the *stickynoteenc* command on an empty node only switches to the 
Completion Tab, but there are no log/error messages.

Maybe other users have had some success?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/93f01dee-5f2c-4db9-96c3-6661743dd81f%40googlegroups.com.


mime plugin query

2019-07-18 Thread lewis
I am trying to get the @mime plugin working. I have *example.pdf* file 
located in N:\leo folder.

My leo file has a node [no body text]:
@mime >@path example.pdf
 
Right-click over the node and observe 2 options:
*Create dir C:\Users\lewis\*
*OneDrive...\example.pdfOpen C:\Users\lewis\**OneDrive...\example.pdf*

The create option is un-documented, and unexpected, but is working :) 
  Select Create and the directory is created. Once the directory is 
created, the option no longer appears.
  However if I select Open, leo hard crashes with message '...cannot find 
the file specified...' See #1257 
<https://github.com/leo-editor/leo-editor/issues/1257>

Why does the path resolve to C:\Users\lewis\OneDrive and not to N:\leo?
In myLeoSettings there are no references at all to C:\Users\lewis\OneDrive. 
Under @settings>Files and Directories I have:
@string initial-chooser-directory = N:\leo
@string relative-path-base-directory = N:\leo

I welcome help from any users of the mime plugin.

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/32ebf6e6-0a4f-4f27-bc15-f1f57d7d31ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Lewis, please run another script

2019-06-23 Thread lewis
I think Rob Keeney reported similar results in the console. 
<https://groups.google.com/forum/?fromgroups=#!topic/leo-editor/vxh06wJlLRY>
It may be worth getting an update from him.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/624b451d-ee7a-4b53-b17a-60a3cbc11ffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Usage of Leo plus mod_http plugin?

2019-06-23 Thread lewis
And now that I have read the docstring, it obviously does more than 'read 
only' :)

On Sunday, June 23, 2019 at 7:46:27 PM UTC+10, lewis wrote:
>
>  I wasn't aware it offered anything more than 'Read Only' function.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/cf514a47-5865-4e7f-8413-cd150ce5678e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Usage of Leo plus mod_http plugin?

2019-06-23 Thread lewis
Hi Viktor,

I use the plugin occasionally as an alternative way to view Leo data from 2 
apps. I wasn't aware it offered anything more than 'Read Only' function.

I had another serious play with it today and jotted some notes:
With a page refresh your browser updates without having to save leo files. 
However a page refresh (F5) takes you back to the root node, so you have to 
re-navigate your way to the node you were focused on.

Pane/Font size - If I reduce font size to increase visible content, the 
scroll bar panes also reduce. The ratios are locked.

Browser behaviour:
Firefox browser displays the body text of local files, network files, and 
is the only browser which displays body text of files in ~home/.leo folder.
For example, Chrome and Edge do not display body text of MyLeoSettings file 
in a local ~home/.leo folder.

Using Chrome and Edge:
Local files - Headlines and body text are displayed.
Network files - Only Headlines are displayed. Body text is not displayed.

Someone more familiar with browser settings/ network access may want to 
comment further.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/fe0255c2-3e85-4c5a-a6e0-0a749eb59c94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Lewis, please run another script

2019-06-22 Thread lewis
#1209 <https://github.com/leo-editor/leo-editor/issues/1209> updated

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1121c9b8-3873-4f92-81bf-f72d5639cefe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Team Leo

2019-06-20 Thread lewis
G'day Mate ;)
Lewis
Sydney, Australia

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/233b61d8-6bd9-4514-837b-d24c8511b1a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Lewis: please run Leo with --trace=startup and report the results

2019-06-19 Thread lewis
results added at #1209

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e57c8f7c-0a58-49de-8694-1a47ae67ce2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone having troubles seeing git revs

2019-06-18 Thread lewis
Here it is:
lewis@Argon MINGW64 /n/git/leo-editor/leo/core (devel)
$ git log -n 1
commit f203a28564b0d8f8e09a2e54f74a325f00f69a88 (HEAD -> devel, 
origin/devel)
Author: Edward K. Ream 
Date:   Tue Jun 18 03:31:03 2019 -0500

Added comment about autocompleter plugins
[end]


Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0957f6c1-aaca-4a8c-bc68-7c37af88fa9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone having troubles seeing git revs

2019-06-18 Thread lewis
Can you please clarify? You want me to run 'git log -n 1' from a git 
console as shown below?

*MINGW64 /n/git/leo-editor/leo/core (devel)*
*$*

Regards
Lewis

>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a145b45f-3a57-4c1f-97ec-39f8d7c18935%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone having troubles seeing git revs

2019-06-18 Thread lewis
Running commit f203a28.
In the console:

N:\git\leo-editor>launchleo.py --trace=startup

reading settings in N:/git/leo-editor/leo/config/leoSettings.leo
reading settings in C:/Users/lewis/.leo/myLeoSettings.leo
Empty setting name in False
set parent @settings
reading settings in C:/Users/lewis/.leo/LeoBlackGraySolarized.leo
Exception in g.getGitVersion
Traceback (most recent call last):

  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 4992, in 
getGitVersion
shell=True,

  File 
"C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", 
line 395, in check_output
**kwargs).stdout

  File 
"C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", 
line 487, in run
output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command 'git log -n 1 --date=iso' returned 
non-zero exit status 1.

Exception in g.getGitVersion
Traceback (most recent call last):

  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 4992, in 
getGitVersion
shell=True,

  File 
"C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", 
line 395, in check_output
**kwargs).stdout

  File 
"C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", 
line 487, in run
output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command 'git log -n 1 --date=iso' returned 
non-zero exit status 1.

Leo 6.0-devel, devel branch
livecode.py: can not import meta
you can install meta with `pip install meta`
rss.py: can not import feedparser
load_session loading: C:/Users/lewis/.leo/workbook.leo
reading settings in C:/Users/lewis/.leo/workbook.leo
DynamicWindow.__init__ workbook.leo
restoreWindowState workbook.leo found key: 
windowState:C:/Users/lewis/.leo/workbook.leo
startup time:  3.72 sec
[end]

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3da1a488-d499-481b-9534-9e3c50e979af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone having troubles seeing git revs

2019-06-17 Thread lewis
My log for the various directories:

current dir: N:/git/leo-editor
load dir: N:/git/leo-editor/leo/core
global config dir: N:/git/leo-editor/leo/config
home dir: C:/Users/lewis

Regards
Lewis

On Tuesday, June 18, 2019 at 7:01:49 AM UTC+10, Edward K. Ream wrote:

>
> Lewis, what does your log show for the various directories? 
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f481c706-e3c7-4354-b9c2-f81b80f591c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Bookmarks plugin for docks

2019-06-12 Thread lewis
I have found Leo's Bookmarks plugin a very useful tool. With the 
introduction of docks it is no longer available unless you use the 
--no-dock option, but then you lose dock features.
Is there any prospect of there being a compatible plugin enabling a 
Bookmark panel to be inserted or merged into a dock?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/efe26a59-e291-4ac2-af2f-25d823e7a987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: parse-body command

2019-06-02 Thread lewis
I still can't get leo parse-body to split the body text into separate nodes.
Here is what I tried:
Add @language python before the body text. This inserted a child node named 
'Declarations' but the body text was not in separate nodes, only one.
Also I added @language python to the heading, with same result.
  
I am telling Leo it is python text, but am using this on non-python text. 

Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/fe9d4930-d569-4fae-b82b-f867ac9f734a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


parse-body command

2019-06-01 Thread lewis
I tried to use the parse-body command to convert lines of text into nodes. 
If I run the command on one node with body text:
line 1
line 2
line 3

The original node body becomes empty, and a single new child node is 
inserted containing the same 3 lines of text. The new child node is named 
'!Declarations'

>From LeoDocs: The parse-body command parses p.b (the body text of the 
selected node) into separate nodes.
Am I misunderstanding what the command does or is it not working correctly?

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/76727be6-02c4-4745-9840-956f057000fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   >