Hello, I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations. Sincerely, Kete
On 2 April 2011 14:52, Kete kwfj@suddenlink.net wrote:
Hello, I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations. Sincerely, Kete
Hi,
It is really not very simple to do automatic line breaking sensibly in source code, it is better that you break that yourself.
For pure text files it might be possible to break a line if a word crosses a limit, but it isn't as useful as it sounds, what about a paragraph where you add a word to a line in the middle and make the line too long? Then the next line has only one word on it, yuk :-)
Trying to do a reflow of the paragraph in real time is a problem because of the overhead and the display movements it can cause.
I find that just pressing Ctrl-J now and again handles most cases.
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Hi,
On Sat, 2 Apr 2011 19:27:02 +1100 Lex Trotman elextr@gmail.com wrote:
On 2 April 2011 14:52, Kete kwfj@suddenlink.net wrote:
I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations.
It is really not very simple to do automatic line breaking sensibly in source code, it is better that you break that yourself.
For pure text files it might be possible to break a line if a word crosses a limit, but it isn't as useful as it sounds, what about a paragraph where you add a word to a line in the middle and make the line too long? Then the next line has only one word on it, yuk :-)
I agree.
Trying to do a reflow of the paragraph in real time is a problem because of the overhead and the display movements it can cause.
I could imagine of a plugin doing this.
I find that just pressing Ctrl-J now and again handles most cases.
I agree. Also there is the option Line break on documents menu you could activate.
Cheers, Frank
For pure text files it might be possible to break a line if a word crosses a limit, but it isn't as useful as it sounds, what about a paragraph where you add a word to a line in the middle and make the line too long? Then the next line has only one word on it, yuk :-)
I agree.
Trying to do a reflow of the paragraph in real time is a problem because of the overhead and the display movements it can cause.
I could imagine of a plugin doing this.
It would be good if it is possible without display jump.
I find that just pressing Ctrl-J now and again handles most cases.
I agree. Also there is the option Line break on documents menu you could activate.
Oops, that was what I was describing as having the first problem above, but I completely forgot to mention that it already existed :-)
Cheers Lex
On Saturday April 2, 2011 6:21:44 am Lex Trotman wrote:
It is really not very simple to do automatic line breaking sensibly in source code, it is better that you break that yourself.
For pure text files it might be possible to break a line if a word crosses a limit, but it isn't as useful as it sounds, what about a paragraph where you add a word to a line in the middle and make the line too long? Then the next line has only one word on it, yuk :-)
I agree.
I find that just pressing Ctrl-J now and again handles most cases.
Also there is the option Line break on documents menu you could activate.
I'm confused. I'm saying I turn on this option every time, and I'd like the choice of Geany turning on this option for me. I don't know what Ctrl-J does, and I don't mind one word going to the next line. When I open my source on another computer, I don't necessarily want to maximize the window to see those one words. I'm not arguing; I'm just not sure if I made myself clear because your replies sound like something much more complex than automatically activating the line break option (instead of going to the Document menu with every document). Automatically turning on line breaking is nice for coding, but automatically turning on line breaking would be even nicer b/c the source will look the same as it did when programming. thanks for your replies
On Sat, 2 Apr 2011 09:02:19 -0400 Kete kwfj@suddenlink.net wrote:
On Saturday April 2, 2011 6:21:44 am Lex Trotman wrote:
It is really not very simple to do automatic line breaking sensibly in source code, it is better that you break that yourself.
For pure text files it might be possible to break a line if a word crosses a limit, but it isn't as useful as it sounds, what about a paragraph where you add a word to a line in the middle and make the line too long? Then the next line has only one word on it, yuk :-)
I agree.
I find that just pressing Ctrl-J now and again handles most cases.
Also there is the option Line break on documents menu you could activate.
I'm confused. I'm saying I turn on this option every time, and I'd like the choice of Geany turning on this option for me. I don't know what Ctrl-J does, and I don't mind one word going to the next line. When I open my source on another computer, I don't necessarily want to maximize the window to see those one words. I'm not arguing; I'm just not sure if I made myself clear because your replies sound like something much more complex than automatically activating the line break option (instead of going to the Document menu with every document). Automatically turning on line breaking is nice for coding, but automatically turning on line breaking would be even nicer b/c the source will look the same as it did when programming. thanks for your replies
Oh. It really seems at least I did misunderstand you. ;) However, I think this could be added (read: somebody have to do it), but wondering whether it would cause more issue to have this always on? My suggestion is to add another keybinding which is toggling this function.
Cheers, Frank
On Saturday April 2, 2011 6:16:28 pm Frank Lanitz wrote:
Oh. It really seems at least I did misunderstand you. ;) However, I think this could be added (read: somebody have to do it), but wondering whether it would cause more issue to have this always on? My suggestion is to add another keybinding which is toggling this function.
Cool, by the way, I'm not asking for it to always be on for everyone, just the option, like the option for line-wrapping, to be on if we want it.
I'm confused. I'm saying I turn on this option every time, and I'd like the choice of Geany turning on this option for me. I don't know what Ctrl-J does, and I don't mind one word going to the next line. When I open my source on another computer, I don't necessarily want to maximize the window to see those one words. I'm not arguing; I'm just not sure if I made myself clear because your replies sound like something much more complex than automatically activating the line break option (instead of going to the Document menu with every document). Automatically turning on line breaking is nice for coding, but automatically turning on line breaking would be even nicer b/c the source will look the same as it did when programming. thanks for your replies
Oh. It really seems at least I did misunderstand you. ;) However, I think this could be added (read: somebody have to do it), but wondering whether it would cause more issue to have this always on? My suggestion is to add another keybinding which is toggling this function.
Cheers, Frank --
@Kete,
Yes, I'm confused too, to be absolutely sure we are talking about the same thing, you are talking about having menu->document->line breaking on by default?
If so its possible.
@Frank,
I'd suggest a user preference since most of us wouldn't want it on by default. But as you say someone has to do it, patches are welcome (tm).
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Le 03/04/2011 00:16, Frank Lanitz a écrit :
[...] My suggestion is to add another keybinding which is toggling this function.
It's already there, just need for the user to set it to whatever she wants in the keybindings preferences :)
Though we could easily add a preference for this, yeah. Not sure if this should be a hidden preference though, perhaps it's not used enough to end up in the dialog... don't know.
Cheers, Colomban
On Sunday April 3, 2011 10:20:45 am Colomban Wendling wrote:
Le 03/04/2011 00:16, Frank Lanitz a écrit :
[...] My suggestion is to add another keybinding which is toggling this function.
It's already there, just need for the user to set it to whatever she wants in the keybindings preferences :)
Though we could easily add a preference for this, yeah. Not sure if this should be a hidden preference though, perhaps it's not used enough to end up in the dialog... don't know.
I appreciate the keybinding option, but it wouldn't be much better than Alt D and then B which is all it takes to open the Document menu and select Line Breaking. I'm requesting a preference because I have to stop typing and turn this on in every document every time I open it even if I already opened it that day.
On Fri, 1 Apr 2011 23:52:45 -0400 Kete kwfj@suddenlink.net wrote:
I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations.
I'm not sure that a global line breaking pref is the best solution, but I understand why you want it. For programming, line breaking probably isn't wanted. But for text documents it is.
So another solution would be to have a per-filetype line breaking pref. Would that be enough?
Regards, Nick
On 5 April 2011 02:25, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Fri, 1 Apr 2011 23:52:45 -0400 Kete kwfj@suddenlink.net wrote:
I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations.
I'm not sure that a global line breaking pref is the best solution, but I understand why you want it. For programming, line breaking probably isn't wanted. But for text documents it is.
So another solution would be to have a per-filetype line breaking pref. Would that be enough?
Just a note to be sure that the preference should be only a default, it should still be possible to change it per document.
Cheers Lex
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, 5 Apr 2011 02:37:29 +1000 Lex Trotman elextr@gmail.com wrote:
I would like the option to automatically enable line-breaking in every document because I prefer that over line-wrapping. When somebody opens my source, it won't necessarily wrap at the same location, but the lines should break at the same locations.
I'm not sure that a global line breaking pref is the best solution, but I understand why you want it. For programming, line breaking probably isn't wanted. But for text documents it is.
So another solution would be to have a per-filetype line breaking pref. Would that be enough?
Just a note to be sure that the preference should be only a default, it should still be possible to change it per document.
Of course.
Regards, Nick
On Monday April 4, 2011 12:25:12 pm Nick Treleaven wrote:
I'm not sure that a global line breaking pref is the best solution, but I understand why you want it. For programming, line breaking probably isn't wanted. But for text documents it is.
So another solution would be to have a per-filetype line breaking pref. Would that be enough?
Anything would be an improvement, but an unchecked Line Breaking box under the checked Line Wrapping box seems harmless.
On Mon, 4 Apr 2011 19:05:34 -0400 Kete kwfj@suddenlink.net wrote:
On Monday April 4, 2011 12:25:12 pm Nick Treleaven wrote:
I'm not sure that a global line breaking pref is the best solution, but I understand why you want it. For programming, line breaking probably isn't wanted. But for text documents it is.
So another solution would be to have a per-filetype line breaking pref. Would that be enough?
Anything would be an improvement, but an unchecked Line Breaking box under the checked Line Wrapping box seems harmless.
I can understand Nick's concerns. E.g. for me I'm coding some Python and C as well as writing some LaTeX and plain text on regular basis with Geany. A default line breaking for all kind of documents would cause more pain as it might help whereas e.g. on plain text documents and LaTeX I usually use to activate the flag for documents.
Cheers, Frank
On Tuesday April 5, 2011 6:49:10 pm Frank Lanitz wrote:
A default line breaking for all kind of documents would cause more pain as it might help
I am not asking for a default line breaking. I am asking for an unchecked checkbox that I can check and turn on line breaking in every document.
On 6 April 2011 11:47, Kete kwfj@suddenlink.net wrote:
On Tuesday April 5, 2011 6:49:10 pm Frank Lanitz wrote:
A default line breaking for all kind of documents would cause more pain as it might help
I am not asking for a default line breaking. I am asking for an unchecked checkbox that I can check and turn on line breaking in every document.
Hi Kete,
The Geany developers have to consider the whole target user community, which is by majority programmers.
As has been noted by several people, setting auto line breaking on code is usually undesired.
So implementing your request as described is likely to be considered not only not useful, but a negative feature, by the majority of users.
However, it is common to have documentation and code open, so it is common for *some* files to be able to benefit from auto line breaking.
So setting it as the default per-filetype means that files of a type that benefits from auto line breaking will be opened with it set. And users who disagree with the judgement of which filetypes can set the default in their local filetyeps files.
So you can set it for all filetypes, so any file you open, opens with it set.
Therefore their proposal, whilst not exactly what you asked for, provides the majority of your use case and also benefits the overall user community.
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tuesday April 5, 2011 10:56:50 pm Lex Trotman wrote:
setting it as the default per-filetype means that files of a type that benefits from auto line breaking will be opened with it set.
So you can set it for all filetypes, so any file you open, opens with it set.
Okay, that sounds great. I'll try to figure out how to make that happen. Thank you very much, and I appologize for any annoyance I may have caused.
On 6 April 2011 14:01, Kete kwfj@suddenlink.net wrote:
On Tuesday April 5, 2011 10:56:50 pm Lex Trotman wrote:
setting it as the default per-filetype means that files of a type that benefits from auto line breaking will be opened with it set.
So you can set it for all filetypes, so any file you open, opens with it set.
Okay, that sounds great. I'll try to figure out how to make that happen. Thank
I'm sure that it will be added to the "Filetype Configuration" section of the manual when its added to the code.
Cheers Lex