Quote:
Originally Posted by KevinH
Yes that is where they asked for it to go as far as I could tell.
Opening an xhtml can be done in multiple ways. Going to a single instance in an xhtml file when that class could be used in any number of xhtml files makes little sense. That list is not complete that field is there to illustrate it is being used.
Where it is used in xhtml files when it may be used lots of times in multiple places (not just the randomly chosen link in the Report table) is best done by Find and Replace.
So it works as designed as far as I can tell.
|
The current (pre- RC) takes you to the top of the xhtml page corresponding to the line which you double click on. It has been that way for as long as I can remember.
The request, Post #46 in the Suggestions for Sigil Improvements thread, and your reply in
post #48 mentioned:
Quote:
|
3) You can double click on a file in Classes Used but the cursor is postitioned at the start of the file. Would it be possible to position the cursor at the first occurance of the class shown? If this can't be done would it be possible to allow us to copy the class name and then search for it in Find and Replace?
|
and your reply:
Quote:
|
3. You can already right click in a class in the editor and Sigil will take you directly to it in the css. I will look into allowing the Classes Used Report to do the same.
|
ctrl-clicking on the class name in an xhtml will take you to the css location (if it is linked and it can find it) on the stylesheet.
double-clicking on the Classes Used takes you to the top of the xhtml page referenced on the line you click on.
I use this functionality all the time when I am cleaning up classes with nonsense names. When I find a class that is a simple style (eg. italic, or bold) then using find/replace is usually the best answer. However, if there are more complex classes - especially when used relative to surrounding classes - then I like to see how the style is presented by going to the actual xhtml page. So the above request to go to the first occurrence of the class on the xhtml xhtml page makes more sense.
I do like the idea of being able to go directly to the css occurrence, so using ctrl-click on the Classes Used page would be consistent with that functionality when used in the coding view. Perhaps using right-click on the class name to highlight the name (or automatically place it in the Find field) would be helpful as well.