Re: [Midnight Commander] #4492: Implementation of screen-only division of long lines

0 views
Skip to first unread message

Ticket System

unread,
Aug 17, 2023, 8:06:06 AM8/17/23
to sg4...@gmail.com, mc-...@googlegroups.com, ales....@kyblsoft.cz
#4492: Implementation of screen-only division of long lines
-------------------------------------+-------------------------------------
Reporter: psprint | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: Future
Component: mcdiff | Releases
Resolution: | Version: master
Blocked By: | Keywords: soft-
Branch state: no branch | wraps,wraps,long-lines
| Blocking:
| Votes for changeset:
-------------------------------------+-------------------------------------

Comment (by psprint):

A short demo: https://asciinema.org/a/JGe9zeiPly6CfIG49sA6Y7r30

--
Ticket URL: <http://www.midnight-commander.org/ticket/4492#comment:1>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Aug 17, 2023, 9:10:46 AM8/17/23
to sg4...@gmail.com, mc-...@googlegroups.com, ales....@kyblsoft.cz
#4492: Implementation of screen-only division of long lines
-------------------------------------+-------------------------------------
Reporter: psprint | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: Future
Component: mcedit | Releases

Resolution: | Version: master
Blocked By: | Keywords: soft-
Branch state: no branch | wraps,wraps,long-lines
| Blocking:
| Votes for changeset:
-------------------------------------+-------------------------------------

Comment (by ossi):

your example is kinda counter-productive, as code is the exact thing one
usually ''shouldn't'' soft-wrap.

that also illustrates that the setting needs to be switchable via a
hotkey, as it is in the viewer.

another aspect is that a good soft-wrap implementation (*) somehow
visualizes the continued lines, which is particularly important for text
without indentation. this can be easily done by visualizing line breaks
along with other whitespace (see libreoffice) when soft-wrapping is
enabled. another style is to indent everything, and put some marker in
front of continuation lines. yet another style i've seen (in kate or qt
creator) is indenting the continuation lines like their "parent" lines and
filling the leading whitespace with a grey-ish pattern, but this obviously
doesn't work for non-indented text.

(*) the textedit i'm just entering this into clearly ''isn't'' a good
implementation ...

--
Ticket URL: <http://www.midnight-commander.org/ticket/4492#comment:3>

Ticket System

unread,
Aug 17, 2023, 9:42:52 AM8/17/23
to sg4...@gmail.com, mc-...@googlegroups.com, ales....@kyblsoft.cz
#4492: Implementation of screen-only division of long lines
-------------------------------------+-------------------------------------
Reporter: psprint | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone:
Component: mcedit | Version: master
Resolution: duplicate | Keywords: soft-
Blocked By: | wraps,wraps,long-lines
Branch state: no branch | Blocking:
| Votes for changeset:
-------------------------------------+-------------------------------------
Changes (by andrew_b):

* status: new => closed
* resolution: => duplicate
* milestone: Future Releases =>


Comment:

Closed as duplicate of #1447.[[BR]]I can't believe that you didn't find
#1447

--
Ticket URL: <http://www.midnight-commander.org/ticket/4492#comment:4>

Reply all
Reply to author
Forward
0 new messages