09-19-2016, 08:30 AM | #1 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Feature Request: Jump to CSS class
Hi
When seeing a part in the book that needs editing, I look into the code to see what CSS class it has, then I find that class, so I can edit it. Would it be a lot of work to create a "Jump to CSS class" feature? Like so: - Highlight the CSS class in the HTML code - Rightclick the class - Menu option: "Jump to class" -> "style1.css" The "Jump to class" menu option would have a submenu with all files that contained that class. When clicking the filename, the editor would then load the file (or switch to the tab of the file if it is already open), and move to the first occurrence of the class name. If there is already a way to do this, then... uh... I won't know what to say |
09-19-2016, 08:31 AM | #2 |
creator of calibre
Posts: 43,879
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Enable the Live CSS panel which shows you *all* css rules (not just classes) that match the tag you are currently editing, and you can click on the names in blue to jump to the location where the style rule is defined.
|
Advert | |
|
09-19-2016, 08:39 AM | #3 |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Damn. I should have known. It shows that I sometimes don't edit books for months on end, and then I miss features when they're introduced
Thanks Although my 1920x1200 monitor is starting to feel small now... Last edited by Katsunami; 09-20-2016 at 08:11 AM. |
09-19-2016, 06:19 PM | #4 |
Evangelist
Posts: 417
Karma: 6913952
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Although this does work, extending the already existing "Ctrl+click" functionality to follow class name links (like most other HTML/CSS editors do) would be quite useful.
|
09-20-2016, 04:09 AM | #5 |
creator of calibre
Posts: 43,879
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure, but since I always use the much more powerful Live CSS myself, my motivation for it is not that high. Patches are welcome.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature request : using a custom css file | Bertrand | Writer2ePub | 8 | 12-28-2019 11:46 AM |
Feature request: new CSS class from computed style | kat7 | Sigil | 23 | 01-02-2015 01:30 PM |
Feature Request - custom CSS style | gentoosiast | EPUBReader | 1 | 12-14-2012 03:26 AM |
Feature request: CSS style application | Fitz | Sigil | 4 | 07-25-2010 06:36 AM |
Forum Jump feature | chrissy | Feedback | 2 | 06-11-2009 04:16 PM |