Skip to content

Soft wrap option #9550

Open
Open

Description

@riksoft

Description

It's quite weird to have a huge IDE with tons of options, and not what any editor on planet does: text wrap on/off via menu option. Yes, we can do it based on MIME type but it's not enough because... see the use case...

Use case/motivation

For example, I use html both for coding (and I don't want to wrap code) but I also use HTML to write notes (and there I want soft wrap). A the moment I have to use Geany or Vim for that.... and it's quite ridiculous that I have to change software for that reason.

Related issues

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:feature
    needs:triage
    on Aug 10, 2026
  2. changed the title [-]Softw wrap option[/-] [+]Soft wrap option[/+] on Aug 10, 2026
  3. added
    UI
    on Aug 11, 2026
  4. Chris2011 commented on Aug 11, 2026

    @Chris2011
    Contributor

    @riksoft heya, so if I understand it right, this option here is not enough for you, right?

    Word Wrap

    You want a quick option in each editor or for each language so like in the editor toolbar?

  5. riksoft commented on Aug 12, 2026

    @riksoft
    ContributorAuthor

    Hi Chris,
    no that doesn't help because it's mime based. I don't want to wrap code, I only want to wrap documentation like an html changelog, but since are both, I can only choose to wrap any html file (code + changelog) or none. For that reason it would be great to have a quick option (even better with a keyboard shortcut), regardless of the type of language. For me it's enough if it remembers the choice session based, without the need of saving the choice on disk, expecially if it comes with a keyboard shortcut.

    That would also solve the problem of soft wrap for plain text files (e.g. the classic READ.md or READ.txt), that at the moment it's impossibile to achieve.

  6. Chris2011 commented on Aug 18, 2026

    @Chris2011
    Contributor

    Thx, now I understand it better.

  7. Chris2011 commented on Oct 28, 2026

    @Chris2011
    Contributor

    Can you please show me some screenshots or screencapture for this feature? In geany or vim.

  8. riksoft commented on Oct 28, 2026

    @riksoft
    ContributorAuthor

    Hi Chris,
    if you know vim it's quite simple to explain without the need of screenshots because what I'm asking for is the equivalent of
    :set wrap

    In Nebeans instead is the equivalent of :set nowrap by default.

  9. Chris2011 commented on Oct 29, 2026

    @Chris2011
    Contributor

    I don't use vim at all and I wanted to understand it better. If I understand it correctly, you want to have a softwrap for each block that you want to wrap inside one file, right? Also if you have HTML CSS and Script inside one file or just html in java for documentation, you want to linewrap just the documentation, if you say "I want to wrap this". Correct?

  10. riksoft commented on Oct 29, 2026

    @riksoft
    ContributorAuthor

    No Chris, it's definitely simpler: I'd like to enable on/off soft wrap for the entire document.
    Use case:

    • I open an html, php, css page for coding. No wrap.
    • I open an html page that is a readme. For this one, despite html I will activate wrap.
    • I open a txt/md file that contains phrases. I will activate wrap
    • I open a dat file. I will activate wrap or not depending on the contents.

    Definitely I won't use it for code, I only need it for text, but since it doesn't depend on the mime type or file extension (because I use html both for coding and for documentation), a manual on/off of the soft wrap will be very useful.

    ANOTHER FEATURE (unless you can hit 2 birds with a stone), would be the possibility to reformat a selected block of text so that it's splitted, so that it doesn't go beyond the right margin. In this case with HARD wrapping.
    Use case:
    I'm coding the page of a website. I manually manage the size of the lines of code. At a certain point I have to paste a long description given to me by the client. When I paste it, it goes far beyond the right margin so I have to split it manually, reformatting such text line by line by hand, wating a lot of time. For these reason, at the moment I put the text in another editor that does such job for me and then paste it into Netbeans. If Netbeans were able to reformat (hard wrapping) a selected block of text by itself would be great. But this is another great feature (I think I've already asked for that in another "issue"). What I ask here instead it's only on/off of soft wrap for the entire document, regardless of what type of document it is. Just to read without the need of scrolling horizontally.

  11. Chris2011 commented on Oct 29, 2026

    @Chris2011
    Contributor

    So then my first assumption half right:

    You want a quick option in each editor ... so like in the editor toolbar?

    Is this correct? You want a button in the editor toolbar, doesn't matter which mimetype and when you click it, it should soft wrap the whole document.

  12. riksoft commented on Oct 29, 2026

    @riksoft
    ContributorAuthor

    Yes exactly.
    An item in a menu will suffice (probably inside view or source), with a keyboard shortcut.

  13. Chris2011 commented on Oct 29, 2026

    @Chris2011
    Contributor

    Understood thx.

  14. added 10 commits that reference this issue on Oct 30, 2026
    43cfa64
    ed9b0cd
    87f7a99
    d21e562
    c4e1133
    e55484f
    044ec44
    3d64abc
    9aa6671
    e201c23
  15. added 2 commits that reference this issue on Nov 22, 2026
    8754817
    6720d18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EditorUIkind:featureneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions