[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [patch] exit without saving the buffer
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [patch] exit without saving the buffer |
Date: |
Mon, 07 Dec 2015 21:17:38 +0100 |
On Sun, Nov 15, 2015, at 18:16, Benno Schulenberg wrote:
> On Fri, Nov 13, 2015, at 08:11, Mike Brown wrote:
> > Feature request:
> >
> > At the write file prompt, allow a control key to exit
> > without saving, e.g. ^X or ^Y.
>
> Yes, I like that one. I wouldn't use ^X though (too close
> to ^C, too easy to discard the file when you just meant to
> cancel the save), nor ^Y (feels too much like "Yes, save").
>
> I was thinking of ^Q (Quit), but sounds too much like quitting
> the entire program. ^A (Abandon), ^D (Discard), ^K (Kill-it)
> are already used for editing the filename. So I would suggest
> ^R (Reject, Rubbish) or ^J (Junk-it).
Attached patch adds this feature. It uses ^Q after all, because
^R is too close to ^T, and in this submenu Meta is only used for
toggles, Ctrl is used for actions -- so M-R would be out of style.
Comments welcome.
> > The goal is to make it easier to exit a 'nano -t' session without saving,
>
> Well... in the upcoming release the behaviour of ^O with --tempfile
> has been made the same as in Pico. That means that there is no way
> to abandon an edited buffer except by killing nano. Maybe we need
> to reconsider this.
It has been reverted in current SVN.
Benno
--
http://www.fastmail.com - The professional email service
adding-discard-buffer.patch
Description: Text Data
- [Nano-devel] [patch] exit without saving the buffer,
Benno Schulenberg <=