View Single Post
Old 01-29-2021, 07:36 PM   #11
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by kovidgoyal View Post
Code:
p span.moo { color: red }
li span.moo { color: green }
in one stylesheet, now which rule should clicking on moo take you to?

You can even have multiple rules with the exact same selectors

Code:
.moo { font-size: 11pt }
.moo { color: purple }
Doesn't Tools > Reports > Style Classes already do something similar?

You're able to double-click and jump to the class's location in the CSS.

(Plus jumping to the very first instance would work for the vast majority of cases, like KevinH said.)

I find the Right-Click > "Go to Link or Style" in Sigil to be absolutely fantastic, and it's one of my most-used features to easily hop around/parse books on opening. (Especially when dealing with calibre### classes.)

Quote:
Originally Posted by KevinH View Post
FWIW, Sigil has just added its own version of gumbo query and fixed a number of bugs to help it determine if even complex css selectors apply to a specific node. So improvements for this feature in Sigil are coming but as Kovid said, there is no way to handle all cases.
Absolutely fantastic work, Kevin!

Last edited by Tex2002ans; 01-29-2021 at 07:41 PM.
Tex2002ans is offline   Reply With Quote