[Users] line wrapping when prepending
Neels Hofmeyr
neels at hofmeyr.de
Wed Mar 27 11:38:33 CET 2013
Hi users@,
it took me a bit to get used to Claws' line wrapping, which often
involves moving back a word, removing a space and re-adding it to
trigger a line wrap. IMHO that's not ideal, but acceptable.
But there's still two kludges that I'd like to address:
1) When I go back before a (usually longish) word and insert new text,
the newly typed word in combination with the following word together
often wraps to the next line, even though the space, which I'm about to
type one second later, would have allowed the just typed word to have
stayed on the previous line. Example:
- Have the line:
Dolor ipsum flupsum et flotsam repetititerepetititerepetition.
- Place cursor just before the 'r' of the last word:
Dolor ipsum flupsum et flotsam |repetititerepetititerepetition.
- Type a few short words:
Dolor ipsum flupsum et flotsam oddsam
tripsome repetititerepetititerepetition.
The word "tripsome" would have easily fitted on the top line. Only the
long word should have wrapped. Algorithmically, Claws should probably
first act as it does now, wrapping both words to the next line, for the
case that no space will follow. But as soon as the space is added, the
short word should wrap back to the previous line, if it fits there.
To work around my current problem, it would be possible to insert words
*before* the space -- I'd have to retrain myself to do so. But there are
use cases where that is cumbersome, for example with braces involved:
Dolor ipsum flupsum et flotsam (repetititerepetititerepetition).
With the workaround, I would have to go just after '(', type a space,
go back before the space, and then type. While still possible, that's
annoying -- as annoying as retraining myself ;)
2) Claws does not line-wrap at dashes. I have to insert a space
manually if a dash is involved. For example, the line:
Dolor ipsum flupsum et flotsam oddsam tripsum
Repeti-Iteper-Repeti-Itsum.
should IMHO wrap as
Dolor ipsum flupsum et flotsam oddsam tripsum Repeti-Iteper-Repeti-
Itsum.
and it should ideally automatically wrap back together if further text
is inserted at the start of the paragraph, without me having to remove
spaces after dashes manually.
An algorithm that always automatically rewraps the entire paragraph
being edited could address both kludges. In fact, it should suffice to
always re-wrap starting one line above the current cursor position.
Do you agree? If there was a patch to implement my suggestions, would it
be accepted? And ... would anyone care and have the time to dive into
the code sooner than I would (which would be most welcome)?
BTW, I do hope that my newline placement is kept intact while you are
reading this mail, otherwise all of my examples would be confusing
instead of helpful. If in doubt, manually retype my words in Claws.
Thanks!
~Neels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20130327/d25292ee/attachment.sig>
More information about the Users
mailing list