bugGNU nano - Bugs: bug #66072, [Wish] the ability to activate...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66072: [Wish] the ability to activate modernbindings in nanorc

Submitter:  Franc Linalope <tachyglossues>
Submitted:  Fri 09 Aug 2024 04:34:14 PM UTC
   
 
Severity:  1 - Wish Status:  Cantfix
Assigned to:  None Open/Closed:  Closed

Fri 06 Sep 2024 07:48:29 AM UTC, comment #2: 

A possible patch was posted in https://lists.gnu.org/archive/html/nano-devel/2024-08/msg00003.html.  The patch (updated for nano-8.2) is attached here.

The patch will not be merged into the tree, as it causes problems when compiling nano with '-fsanitize=address'.


(file #56417)

Benno Schulenberg <bens>
Group administrator
Sat 10 Aug 2024 07:03:57 AM UTC, comment #1: 

Nano sets the default bindings before reading the rcfiles[1], so the only way to influence these default bindings is via a command-line option.

[1] https://git.savannah.gnu.org/cgit/nano.git/tree/src/nano.c?id=fe39d137c7#n2168

Even if it were easily possible to restart the reading of the rcfiles when the option 'set modernbindings' is encountered, I wouldn't want to implement this -- I do not want to tempt distros to put that option in their /etc/nanorc, because whenever a user starts nano on some system, the bindings should be predictable.  The admin that changes those age-old bindings does the users a disservice.  So this is as much a Wontfix as a Cantfix.

The best advice I can give is to set up an alias.  For example:

alias nano='/bin/nano --modern'


Benno Schulenberg <bens>
Group administrator
Fri 09 Aug 2024 04:34:14 PM UTC, original submission:  

I think you could improve the nano user experience for new users. The --modernbindings option provides much more intuitive shortcuts for the new user. However, this option currently has to be specified manually each time nano is launched, or each keyboard shortcut has to be changed manually in nanorc, which is very tedious. I would therefore like to integrate this option directly into nanorc with a simple "set modernbindings". This will also allow some distros to set modernbindings as default if they wish.

Franc Linalope <tachyglossues>

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by tachyglossues (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-19 bens Open/ClosedOpen Closed
    2024-09-06 bens Attached File- Added 0001-experimental-feature-allow-set-modernbindings-in-an-.patch, #56417
    2024-08-17 bens Summary[Wish] define modernbindings directly in nanorc [Wish] the ability to activate modernbindings in nanorc
    2024-08-10 bens Severity3 - Normal 1 - Wish
        StatusNone Cantfix

    Back to the top

    Powered by Savane 3.13-5884.
    Corresponding source code