bugGNU nano - Bugs: bug #51620, [Request] add a softwrap limit

 
 

bug #51620: [Request] add a softwrap limit

Submitted by:  Danny Colin <dannycolin>
Submitted on:  Sun 30 Jul 2017 02:42:05 AM UTC  
 
Severity: 1 - WishStatus: Wont Fix
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 13 Aug 2017 03:41:57 PM UTC, comment #5:

As there's a fairly usable workaround, I'll mark this as WONTFIX.

Anyhow, thanks for using nano. :)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 06 Aug 2017 04:47:51 AM UTC, comment #4:

Neat! That's exactly the behavior I wanted. There's only one minor downside. If I resize the window, I need to close and reopen nano but I can live with that. Thanks.

It'd be nice to have it in nano as a setting but if you think it isn't worth it to spend time on that i can understand.

Anyways, thanks again it's really appreciate!

Danny Colin <dannycolin>
Sat 05 Aug 2017 12:01:06 PM UTC, comment #3:

You can easily achieve the desired behavior yourself. Make a file, say nano.sh, that contains the following little script:

#!/bin/sh

WANTED=80
REAL=$(stty size | cut -d" " -f2)

stty cols $WANTED
nano $@
stty cols $REAL

Then alias "nano" to that little script (or whatever other alias you normally use to start nano -- I use "nn"), and nano should be softwrapping at the same width on all your terminals.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 05 Aug 2017 01:50:18 AM UTC, comment #2:

I know that I can narrow the window but I would like to have the same wrapping limit on all the monitors I use.

I attached an image.

Danny Colin <dannycolin>
Sun 30 Jul 2017 06:10:41 PM UTC, comment #1:

Hmm... If you want your lines to be shorter, why not make your terminal narrower? People use hardwrap (set fill 72) when writing emails to make it most likely that the recipient will see the text wrapped in the exact same manner as the writer. If you use softwrap, you don't care how the recipient sees it wrapped, you just want the lines to not run off your own screen. But you are saying that your terminal is so wide that the lines become uncomfortably long and you want to see them softwrapped earlier?

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 30 Jul 2017 02:42:05 AM UTC, original submission:

It would be nice to be able to add a limit to the xsoftwrapx function (e.g. set softwrap 80). In this way, this option would have the same behavior as "set fill", but without creating a new line because when I write a line in a configuration file I do not necessarily want to cut it in half.

Danny Colin <dannycolin>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #41420:  nano-softwrap.png added by dannycolin (96KiB - image/png - I know that I can narrow the window but I just want my softwrap to look the same on all my monitor. I attached a file to illustrate what I mean.)

 

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 dannycolin (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Aug 2017 03:41:57 PM UTCbensStatusNone=>Wont Fix
      Assigned toNone=>bens
      Open/ClosedOpen=>Closed
    Sat 05 Aug 2017 01:46:31 AM UTCdannycolinAttached File-=>Added nano-softwrap.png, #41420
    Sun 30 Jul 2017 06:10:41 PM UTCbensSeverity3 - Normal=>1 - Wish
      Summary[Request] Add softwrap limit=>[Request] add a softwrap limit

    Back to the top


    Powered by Savane 3.1-cleanup1