Bug 151981 - smart copy on wrapped, single line select
Summary: smart copy on wrapped, single line select
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Unmaintained
Component: composer (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-07 11:43 UTC by Maciej Pilichowski
Modified: 2012-08-20 23:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pilichowski 2007-11-07 11:43:32 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    SuSE RPMs

Consider the message:

> > is "hello world" prepared
> > for release?
> yes it is.

Now, I select and copy this part:

> > is "hello world" |prepared
> > for| release?
> yes it is.

I will get:
prepared > > for

It would be great if KMail could recognize quotation marks and remove then on the fly -- in wrapped, single line select (not when you selecting multiple lines).
Comment 1 Björn Ruberg 2010-01-13 02:00:44 UTC
Yeah
Comment 2 Torgny Nyblom 2010-01-13 09:44:45 UTC
Except that in your example you select two lines, unless I read your message wrong.

Anyway the issue would be how to recognize what are quotation marks and what are quotation characters that are part of the message. As I see it the only way to be sure would be to make sure that the quotation marks are inside a <span class="quotation"></span> construct of some sort, but this will enlarge the message and introduce one more source of potential parsing errors.

Is it worth the risk?
Comment 3 Maciej Pilichowski 2010-01-13 18:58:31 UTC
Single line -- well, it was single line before KMail wrapped it. 

About the "risk". Computers are made for doing automatic tasks. When I see task which is essentially deleting characters one by one, over and over, it is an automated task. So it should be done by computer, not by human -- we (humans) should spent time on higher level issues.

And about removing quotation marks -- I am not saying it is trivial, but it is not rocket science either.

First draft could be -- take the non-alphanumeric common prefix of line of begin of selection and each other. Remove the prefix in copied content. Un-wrap lines.

In next iteration of the algorithm it could be enhanced to handle multiple lines.
Comment 4 Myriam Schweingruber 2012-08-18 08:17:26 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 5 Luigi Toscano 2012-08-19 00:24:25 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.