bugGNU nano - Bugs: bug #61703, [Wish] add a reloadrc function...

 
 

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

bug #61703: [Wish] add a reloadrc function that rereads the (possibly updated) nanorc files

Submitter:  Tasos Papastylianou <tpapastylianou>
Submitted:  Sun 19 Dec 2021 03:20:57 PM UTC
   
 
Severity:  1 - Wish Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Wed 12 Jan 2022 03:30:52 PM UTC, comment #2: 

This is way over the top.  Sure, it sounds cool, but it requires a way of thinking that I don't have, and that I don't want to encourage nano users to develop.  I don't see a problem with adjusting a string bind, closing and restarting nano, and checking how things work now.  (If I would do this really often, I would open a second terminal to do the testing in, while doing the editing in the first, keeping that nano open.)

Also, the practicality of it: it would require freeing all of the data that was stored while reading the rc files, before reading those rc files again.  That would require a whole bunch of code, and require some major restructuring to accommodate for the rereading of the rc files.

Benno Schulenberg <bens>
Group administrator
Sat 01 Jan 2022 08:46:32 PM UTC, comment #1: 

As mentioned in the discussion of bug #61692, an alternative approach to this wish would be to have the ability to alter the state of the editor live, via a bespoke menu which accepts nanorc compatible instructions.

Tasos Papastylianou <tpapastylianou>
Sun 19 Dec 2021 03:20:57 PM UTC, original submission:  

I wonder if it is possible to add a new main-menu-function (e.g. called "reloadrc") whose functionality is to reload the nanorc file that was used in the currently running nano editor session, and reapply it, effectively applying any changes that have occurred in it since the session started to all open buffers (or at least all saved/umodified buffers), without having to restart the editor for this to take effect.

This would be an incredibly powerful thing to have, since it would allow nanorc changes to be tested live, macros defined in a nanorc and then reloaded live, and even the ability to alter nanorc itself via a macro programmatically and then have the nanorc reloaded.

E.g. the last part means it would be possible to "set" options that cannot be "set" in any other way at the moment. One example of this last point is e.g. ticket #60773 - this problem could have been solved via a simple macro that live-edits nanorc to change the fill, and then uses reloadrc to apply the change live.

Tasos Papastylianou <tpapastylianou>

 

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

No files currently attached

 

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 tpapastylianou (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
    2022-01-20 bens Open/ClosedOpen Closed
    2022-01-12 bens Summary[Wish] add a reloadrc function rereads the (possibly updated) nanorc files [Wish] add a reloadrc function that rereads the (possibly updated) nanorc files
    2022-01-12 bens Severity3 - Normal 1 - Wish
        StatusNone Wont Fix
        Summary[Wish] Add a reloadrc function which reloads/reapplies a (potentially updated) nanorc file [Wish] add a reloadrc function rereads the (possibly updated) nanorc files

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code