-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap long lines in editor #1447
Comments
Is you mean behaviour like VI(M)? |
Yes, similar to VIM with wrap=on. |
|
|
|
Add soft wraps to MCEdit |
Hi,
I think that this feature is missing from mcedit. Currently, when a line exceeds the screen it is scrolled right. This is, IMHO, a less effective way of working with long lines. More natural is to have them soft-divided by the editor with moving, home/end keys support, etc.
The patch is little long and complex, but I'm using it from 2 years with no problems. To have the lines soft wrapped, select "Soft wraps" in the General options dialog.
Answering the comment in the previous (closed as duplicate) ticket: there are markings of the wrapped lines – if one enables line numbers: https://asciinema.org/a/KVP6dRocGtb2XGLO26sjL60sZ. Also I disagree that code shouldn't be folded at least to me, as I'm using the patch from 2 years to edit code. After turning the option on I've never looked back. |
An update that restores the missing CK action allowing keybind toggling soft wraps (alt-w by default) |
I've restored the keybinding SoftFolds that got lost in the merge (Alt-w by default). Demo: https://asciinema.org/a/o3N8nrNdt3Q1dBjHGt0yP6uP8 |
|
Reformatted the patch to meet Hacking document. Other things like comparing NULL for pointers instead of if(ptr) already meet |
Andrew: I've submitted updated patch |
|
Replying to andrew_b:
I've uploaded updated patch. I've removed int q=Q() from it. Are there any other things that are unaligned? I would ask for a direct references or at least names of the formatting/code errors. |
An update that removes the inline declaration assignments like: int q=Q() |
Replying to psprint:
Is it all that you read in HACKING?
Save my eyes and my brain.
And this is only the first step. |
Sorry, but I have to stop supporting this patch. Someone paid me for the soft wraps implementation, but now the financing stopped and I'm unable to meet your high level expectations. |
Important
This issue was migrated from Trac:
ache
(acheron@….ru)mooffie@….com
(@mooffie),ales.janda@….cz
(@kybl)It would be convenient if editor gets the ability to wrap lines when line length exceeds screen width.
Note
Original attachments:
psprint
(sg44567@….com) onAug 17, 2023 at 14:22 UTC
psprint
(sg44567@….com) onAug 17, 2023 at 14:39 UTC
psprint
(sg44567@….com) onAug 18, 2023 at 14:34 UTC
psprint
(sg44567@….com) onAug 19, 2023 at 9:34 UTC
The text was updated successfully, but these errors were encountered: