03-21-2024, 12:09 PM | #1 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Jul 2023
Device: none
|
Sigil niggles
These are all not critical or even that important, but would make Sigil more convenient for me to use.
1. Open the 'Insert Special Character' window. Type something in the search and replace boxes, and click on find. When found, click on a special character. It goes into the replace box. I also have had a couple crashes inserting special characters into search and replace boxes, but I can't reproduce them. 2. Setting the focus by clicking in the find and replace boxes should select all the text in the box, like what happens when you press tab in the find box. 3. The font in the find and replace boxes make it hard to distinguish between straight and curly quotes. 4. Dry run replace lists lines to be changed in each section from last to first. It would be less confusing if it were first to last. 5. If there is a horizontal scroll bar in the preview, after a find keep the scroll as far to the left as possible while still showing the result of the find. 6. If you double click on an image or select 'Open Tab for Image' and then close the image, the tab shown is the rightmost tab. It would be nice if it went to the tab reflected in the preview window. 7. After opening a css file, clicking in the preview window does not sync with the corresponding code tab. When proofreading, I find myself scrolling through the preview window, finding a problem that requires changing a css file, fixing it, going back to scrolling through the preview window, finding another problem, clicking on it, switching back to the code tab, and finding myself back at the previous problem. 8. Is it possible to set the delay before updating the preview window when typing in the code window? I work with OCR texts, and sometimes an image has text that was not OCRed, and I will be typing the text from the image, and the image keeps flashing as the preview window updates. 9. When the preview window updates, it appears to flash to the start of the section and then show the current position. Is that flash necessary? |
03-21-2024, 01:20 PM | #2 |
Sigil Developer
Posts: 7,736
Karma: 5446592
Join Date: Nov 2009
Device: many
|
1. That is expected behaviour. It will paste to the previous last window open that has focus. If you can get a producible crash please provide the instructions how.
2. Why? 3. You control your ui fonts and size through Sigil Preferences. Find and Replace will inherit those. You can of course use qt stylesheetsettings (.qss) to further modify things. 4. Which order are you talking about? Search order and direction are controlled by your last Find and Replace setting. Please provide a sample epub and exact sequence of steps needed to see what you are referring to. Update: in order to do multiple replaces in a single file, you must make the replacements from the bottom of the file upwards so that the file positions of each match are kept correctly. Doing a replace starting at the top of the file first will not work as any other starting locations are now incorrect unless the replaced string jast happened to have exactly the same number of characters as the string being replaced. If you only find and replace one at a time and repeat this is not an issue but for bulk lists of file replacement locations like DryRun and Replacement Tables, doing them in reverse order matters. So that reverse order is a requirement for both the DryRun and Full Replacement Table versions of ReplaceAll. 5. Preview scrolling is automatic to centre a particular piece of code / curser. Nothing I can do here as QWebEngine controls that. The easiest solution is to undock Preview and move it to another screen and grow it to prevent the need for horizontal scrolling. If you only have one monitor, then click in Preview then use Sigil's zoom bar to zoom Preview out to prevent the need to scroll. 6. You control which tab is closed. And showing a particular image and closing it adds it to the current tab order. Just close the tab you want. 7. I am not seeing this at all. I can open any xhtml file so it shows in Preview. Then in CodeView open a CSS file that is linked to that xhtml file and see live changes. Sometimes if a css change is broken then Preview is not updated. Hitting the manual reload button in Preview fixes that. 8. That is already a variable delay. As long as you are actually still typing, no update of Preview is scheduled. If you pause typing, then after a short interval Preview will auto update. 9. Yes we are reloading the full xhtml file in Preview and then scrolling to where CodeView tells us to go. I can not see this on my MacOS machine but I use normal file sizes with few images and I have a fast machine. On a slower machine with many images, fonts and larger than typical file sizes (ie. cramming more than one chapter into a single file) the reload delay becomes more noticeable. Splitting xhtml to hold only one chapter, and turning off auto red squiggle spell checking normally helps speed things up. Many many niggles just go away when using normal size xhtml files with just one chapter per file. Splitting monolithic multi-chapter files should always be your first step. Last edited by KevinH; 03-21-2024 at 02:10 PM. |
Advert | |
|
03-21-2024, 02:48 PM | #3 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Ad 2. No, no… Why? Triple click = select all, but not by default.
Ad 3. I mentioned it here. I personally use the Consolas font here, which indeed IMHO has a better distinction between apostrophes and quotation marks. Code:
#cbFind, #cbReplace {font-family: "Consolas"; font-size: 12px;} |
03-21-2024, 03:41 PM | #4 | ||||||
Enthusiast
Posts: 39
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
Because generally you want to completely replace what is in the box, not edit it. Also most text editors work this way. Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
03-21-2024, 03:51 PM | #5 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Jul 2023
Device: none
|
Because more often I want to enter something new rather than change what is there. The one that gets me is when I have a single space in the replace box and I end up adding extra spaces. Also most text editors work this way. Try other programs with find/replace and see.
|
Advert | |
|
03-21-2024, 03:57 PM | #6 |
Well trained by Cats
Posts: 29,974
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I simply use ctrl-a if I want All
... and I do edit replaces all the time to make small changes |
03-21-2024, 04:11 PM | #7 | |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Quote:
Edit: ...although indeed in 80% of the editors checked, the text is selected. Last edited by BeckyEbook; 03-21-2024 at 04:15 PM. |
|
03-21-2024, 04:26 PM | #8 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Ad 4. As far as I remember I requested the reverse order myself, but I can agree that the default ascending order would be better.
So if @KevinH doesn't see a problem here - I'm all for it. Reverse order is relevant for single substitutions that make after constantly changing offsets for further finds in the text, not for bulk substitutions. |
03-21-2024, 04:27 PM | #9 |
Sigil Developer
Posts: 7,736
Karma: 5446592
Join Date: Nov 2009
Device: many
|
@jwes,
1. No, it works as designed. Click where want the target before opening the Insert Special Character. 2. No, there are alternatives to "select all" that others replied with. Use those. 4. Search order is fixed in reverse for DryRun and ReplacementTable as explained in the update in my reply. The explanation of why it is done this way makes it clear, this is not not changing. 6. Tab Manager always choses the next tab to show when one is closed, the current contents of Preview has no impact on that. Just double click in BookBrowser to open any tab. 7. There is no way to force sync to the contents of any inactive tab. 8 and 9. I will look into ways for a user to use an environment variable to override the automatic refresh delay. That said, a Preview refresh is a full fresh QWebEngine load and scroll and there is no way around that. I can not stop Preview (or any webpage that is reloaded) from flashing on old or slow systems. Last edited by KevinH; 03-21-2024 at 04:31 PM. |
03-21-2024, 04:35 PM | #10 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Ad 4 again.
I understand that the reverse order is important in the function itself, but could the default DISPLAY in the window be in ascending order, with the function itself doing the replacements from the end? |
03-21-2024, 04:51 PM | #11 |
Sigil Developer
Posts: 7,736
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Why? Then we would have to do repeated sort all records before applying the replacements (once per file). Why keep two different orders when one is all that is needed.
|
03-21-2024, 05:05 PM | #12 |
Sigil Developer
Posts: 7,736
Karma: 5446592
Join Date: Nov 2009
Device: many
|
FWIW,
Allowing a user to use an environment variable to override the default Sigil Preview Timeout of 1000 (milliseconds) is straight forward. I will add in a constraint of a minimum of 100 ms and a maximum of 10,000 ms for sanity sake. I will add this to my todo list for the next release after this upcoming one right after the Easter holidays. |
03-21-2024, 05:55 PM | #13 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Jul 2023
Device: none
|
|
03-21-2024, 06:05 PM | #14 |
Sigil Developer
Posts: 7,736
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Because when you open the Insert Special Character dialog you are stealing the focus away from whatever had it. Whatever had that focus last is the target for the Dialog whether it is a CodeView, the Find field or the Replace field or another field in a completely different Dialog.
That was the whole design from the beginning and after more than 10 years, I am not making ui changes without really good reasoning. That is not changing. Happy for suggestions for changes or new features and will consider them, but that in *no* way guarantees these changes or requests will ever be accepted into Sigil master. Last edited by KevinH; 03-21-2024 at 06:12 PM. |
03-21-2024, 06:42 PM | #15 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If I had my druthers, all phrases that begin with, "Most text editors..." would get silently deleted.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Error Message: Book File Would Not Open in Sigil | fkustaa | Sigil | 5 | 03-18-2017 12:54 AM |
Insert special character: some niggles | Phssthpok | Editor | 2 | 11-19-2016 12:55 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook | rosshalde | Sigil | 12 | 11-13-2014 09:34 AM |
Some small editor niggles | Phssthpok | Editor | 5 | 11-07-2014 07:39 AM |