Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old Yesterday, 01:43 PM   #241
Leilu
Enthusiast
Leilu began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Feb 2023
Device: Kindle Oasis 3 / Kobo Libra 2
Hi,

I'd love it if, when I select text in the preview tab, the same text gets selected in the code as well, and vice versa. This would make it much easier to quickly locate the exact position of errors.
Leilu is offline  
Old Yesterday, 02:09 PM   #242
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: 9,410
Karma: 6733754
Join Date: Nov 2009
Device: many
I am sorry but we can get you close but not that close. We use the concept of a web path inside the Preview DOM tree where you click to determine the approximate location within the file in CodeView. The problem is that the DOM tree needs to be normalized so that sequential text nodes are properly merged into one but this normalization action resets the Preview cursor losing its location. It also requires the text being edited in CodeView to be fully well formed and properly constructed so the Preview WebPath can match a CodeView tag path. So given how locations are shared between a text position in CodeView to a Web path to a normalized text node and visa versa, the syncing is imprecise but should be very close unless javascripts have changed the DOM.

So this is not going to happen.

Sorry.
KevinH is offline  
Advert
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for Sigil Improvements or New Features KevinH Sigil 168 11-18-2025 01:23 PM
Suggestions for New Plugins and Plugin Improvements KevinH Plugins 0 09-22-2025 11:53 AM
Ideas for New Improvements or Features KevinH Sigil 97 04-09-2025 10:45 AM
Improvements/bugs/features dontcrash KOReader 10 10-23-2019 11:05 AM
Onyx M92: Suggestions for possible improvements Lode Onyx Boox 3 02-11-2013 08:40 AM


All times are GMT -4. The time now is 01:26 AM.


MobileRead.com is a privately owned, operated and funded community.