[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] Soft-Wrap and Show-Codes?

From: David Liontooth
Subject: Re: [Help-nano] Soft-Wrap and Show-Codes?
Date: Thu, 28 Sep 2006 12:34:38 -0700
User-agent: Thunderbird (X11/20060915)

Hi David,

Thank you! That's very helpful. And thank you for all your good work.

I've tried regexp for replacing lines in nano on OSX and Linux. OSX
appears to only handle Basic Regular Expressions (BRE), which does not
honor escapes like \n, \f, and \r. Linux handles ERE, but in nano
there's no match for these escaped characters. Search and replace is an
extremely useful improvement over pico, and being able to replace
newline is top of my wish list!

BTW I suggest you restrict access to the nano-help mailing list to
subscribers, to avoid it being salted away by spam. These lists can be
very useful for reference. If even you don't post to it, that's a bad
sign! :-)


David Lawrence Ramsey wrote:
> David Liontooth wrote:
> <snip>
> > Since nobody appears to have responded to your question about
> > soft-wrap:
> Sorry; I've been busy.  Unfortunately, there is currently no "soft-wrap"
> option in nano.  All wrapping nano does is hard wrapping.  There is a
> way to work around it, though.  After you've finished editing a file,
> hard wrapping and all, you can reopen it with the -r option set to a
> very high value (say 10000) and justify the lines you want to be long.
> Of course, this assumes that no long line in the file will be longer
> than 10000 characters, but you can always increase the value if you need
> to.
> <snip>
> > PS Do you happen to know how to search and replace a newline/linefeed?
> There's currently no way to do this either, due to the way nano handles
> lines internally.  This will most likely change in the future, but not
> in time for 2.0, as it's in a feature freeze right now.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]