nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] AUTO_VIEW option


From: Matteo Sasso
Subject: Re: [Nano-devel] [PATCH] AUTO_VIEW option
Date: Mon, 20 Apr 2015 11:05:09 +0200

Thank you for your reply.

Audio feedback might be useful to some people but not to everyone. Many people don't want to annoy colleagues with beeps and keep them off.

Colour, that's a solution I like. That should help a lot, and it should also be fairly easy to implement. I'll look into it.

This weekend I noticed my patch doesn't work well with multiple buffers (it tries to switch VIEW_MODE on and off, but it doesn't always work). Also, it doesn't make an exception for ^O as you rightfully pointed out.

I'll keep you posted.


On Fri, Apr 17, 2015 at 9:08 PM, Benno Schulenberg <address@hidden> wrote:

On Fri, Apr 17, 2015, at 16:14, Matteo Sasso wrote:
> when I open a read-only file in nano I never notice the warning in the
> status bar. I end up having to save to a different file, exit, su, mv.
> Every single time.

Yeah.  I don't often edit read-only files, but when, then I too
don't notice the warning.  Maybe we should add audio feedback
when the statusbar gives a warning?  And, since nano now has the
ability to colour things, maybe then the status bar should also
have a different colour?

> I wrote a patch to switch to VIEW_MODE automatically, which is a more
> obvious form of feedback. Should I post it to savannah?

Yes, please.  And inline it here too, if you wish: it will have some
more exposure and will be easier to review.

But... if nano automatically sets View mode when it reads a readonly
file, this also prevents saving the file under a different name.
Does your patch make an exception for ^O?  And does it set on a
per-file basis?  Or will all files be opened in View mode when one
of them is readonly?

Benno

--
http://www.fastmail.com - Send your email first class



reply via email to

[Prev in Thread] Current Thread [Next in Thread]