View Single Post
Old 10-28-2012, 12:37 PM   #4
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,252
Karma: 1578442
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite, iPad Pro
It doesn't "do nothing", what it does is perform the Find in code view. And there is *no* guarantee at all that the text you selected in Book View has a match in code view (since it might have spans, entities etc making it a different piece of text). So it is safest to reconfirm to the user that the occurrence it has found in Code View is the one you were expecting before it does anything undesired like replacing the wrong value (and then jumping to the next match if you had clicked Replace/Find).

If Sigil doesn't take these precautions, then you can end up replacing the wrong text, which people would complain about an awful lot more (even worse for the fact that they wouldn't know what it it had replaced).
kiwidude is offline   Reply With Quote