#52 Improve auto newline text wrap

Wei Ye

I'm extensively using nedit in my daily work -- coding
and writing papers and reports. It's a very nice tool,
and so easy to use.

The problem on the auto newline text wrap is that when
you type in the middle of a line, the line will not
wrap at the end even if it exceeds the margin. So every
time I have to manually make line breaks after adding
new texts in the middle of a line.

An improvement would be to automatically wrap the line
no matter where new texts are added on the line. And
as long as the user keeps typing on this line, the
wrapped words are automatically added at the beginning
of the following wrapped new line. Of course, if the
user leave the current line, the wrapped new line will
be treated as an independent line.

This small improvement is very helpful if a user
frequently adds texts in a middle of a line (like
revising papers and reports). It could save a lot of
time than manully make line breaks. I use pine to
read/write email, which actually uses pico as its text
editor. Pico has exactly the feature I described above.


  • Nobody/Anonymous

    Logged In: NO

    What you describe is called `continuous wrapping' in NEdit.
    (I guess this is what pine/pico does when writing mails -
    usually it is called `soft wrapping')

    Notice also that with auto newline you don't need to
    manually refill
    paragraphs. Best is to read the NEdit documentation about
    `Shifting anf Filling' toroughly.

    -- Joerg

  • Wei Ye

    Wei Ye - 2003-11-20

    Logged In: YES


    What I described was not continuous wrapping. In continuous
    wrapping, there is no real new line characters in a
    paragraph. What I want is to have a new line character at
    the end of each line. In pico, there's a new line character
    after each wrapping. You can see what it does by giving it a
    quick try on editing a few lines.

    Thanks for pointing out the fill paragraph function in
    nedit. It's a useful feature, but I can't use it in some
    cases. For example, when writing a Latex file, I want to
    start each sentence on a new line (paragraphs are separated
    by blank lines). In this way, when I revise the file later,
    I can easily find out which sentences are modified by using
    'diff'. If I 'fill paragraph', all the sentences are merged
    together. If I modify any sentence, the whole paragraph is
    changed. So 'diff' will show that the whole paragraph is
    changed, and I can't easily find out which sentence is
    actually changed.


  • Nobody/Anonymous

    Logged In: NO

    I'll think about your problem. It looks like a macro solution
    is possible (with the help of the smart indent feature).

    -- Joerg


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks