bugGNU nano - Bugs: bug #56042, [Request] auto-add comment string...

 
 

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

bug #56042: [Request] auto-add comment string when doing automatic hard-wrapping

Submitter:  Seb <seb5903>
Submitted:  Sun 31 Mar 2019 03:02:36 PM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Jump to the original submission

Mon 26 Aug 2019 05:13:59 PM UTC, comment #6: 

Released in 4.4.

Benno Schulenberg <bens>
Group administrator
Tue 06 Aug 2019 07:12:46 AM UTC, comment #5: 

The patch has been pushed to master, commit 8fce33af.

Benno Schulenberg <bens>
Group administrator
Fri 26 Apr 2019 11:46:39 AM UTC, comment #4: 

A further improved patch is attached.

(file #46833)

Benno Schulenberg <bens>
Group administrator
Fri 26 Apr 2019 08:46:06 AM UTC, comment #3: 

Attached is an improved patch.  It works both with and without --autoindent.  Undo and redo should work.  If you find any problems, please report.

(file #46832)

Benno Schulenberg <bens>
Group administrator
Thu 04 Apr 2019 06:40:03 PM UTC, comment #2: 

Forgot to attach the patch, for other interested people.

(file #46720)

Benno Schulenberg <bens>
Group administrator
Thu 04 Apr 2019 06:37:12 PM UTC, comment #1: 

Here's a rough first implementation.  It should be behind some kind of option, something like --copyquotes, but that is of later concern.  It requires --autoindent to be on.  No promises that this will become part of nano, it's just a tentative look, but... it would be quite cool.

Benno Schulenberg <bens>
Group administrator
Sun 31 Mar 2019 03:02:36 PM UTC, original submission:  

When writing code, with long lines hard-wrapped, it would be quite convenient if the comment string (such as '#', '%' or '//'), already present on the first line, could be added automatically at the beginning of each new line.

Thus one could write long comments in terminals <= 80 cols without hving to juggle with Alt-L and ^J.

Thanks!

Seb <seb5903>

 

(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 seb5903 (Submitted the item)
  • -email is unavailable- added by seb5903
  •  

    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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-26 bens Open/ClosedOpen Closed
    2019-08-06 bens StatusIn Progress Fixed
    2019-04-26 bens Attached File- Added 0001-text-copy-leading-quote-characters-when-automatic-ha.patch, #46833
        StatusReady For Test In Progress
        Assigned toNone bens
    2019-04-26 bens Attached File- Added 0001-wrapping-copy-leading-quote-chars-when-doing-automat.patch, #46832
        Summary[Request] auto-add comment string on newline [Request] auto-add comment string when doing automatic hard-wrapping
    2019-04-04 bens Attached File- Added 0001-text-automatically-copy-quoting-from-the-current-lin.patch, #46720
    2019-04-04 bens Severity3 - Normal 1 - Wish
        StatusNone Ready For Test
        Summary[Request] Auto-add comment string on newline [Request] auto-add comment string on newline
    2019-03-31 seb5903 Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code