Re: Loading outline files at start-up

2019-12-08 Thread vitalije
If you start Leo with one or more file names then it will open only those 
files you provided. However, if you start Leo without giving any file it 
will open the files that were open last time it was closed i.e. files 
listed in ~/.leo/leo.session. So, you have two options:

   1. provide list of file names you wish to open at startup, or
   2. start Leo without file names and then open outlines you wish to be 
   open on next start and close Leo

HTH Vitalije

PS: you can also press Alt-x and then type session-restore ENTER and Leo 
will immediately load last saved session

On Sunday, December 8, 2019 at 9:54:36 PM UTC+1, John Kane wrote:
>
> A hopefully simple question from a LEO neophyte/incompetent.
> I normally use Loo for simple notes and as a place to hold bits of quoted 
> text in outline format.
> I would like to set up Leo to load 2 or 3 outline files on start–up.
> I understand that i can do this in a ~/.leo/leo.session file but so far I 
> have mucked it up. Can someone point me to an example? I think the problem 
> is that I do not know how to specify a 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/aea406c0-abc5-4e44-bef7-7bca15042b6c%40googlegroups.com.


Re: How to count chatacters?

2019-12-08 Thread Rob
Excellent, that's what I need. Thanks!

Rob...

PS Figured it would be easy...

-- 
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/abfc71f9-8586-45b9-bbee-0a3cb7f00457%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: book authoring: formatting, auto-save, auto-commit to git

2019-12-08 Thread Brian Theado
See also this thread:
https://groups.google.com/d/msg/leo-editor/1VOYPUJrNEM/ItZwstC0AwAJ. It
might be helpful related to git autocommit.

On Fri, Dec 6, 2019 at 12:36 PM Terrence-Monroe: Brannon <
thequietcen...@gmail.com> wrote:

> I found a good answer to git auto-committing:
> https://stackoverflow.com/questions/420143/making-git-auto-commit
>
> On Friday, December 6, 2019 at 9:07:34 AM UTC-8, Terrence-Monroe: Brannon
> wrote:
>>
>> Regarding book authoring:
>>
>> What formatting (rst, asciidoc) works well to make a book with Leo?
>>
>> If I want my work to be automatically auto-saved how can this be
>> achieved? Google docs automatically saves as I type (so does Evernote).
>>
>> If I want my work to be auto-committed to a git repo, how can this be
>> achieved?
>>
>> --
> 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/844f885d-0f88-4b05-b666-d02367529dc8%40googlegroups.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/CAO5X8CxgpDk0p8VH7G-r61v%2BuU9H96tbK24_4wbfq-JNRP-4wg%40mail.gmail.com.


Loading outline files at start-up

2019-12-08 Thread John Kane
 A hopefully simple question from a LEO neophyte/incompetent.
I normally use Loo for simple notes and as a place to hold bits of quoted 
text in outline format.
I would like to set up Leo to load 2 or 3 outline files on start–up.
I understand that i can do this in a ~/.leo/leo.session file but so far I 
have mucked it up. Can someone point me to an example? I think the problem 
is that I do not know how to specify a 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/d10fc103-78da-4dcc-b8d7-88b3aab1a04f%40googlegroups.com.


Re: How to count chatacters?

2019-12-08 Thread Rob
In Notepad++ for Windows, there's 'length' which provides this count (I 
think).

Rob...

-- 
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/64434898-bcc2-424b-837e-9767f3af74dc%40googlegroups.com.


How to count chatacters?

2019-12-08 Thread Rob
I see line, column and word counts in the lower left info bar. How would I 
get a character count for a node?

Rob...

-- 
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/e47c1e50-cb6f-4cce-9d9d-81008a7227d1%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.


Notes re files not being updated

2019-12-08 Thread Edward K. Ream
I have just revised code in the "bug-1451".  Some cruft is gone, and 
several docstring improved.

I can find nothing seriously amiss.  Indeed, several messy methods look 
completely innocent.  Even if they were buggy they could not cause files to 
be skipped.

I have just updated the first comment of #1451 
. This comment 
summarizes what I did and my present thinking.

Please do continue to use the "bug-1451" branch and report any problems.

*Summary*

The code looks rock solid to me.  I'll be merging the new code into devel 
sometime in the next few days.

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/f2347d73-af6b-43fc-85d7-fef42ca9915c%40googlegroups.com.


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

2019-12-08 Thread Edward K. Ream
I'm not sure what to do with this.  Iirc, pylint may not know about some 
symbols in asynchat.async_chat or SimpleHTTPRequestHandler.

There are two complaints, both about the do_POST method:

urlparse_header appears undefined in:

ctype, pdict = urlparse_header(self.headers.getheader('content-type'))

and urlparse_multipart appears undefined in:

query = urlparse_multipart(self.rfile, pdict)

Do you know anything about this?

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/ad96bc7c-b396-4d65-b26b-72449cc404d7%40googlegroups.com.


Re: @clean/@auto files are not always written

2019-12-08 Thread Edward K. Ream
On Wednesday, December 4, 2019 at 2:42:07 PM UTC-6, John Clark wrote:

Reliable two-way synchronisation is a complex programming challenge.
>

Did I delete your script by mistake?  Matt thanked you for it, but I can't 
seem to find it.  Could you give it to us again.  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/3c99db16-1c13-4dd3-86e4-cecaf6d5a084%40googlegroups.com.