Re: How to crash via sessions

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 2:18 PM, Kent Tenney wrote: ​> ​ leo test.leo --session-save --session-restore ​This was an excellent test. ​ ​> ​ fn,unl = unl.split("#") ValueError: need more than 1 value to unpack ​This was indeed the ultimate culprit. It must work if unl contains multiple '#' chara

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread reinhard . engel . de
On Thursday, November 20, 2014 9:52:19 PM UTC+1, Edward K. Ream wrote: > > > > On Thu, Nov 20, 2014 at 12:42 PM, > wrote: > >> ​Amusing. But to repeat, afaik, Leo does *not* offer notepad as a >>> default anywhere. In other words, I thought I was wrong, but I wasn't... >>> :-) >>> >> >> Well

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 12:42 PM, wrote: > ​Amusing. But to repeat, afaik, Leo does *not* offer notepad as a default >> anywhere. In other words, I thought I was wrong, but I wasn't... :-) >> > > Well, it does, in a context-menu of 'quickstart.leo'. > ​Not on my machine. Edward -- You recei

Re: Kent (anyone) want to document session commands?

2014-11-20 Thread Kent Tenney
Leo's session options are for users who work with multiple Leo files open in tabs: an editing 'sesion'. start Leo with the --session-save --session-restore options, open several Leo files and exit. The next time Leo is started with those options, the files will be open, and the nodes focused as w

Re: How to crash via sessions

2014-11-20 Thread Kent Tenney
oops, premature sendage File "/var/fetching/leo-editor/leo/core/leoSessions.py", line 73, in load_session fn,unl = unl.split("#") ValueError: need more than 1 value to unpack The traceback is refering to the contents of ~/.leo/leo.session: ["test.leo"] On Thu, Nov 20, 2014 at 11:46 AM, Edward K.

Re: How to crash via sessions

2014-11-20 Thread Kent Tenney
OK, it looks a lot simpler than I first thought: create file test.leo using session options leo test.leo --session-save --session-restore test.leo has one node headline test.leo save and exit repeat leo test.leo --session-save --session-restore Traceback: File "/var/fetching/leo-editor/leo/core

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread reinhard . engel . de
> > ​Amusing. But to repeat, afaik, Leo does *not* offer notepad as a default > anywhere. In other words, I thought I was wrong, but I wasn't... :-) > Well, it does, in a context-menu of 'quickstart.leo'. Reinhard -- You received this message because you are subscribed to the Google Groups

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread reinhard . engel . de
On Thursday, November 20, 2014 6:42:54 PM UTC+1, Edward K. Ream wrote: > > On Thu, Nov 20, 2014 at 11:17 AM, Matt Wilkie > wrote: > >> Why on earth should Leo put notepad in the Open With menu? >> >> >> In the tradition of 5 whys : >> > > ​Amusing. But to r

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread reinhard . engel . de
On Thursday, November 20, 2014 6:16:46 PM UTC+1, Edward K. Ream wrote: > > On Wed, Nov 19, 2014 at 1:02 PM, > > wrote: > >> >> Do I have to clean up everything manually? >> > > ​Yes, but you ​can use file-delete to delete any file by name. > > After choosing 'Edit myfile_thin.py in notepad', I

Kent (anyone) want to document session commands?

2014-11-20 Thread Edward K. Ream
There was an item about adding docstring for sessions commands, and that's been done. But afaik there are no "real" docs (outside of release notes) for session commands. Does anyone know of any? Anyone care to describe how they use sessions? Edward -- You received this message because you a

Re: How to crash via sessions

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 6:27 AM, Kent Tenney wrote: > a Leo URI in focused node causes trouble on restore. > > focus a node with a uri headline: > file://data.leo#data.leo-->Sandbox-->1000 > > save and close Leo file > > reopen with --session-restore option and Leo > ​ [crashes in ​load_snapshot]

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 11:17 AM, Matt Wilkie wrote: > Why on earth should Leo put notepad in the Open With menu? > > > In the tradition of 5 whys : > ​Amusing. But to repeat, afaik, Leo does *not* offer notepad as a default anywhere. In other words, I thou

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread Matt Wilkie
> > Why on earth should Leo put notepad in the Open With menu? In the tradition of 5 whys : - because finding and/or defining the user's preferred text editor is a pain, especially for a newbie, and dumb noteapad is guaranteed present on Windows. - because s

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread Edward K. Ream
On Wed, Nov 19, 2014 at 1:02 PM, wrote: > > Do I have to clean up everything manually? > ​Yes, but you ​can use file-delete to delete any file by name. After choosing 'Edit myfile_thin.py in notepad', I got the following: ​I don't see any mention of notepad in Leo's settings. Do you have you

