Re: Request - mode to open Leo files read-only

2018-10-13 Thread jkn


On Saturday, October 13, 2018 at 12:39:37 PM UTC+1, Edward K. Ream wrote:
>
>
>
> On Sat, Oct 13, 2018 at 6:24 AM jkn > 
> wrote:
>
> Occasionally I would like to protect myself from changing any files within 
>> Leo. Would it be possible to have a command-line option for all files to be 
>> open read-only?
>>
>
> I think so.  --read-only would disable the save-* commands.  I've just 
> created #995  for 
> this.
>
> But suppose you forget that --read-only is in effect.  You write code for 
> an hour before trying to save.  Leo tells you that you can't save.  Now you 
> have to remember what changes you made, open another copy of Leo, and save 
> your changes.  This might dissuade you from using --read-only.
>
> Another option is to use git to manage your files...
>
> Edward
>

Hi Edward
Thanks for #995. Yes, you'd ideally want some clear way of indicating 
that Leo was operating in this mode. Perhaps a different (configurable?) 
window border colour, or similar. Though ... do people really 'write code 
for an hour before trying to save'?

In part this suggestion is de to my workflow re. OwnCloud and Leo files, 
and my ... discomfort ... with the way Leo treats updated files (or at 
least the prompts thereof). Git is another method, although FWIW I think it 
doesn't work well over owncloud.

Regards
jon N

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Request - mode to open Leo files read-only

2018-10-13 Thread Edward K. Ream
On Sat, Oct 13, 2018 at 6:24 AM jkn  wrote:

Occasionally I would like to protect myself from changing any files within
> Leo. Would it be possible to have a command-line option for all files to be
> open read-only?
>

I think so.  --read-only would disable the save-* commands.  I've just
created #995  for this.

But suppose you forget that --read-only is in effect.  You write code for
an hour before trying to save.  Leo tells you that you can't save.  Now you
have to remember what changes you made, open another copy of Leo, and save
your changes.  This might dissuade you from using --read-only.

Another option is to use git to manage your files...

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.
For more options, visit https://groups.google.com/d/optout.