Re: cross-platform file references - how to deal with?

2018-01-11 Thread jkn
Hi Edward On Thursday, January 11, 2018 at 6:09:45 PM UTC, Edward K. Ream wrote: > > On Wed, Jan 10, 2018 at 3:50 AM, jkn > wrote: > >> >> Issue #649 https://github.com/leo-editor/leo-editor/issues/649 >> ​[created]. >> > > ​Thanks.​ > > (although I seem to have made a

Re: cross-platform file references - how to deal with?

2018-01-11 Thread Edward K. Ream
On Wed, Jan 10, 2018 at 3:50 AM, jkn wrote: > > Issue #649 https://github.com/leo-editor/leo-editor/issues/649 > ​[created]. > ​Thanks.​ (although I seem to have made a mess of inserting the suggested code ;-( ) > ​Use this syntax for code: ```python python code ```​

Re: cross-platform file references - how to deal with?

2018-01-10 Thread jkn
On Monday, January 8, 2018 at 11:29:19 AM UTC, jkn wrote: > > > > On Saturday, January 6, 2018 at 9:02:31 PM UTC, Edward K. Ream wrote: >> >> >> >> On Wed, Jan 3, 2018 at 5:03 PM, jkn wrote: >> >> sorry to be a pain, but I think this (os_path_expandExpression() in

Re: cross-platform file references - how to deal with?

2018-01-08 Thread jkn
On Saturday, January 6, 2018 at 9:02:31 PM UTC, Edward K. Ream wrote: > > > > On Wed, Jan 3, 2018 at 5:03 PM, jkn > wrote: > > sorry to be a pain, but I think this (os_path_expandExpression() in >> leoGlobals.py) does not work for multiple occurrences of path

Re: cross-platform file references - how to deal with?

2018-01-06 Thread Edward K. Ream
On Wed, Jan 3, 2018 at 5:03 PM, jkn wrote: sorry to be a pain, but I think this (os_path_expandExpression() in > leoGlobals.py) does not work for multiple occurrences of path expressions. > ​... ​ > Shall I raise an issue for this? > ​Yes, of course. Edward --

Re: cross-platform file references - how to deal with?

2018-01-03 Thread jkn
On Wednesday, September 6, 2017 at 5:01:58 PM UTC+1, Edward K. Ream wrote: > > On Wed, Sep 6, 2017 at 10:27 AM, john lunzer > wrote: > >> Would it be possible to to add {{sep}} as a shorthand for {{os.sep}} and >> {{getConfig()}} as a shorthand for {{c.config.getString()}}?

Re: cross-platform file references - how to deal with?

2017-09-06 Thread john lunzer
I totally agree with that logic. If you *were* going to add it to the c namespace I would name it c.getConfig (which is more descriptive as to what it is doing) rather than c.getString. On Wednesday, September 6, 2017 at 12:01:58 PM UTC-4, Edward K. Ream wrote: > > On Wed, Sep 6, 2017 at 10:27

Re: cross-platform file references - how to deal with?

2017-09-06 Thread john lunzer
Would it be possible to to add {{sep}} as a shorthand for {{os.sep}} and {{getConfig()}} as a shorthand for {{c.config.getString()}}? I think these would be perhaps the two most common use of of path expression evaluations. Would be nice to have them be a little shorter. On Tuesday, September

Re: cross-platform file references - how to deal with?

2017-09-05 Thread jkn
On Tuesday, September 5, 2017 at 9:02:55 PM UTC+1, Edward K. Ream wrote: > > On Tue, Sep 5, 2017 at 11:05 AM, jkn > wrote: > > >> I was looking at the 'Directives Reference' page myself last night, but >> missed the (rather short) 'Path Expressions' section. Perhasp

Re: cross-platform file references - how to deal with?

2017-09-05 Thread Edward K. Ream
On Tue, Sep 5, 2017 at 11:05 AM, jkn wrote: > I was looking at the 'Directives Reference' page myself last night, but > missed the (rather short) 'Path Expressions' section. Perhasp if it were to > be a bit bigger, say by incorporating your example above, that might

Re: cross-platform file references - how to deal with?

2017-09-05 Thread jkn
Hi Edward On Tuesday, September 5, 2017 at 3:05:56 PM UTC+1, Edward K. Ream wrote: > > On Tue, Sep 5, 2017 at 3:56 AM, jkn > wrote: > > ​>> ​ > I would suggest using a folder relative to your home folder. Say >> >> ~/shared/ >>> >> > ​> ​ > Are you 'reminding' me that

Re: cross-platform file references - how to deal with?

2017-09-05 Thread Edward K. Ream
On Tue, Sep 5, 2017 at 3:56 AM, jkn wrote: ​>> ​ I would suggest using a folder relative to your home folder. Say > > ~/shared/ >> > ​> ​ Are you 'reminding' me that I can use '~' under Windows as well as Linux? ​I'm glad ~ is working for you. Here are some further

Re: cross-platform file references - how to deal with?

2017-09-05 Thread jkn
Hi Edward On Monday, September 4, 2017 at 9:40:32 PM UTC+1, jkn wrote: > > Hi Edward > > On Monday, September 4, 2017 at 8:58:24 PM UTC+1, Edward K. Ream wrote: >> >> >> >> On Mon, Sep 4, 2017 at 2:36 PM, jkn wrote: >> >>> Apologies if this is a well-understood issue, I

Re: cross-platform file references - how to deal with?

2017-09-04 Thread jkn
Hi Edward On Monday, September 4, 2017 at 8:58:24 PM UTC+1, Edward K. Ream wrote: > > > > On Mon, Sep 4, 2017 at 2:36 PM, jkn > wrote: > >> Apologies if this is a well-understood issue, I couldn't find a reference >> to it. >> > > ​I would suggest using a folder

Re: cross-platform file references - how to deal with?

2017-09-04 Thread Edward K. Ream
On Mon, Sep 4, 2017 at 2:36 PM, jkn wrote: > Apologies if this is a well-understood issue, I couldn't find a reference > to it. > ​I would suggest using a folder relative to your home folder. Say ~/shared/ Edward -- You received this message because you are

cross-platform file references - how to deal with?

2017-09-04 Thread jkn
Apologies if this is a well-understood issue, I couldn't find a reference to it. I use Leo across several platforms and Operating systems. If I have a file within a Leo outline for writing vi @clean, say, I might want the equivalent of @clean /mnt/windows/shared/documents/my-output-file.txt