Re: What is the recommended way to install on Linux?

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 8:54 AM, Davy Cottet wrote: > OK, so tomorrow I'll work on a unique package requiring python2-qt5, which > if not possible (ie before Debian Jessie and Ubuntu Trusty) will fallback > on python2-Qt4. > It will require all the packages you mentioned, and will not care about

Re: What is the recommended way to install on Linux?

2014-11-20 Thread Davy Cottet
OK, so tomorrow I'll work on a unique package requiring python2-qt5, which if not possible (ie before Debian Jessie and Ubuntu Trusty) will fallback on python2-Qt4. It will require all the packages you mentioned, and will not care about recommended and suggested packages. Then the simplest way t

Re: What is the recommended way to install on Linux?

2014-11-20 Thread Davy Cottet
So, what do you think ? Is there a reason to build different deb packages for different versions (ie for Python3 and Qt5) or we just go simply with one universal Python2/Qt4 package ? -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubsc

Re: How to crash via sessions

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 6:27 AM, Kent Tenney wrote: > a Leo URI in focused node causes trouble on restore. > > focus a node with a uri headline: > file://data.leo#data.leo-->Sandbox-->1000 > > save and close Leo file > > reopen with --session-restore option and Leo says: > > ​...​ > > File "/us

How to crash via sessions

2014-11-20 Thread Kent Tenney
a Leo URI in focused node causes trouble on restore. focus a node with a uri headline: file://data.leo#data.leo-->Sandbox-->1000 save and close Leo file reopen with --session-restore option and Leo says: (venv)ktenney@lappy:~/develop$ Traceback (most recent call last): File "/home/ktenney/ven

Re: Maybe exclude quickstart.leo from the final release

2014-11-20 Thread Edward K. Ream
On Wed, Nov 19, 2014 at 4:28 PM, wrote: > ​It's notepad that you shouldn't trust. Try using an editor that can >> handle linux line breaks intelligently. I recommend scite: >> http://www.scintilla.org/SciTE.html You'll never use notepad again :-) >> >> >> Well, that's the editor that is mentio

Re: Leo5.0-b2 - which Python?

2014-11-20 Thread Edward K. Ream
On Wed, Nov 19, 2014 at 11:16 AM, wrote: > On my machine, I've installed Python 2.7 and Python 3.4 in parallel, 3.4 > being the default when calling 'python' in the Explorer. > > But the installation routine of Leo5.0-b2 picks up and suggests Python 2.7 > during installation as the Python to inst

Re: What is the recommended way to install on Linux?

2014-11-20 Thread Edward K. Ream
On Wed, Nov 19, 2014 at 9:59 PM, Davy Cottet wrote: > I forgot to ask : > > - Is there any minimal python and qt/pyqt versions leo can work with ? > ​Python 2.6 and above, including any Python 3.x version, as stated in Leo's installation guide. Not sure about qt, but that shouldn't be a probl

Re: What is the recommended way to install on Linux?

2014-11-20 Thread Edward K. Ream
On Wed, Nov 19, 2014 at 9:50 PM, Davy Cottet wrote: So I've 3 questions to the developers : > > 1 - Is there a recommended configuration from the above ones to be the > default one if no qt was previously installed and both py2 and py3 are > installed ? > ​Prefer PyQt5 regardless of Python versi

Re: breakage in @button defined in myLeoSettings.leo

2014-11-20 Thread Edward K. Ream
On Thu, Nov 20, 2014 at 5:37 AM, Kent Tenney wrote: > > Does it work for you? > > Yes! > ​Whew! Glad you caught all this before final. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving ema

Re: breakage in @button defined in myLeoSettings.leo

2014-11-20 Thread Kent Tenney
> Does it work for you? Yes! Thanks, Kent On Wed, Nov 19, 2014 at 5:01 PM, Edward K. Ream wrote: > > > On Wed, Nov 19, 2014 at 4:26 PM, Edward K. Ream wrote: >> >> >> >> On Wed, Nov 19, 2014 at 4:11 PM, Kent Tenney wrote: >>> >>> Woah. It's still wonky. >> >> >> Really good catch. > > > A pro