10-28-2012, 01:13 PM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
replace in book view changes view to code view
as title says. If I am in in book view & use find then replace , the view changes to code view.
is that supposed to happen . It was not like that in the old v4.whatever |
10-28-2012, 01:18 PM | #2 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
That is supposed to happen.
Replace in Book View was never reliable and in order to be certain it worked properly, replace can only be done in Code View. So if you are in Book View it will helpfully switch you to Code View. |
Advert | |
|
10-28-2012, 01:23 PM | #3 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
it seems to switch view but then do nothing, & it has to be told twice ? |
|
10-28-2012, 01:37 PM | #4 |
Calibre Plugins Developer
Posts: 4,694
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
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). |
10-28-2012, 02:20 PM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i get that - so you allow find to operate in book view, but not any of the replace options,
I expect I will get used to it. in this instance I was using find / replace to step through a chapter replacing some (but only some) plain hyphens with emdash , & it's easier to see the hyphen usage in context while in book view. (as in: is that a hyphenated word or a misuse of a hyphen that needs changing ...). I've become accustomed to doing that entirely in book view. I note also that replace & find next, current file, with direction = down, now loops back to start of file & continues to search from there. in the older versions that did not happen: down meant down. |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil highlight Book View No Longer Shows in Code View | Themus | Sigil | 4 | 10-04-2012 08:54 PM |
quotes differences book view & code view | cybmole | Sigil | 13 | 03-29-2011 02:53 AM |
lock book view & code view windows into synch | cybmole | Sigil | 5 | 01-19-2011 11:30 PM |
Possible to have default view as code view? | sherman | Sigil | 5 | 06-15-2010 02:47 AM |
Is it possible to view the Format of a book in Library view? | highwaykind | Calibre | 6 | 01-23-2010 07:28 PM |