View Single Post
Old 09-14-2023, 06:41 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,871
Karma: 6120478
Join Date: Nov 2009
Device: many
I will look into these two issues, but I think they are caused by the same thing:

The last one is similar to other issues that were special cased in the past. The cursor position at the end of the line just before the start of the end tag is actually an insertion pointer AFTER the bit of text meaning that spot is inside the end tag (effectively) and running that command when the cursor is in a tag is disabled.

I am betting the first problem you talked about is the same. When you select the i tag and all of its contents, even though the cursor is immediately before the tag, that spot is AFTER the text and so is considered to be in the i tag itself and you can not bold a tag - just its contents.

If I had to do it all over again, I would remove the B, I, U, subscript, and superscript buttons completely. They are just a pain to maintain. And instead, Sigil would ship with 5 pre-added clips (with clip buttons) that would be easier for the user to determine how (what tags) it wants for b, I, U to use or instead to use an in-line style tag. Then I would add a simple button to remove the immediate parent tag first to make swapping tags easier using clips.

Clips would have been a much better way to implement such things giving the user much more control yet as simple to click on as any toolbar button.

Maybe a future version of Sigil will do just that.

Last edited by KevinH; 09-14-2023 at 06:44 PM.
KevinH is offline   Reply With Quote