bugGNU nano - Bugs: bug #54760, [Request] allow set/unset commands...

 
 

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

bug #54760: [Request] allow set/unset commands in syntax-specific files

Submitter:  Henry van Megen <hvanmegen>
Submitted:  Mon 01 Oct 2018 11:18:46 AM UTC
   
 
Severity:  1 - Wish Status:  Duplicate
Assigned to:  None Open/Closed:  Closed

Mon 01 Oct 2018 04:19:55 PM UTC, comment #1: 

Currently there is no way to achieve this (except by writing a wrapper script that detects the extension and moves the appropriate nanorc into place and then calls nano -- so, as you're a power user, I think you should be able to make this for yourself :) ).

We've had this request three times now, not just in bug #53661, but also on the mailing list: http://lists.gnu.org/archive/html/nano-devel/2018-09/msg00072.html.  But they all want to modify just the tabbing behavior.  Is there anything else you would like to set/unset per syntax?

And out of curiosity: what tabbing settings would you ideally want to use for PHP, and which for Python?  (Because it seems you want to use spaces for Python and I can't understand why.)

Benno Schulenberg <bens>
Group administrator
Mon 01 Oct 2018 11:18:46 AM UTC, original submission:  

I was looking for a way of setting up nano to use a different tabbing behaviour for my PHP files than say my Python files, but it seems impossible to do according to the current documentation.

Being able to default certain configuration from the master /etc/nanorc and have being overridden in, for example, the /usr/share/nano/*.nanorc files would have been great, but to my surprise the set command is not allowed in included files.

Is there another way of doing this, and if not.. could such a feature please be included? I think this would greatly enhance nano for continued use (I just can't get used to vim as I have with nano.. nano just fits better in my keyboard-shortcut heavy workflow in desktop GUI IDE's)

Thanks in advance!

Henry van Megen <hvanmegen>

 

(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 hvanmegen (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-31 bens Open/ClosedOpen Closed
    2018-10-01 bens Severity3 - Normal 1 - Wish
        StatusNone Duplicate
        Summary[request] Allowing (un)set commands in included files or another way of per extension behaviour configuration [Request] allow set/unset commands in syntax-specific files

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code