bugGNU nano - Bugs: bug #49723, [Request] allow the user to quit...

 
 

bug #49723: [Request] allow the user to quit Nano immediately when multiple files are open

Submitted by:  Yuval Khalifa <iyuvalk>
Submitted on:  Mon 28 Nov 2016 08:54:21 AM UTC  
 
Severity: 1 - WishStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 29 Nov 2016 11:55:43 AM UTC, comment #3:

Under ncurses (what nano uses), Ctrl+Letter and Ctrl+Shift+Letter produce the exact same code (which you can verify by pressing Alt+V before them). This is a major reason why nano is rather limited in the number of shortcuts it can provide.

The mentioned two editors are ones with /lots/ of features, and are both graphical too -- they are in a different league from nano. (And the first one isn't even free software, so it doesn't count. :) )

Benno Schulenberg <bens>
Project Administrator
Mon 28 Nov 2016 08:12:40 PM UTC, comment #2:

Hi.

Thanks for the quick reply. I understand your POV but since most modern editors (such as UltraEdit and Notepad++) do have a "Close All" option I thought it would be nice if Nano had that too. Also, I think that it would make it easier to use in cases which Nano plays a part in a bigger script that at some point allows the user to open multiple config files with Nano and instead of having to hold Ctrl+X until it's closed just press a key combo would be better. As for the fact that there are no keys left - how about Ctrl+Shift+X?

Yuval Khalifa <iyuvalk>
Mon 28 Nov 2016 06:44:03 PM UTC, comment #1:

Hmmm... I don't see what advantage such a Close-All function would bring. Pressing and holding Ctrl+X works just fine -- I've just tried it with /hundreds/ of files open. The only tiny advantage that Close-All would have is that, when you have modified several of the open files, you don't have to type ^X again after saying Y or N to the question about saving a modified file. But the user should have learned to save his or her changes before switching to another file, so this question should pop up almost never. So... holding down ^X works fine for me.

Also, we don't have any reasonable key to assign Close-All to: Meta-X is already taken, and so are all other sensible keys. The only (but counter-intuitive) option would be to add this Close-All function to the ^O (Write Out) menu... But, as said above, I don't see the need for it.

Benno Schulenberg <bens>
Project Administrator
Mon 28 Nov 2016 08:54:21 AM UTC, original submission:

Currently, if a user opens Nano with multiple files as arguments (e.g nano /tmp/*.txt) if the user hits ^X (Ctrl+X) Nano will close the current file and switch to the next file. I believe it would be better to allow the user (perhaps by using a different key combo, maybe Meta+X) to close all the files (if some have unsaved changes to ask the user about them) and quit.

Yuval Khalifa <iyuvalk>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by iyuvalk (Submitted the item)
  • -unavailable- added by iyuvalk (NANO_CLOSE_ALL)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Feb 2017 11:36:39 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 28 Nov 2016 06:44:03 PM UTCbensSeverity3 - Normal=>1 - Wish
      StatusNone=>Wont Fix
      SummaryAllow the user to quit Nano immediately when multiple files are opened=>[Request] allow the user to quit Nano immediately when multiple files are open
    Mon 28 Nov 2016 08:54:21 AM UTCiyuvalkCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1