giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.41k stars 462 forks source link

Editing formatted text resets formatting #523

Open rsheasby opened 5 years ago

rsheasby commented 5 years ago

If you have a section of bold text for example, and double click the last word of the section to change it, the newly typed text will always have its formatting reset to non-bold. This is especially frustrating when rewriting a heading by triple-clicking and rewriting it, resulting in all formatting being cleared for that line. The same behavior is shown for headings, when changing the last word of the heading, or adding another word to the heading.

Changing a word(or character) in the middle of the formatted section works correctly, it seems this behavior only happens when the first or last character is changed, or when text is appended.

Ideal behavior would be that similar to MS Word, wherein the formatting is "sticky" based on the last position of the cursor.

mocsa commented 3 years ago

I experience the same problem.

For me, it happens most often (almost daily) when I edit headings. When I place the cursor at the end of the heading line and start typing the text will be paragraph text and not heading text.

In general, the problem can be summarized like this: When I start typing, I expect the newly typed text to take on (continue) the formatting of the text on the left side of the cursor. Currently, this is not like that. The text seems to take the formatting on the right side of the cursor.

I guess, one can argue that the above is true for left-to-right languages only, and should be the opposite for right-to-left languages.