#106 Option to "wrap at any character" for long lines w/o spaces

v5.2
closed
nobody
core (195)
5
2013-12-09
2006-12-30
Geoff
No

At present jEdit has three word wrap modes which are as follows:

None: no word wrapping
Soft: word wrapping is done against the specified margin
Hard: the file is modified to insert new line breaks at the specified margin

These modes only work if there are space characters in the line. If jEdit is working with a file that has no space characters it does not wrap the line. This means it is not the editor of choice for this kind of file and other utilities like Windows Notepad are used instead.

I would like to request a new option "Wrap to Window" which works irrespective of the contents of a line. In effect it should make the horizontal scroll bar redundant.

I believe there are two choices for this new option:

1) A new Word Wrap mode, called Window

2) A new option Window Wrap that disables Word Wrap and when Word Wrap is enabled Window Wrap should be disabled

Initially I thought option 1 sounded right but as this new option will not word wrap but just wrap the second option might be better and clearer for new users.

I believe this would be a very valuable enhancement to jEdit and if nothing else will mean I don't keep having to use Windows Notepad!

Bug 1623562 contains some information relating to this and was the trigger for this request.

Discussion

  • Denyer

    Denyer - 2007-02-10

    Logged In: YES
    user_id=1567309
    Originator: NO

    "In effect it should make the horizontal scroll bar redundant."

    Speaking of which, an option to hide the horizontal scroll bar in the event that it isn't performing any function would be welcome. Every bit of screen space saved helps!

     
  • Robert Schwenn

    Robert Schwenn - 2007-02-10

    Logged In: YES
    user_id=1486645
    Originator: NO

    1. Your "Word Wrap mode, called Window" already exists: As of jEdit 4.3pre1, if the wrap margin is set to 0 and soft wrap is enabled, wrapping is performed at the text area width.

    So I think, the feature request could be as follows:

    2. Since long lines without spaces seems to be not very rare (XML), what's about a new switch (probably only for soft wrap mode), that says:
    a, perform wrap only at spaces and special "wordBreakChars" (current behvior)
    b, perform wrap at word boundaries (no spaces required, special "noWordSep" recognized)
    c, perform wrap at any character

    3. Hiding the scrollbar seems not to be depending on wrap. It probably could be done always, when there is nothing to scroll. But this should be a seperate feature request, doesn't it?

     
  • Denyer

    Denyer - 2007-02-10

    Logged In: YES
    user_id=1567309
    Originator: NO

    "Hiding the scrollbar seems not to be depending on wrap. It probably
    could be done always, when there is nothing to scroll. But this should be a
    seperate feature request, doesn't it?"

    If I have any luck with the request for scrollwheel modifier keys to be configurable by the end-user, I'll submit other feature requests, but the impression is the developers are busy and have other focuses for now. Considering the scrollbar behaviour hasn't changed and we're almost at version 4.3, there's probably a good reason for it not being hidden like in other applications.

     
  • Geoff

    Geoff - 2007-02-22

    Logged In: YES
    user_id=869700
    Originator: YES

    Personally I am happy with what rschwenn said in his point 2 on 2007-02-10 11:15. I was just making a suggestion over the GUI bit and rschwenn's idea is cool by me. I just want to see the functionality!

    Cheers folks, Geoff

     
  • Geoff

    Geoff - 2009-01-07

    I am no longer using jEdit, however I have reviewed the referenced patch and believe this will work fine and allow this issue to be closed.

    Thank you

     
  • Alan Ezust

    Alan Ezust - 2011-11-16
    • summary: Wrap Buffer Contents to Window --> Option to "wrap at any character" for long lines w/o spaces
     
  • Alan Ezust

    Alan Ezust - 2011-12-17

    I am testing the patch now and it does not resolve the issue for me.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-03-08
    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks