-
Is it possible to implement an actual wrap at the wrap indicator, instead of just the vertical line? I am only using Linux now, but I used this feature extensively in TextPad in Windows. |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 10 replies
-
Do you mean "wrap" or "break" ? Wrap is a display only thing and happens only at the right edge of the screen. Break is actually modifying the text to include line breaks and happens at the long line setting. |
Beta Was this translation helpful? Give feedback.
-
Is that not I'm afraid your diagram was more confusing than helpful, the lines you have noted as "ok" are wrapped (see the 180 degree arrow) so they are longer than the marker but by coincidence wrapping has hidden that fact, whilst the "bad" line has a visible exceedance because it hasn't wrapped? |
Beta Was this translation helpful? Give feedback.
-
Note, line breaking does not break lines when typing adds characters before the column limit, even if that pushes characters on the line past the limit. Why? Its complicated, let me show why. In the following | means the breaking column and the successive snippets separated by blank lines are the progressive results of typing the x characters. Naive line breaking inserting a newline before the last word when the line exceeds the limit:
oops, probably wanted the sequence:
This is called "reflow" as provided by But as soon as it is anything other than plain text, even mostly text like markdown, it can break the markup, eg consider a line containing a And its even worse with code, although many languages don't care about embedded line breaks most of the time, all do care inside string quotes, and there are even more subtle issues with some languages:
The python result is illegal, but more insidiously the Go example is legal, but assigns 1 to the variable and calculates the expression 2 as a separate statement that does nothing. So since simple automatic line breaking when typing before the limit is so often wrong Geany does not provide it, although it provides the facility to break when typing past the limit when the user has immediate visibility of the result and can fix any problems. Also the user can manually apply reflow. |
Beta Was this translation helpful? Give feedback.
-
Geany is the best Linux text editor because of it's simplicity and versatility. But, I am also using Windows TextPad in Wine, which is a text and code editor with numerous features not available in any Linux software, but the preference in Linux is Geany. |
Beta Was this translation helpful? Give feedback.
-
@ineuw Note The demo assumes the |
Beta Was this translation helpful? Give feedback.
-
This is amazing yes it's perfect.ty. |
Beta Was this translation helpful? Give feedback.
-
@ineuw @rdipardo as I said above, is the functionality illustrated in the video not |
Beta Was this translation helpful? Give feedback.
-
@elextr how stupid of me. Yes, it is exactly that. Please accept my apologies. |
Beta Was this translation helpful? Give feedback.
-
My only success was with v1.38 and I installed v2.00 on another Linux Mint installation. Unfortunately, the line breaking no longer works in either version. I read the documentation closely, but I must have missed something. There is no information on what are the required settings to make it work. Can you please advise what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
-
I opened your |
Beta Was this translation helpful? Give feedback.
-
We are confused about what is wanted to be accomplish. Having both a line break and a line wrap feature is confusing. Wrapping the text to a selected width setting based on the character count is the logical option. If it's set to 68 characters, that would be the correct width regardless of the columns. The current wrap width is a calculated value based on the display. This is a feature that only exists in TextPad in Windows. Windows Notepad++ can wrap only as Geany. |
Beta Was this translation helpful? Give feedback.
-
It is the window width which sets the word wrap, not scintilla. But the line break option contains half of the feature by breaking a newly typed line. I am hoping that someone in the future may look at the script and figure out breaking existing lines as well. |
Beta Was this translation helpful? Give feedback.
-
Scintilla is the editing widget that provides the edit pane, and as it lays out the lines it is the code that provides the line wrapping, which is purely a display feature and does not change the file contents. Scintilla is a separate project and as noted above is used by other projects including Notepad++. On the Scintilla feature list the maintainer has rejected working on wrapping at a point other than window edge himself, but that does not prevent somebody else contributing it, but until then wrapping will remain at window edge. Geany provides Geany also provides The upshot is that until "somebody" contributes wrapping to Scintilla, or a suitably controlled continuous reflow to Geany then |
Beta Was this translation helpful? Give feedback.
Scintilla is the editing widget that provides the edit pane, and as it lays out the lines it is the code that provides the line wrapping, which is purely a display feature and does not change the file contents. Scintilla is a separate project and as noted above is used by other projects including Notepad++. On the Scintilla feature list the maintainer has rejected working on wrapping at a point other than window edge himself, but that does not prevent somebody else contributing it, but until then wrapping will remain at window edge.
Geany provides
Line Breaking
, which adds an actual line end to the file contents. As it does…