View Single Post
Old 09-29-2018, 07:47 PM   #1
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
[2 Bugs] + [Enhancement] Book Browser, CSS, URLs, Oh My!

I attached an example EPUB at the end of this post.

Sigil 0.9.10.
Windows 10, 64-bit.

Bug #1 (Book Browser)

Explanation

Use Ctrl+Click to highlight multiple files (with a gap in between, not consecutive files).

Drag/Drop to new location.

Only first file moves. The others stay exactly where they were.

Steps to Reproduce

Step 1. Ctrl+Click Section0002.xhtml + Section0004.xhtml in the Book Browser:

Click image for larger version

Name:	SigilBug1Step1.png
Views:	172
Size:	10.8 KB
ID:	166580

Code:
- Section0001.xhtml
- Section0002.xhtml <--- Ctrl+Click
- Section0003.xhtml
- Section0004.xhtml <--- Ctrl+Click
Step 2. Drag/Drop before Section0001.xhtml:

Click image for larger version

Name:	SigilBug1Step2.png
Views:	161
Size:	16.1 KB
ID:	166581

Get:

Code:
- Section0002.xhtml <--- Moved
- Section0001.xhtml
- Section0003.xhtml
- Section0004.xhtml <--- Didn't move
Expected:

Code:
- Section0002.xhtml
- Section0004.xhtml
- Section0001.xhtml
- Section0003.xhtml
Bug #2 (CSS Delete)

Explanation

Only 1 out of 2 CSS files delete when a file is open in Book View.

Note #1: This doesn't seem to effect Code View.

Note #2: This only occurs when the HTML file has multiple CSS files attached to it. (?) (See Section0004.xhtml, only 1 of the stylesheets are linked. Bug does not occur.)

Steps to Reproduce

Step 1. Have Book View open on Section0001.xhtml.

Step 2. Shift+Click to highlight both CSS files. Right-Click + Delete:

Click image for larger version

Name:	SigilBug2Step2.png
Views:	181
Size:	28.0 KB
ID:	166582

Step 3. In the Delete menu, make sure both checkboxes are set and push "Delete marked files":

Click image for larger version

Name:	SigilBug2Step3.png
Views:	165
Size:	4.2 KB
ID:	166583

Only stylesheet1.css will delete.

Potential Enhancement (Open/Copy Link)

Would be helpful if a link could be right-clickable in the Preview/Book View, then get an "Open Link" + "Copy Link"...

Like in Firefox/Chrome:

Click image for larger version

Name:	FirefoxRightClick.png
Views:	176
Size:	6.9 KB
ID:	166586

This would allow you to copy/paste links easily.

In Sigil, you can only left-click the link to open in your default browser.

And if you right-click, all that appears in the menu is "Inspect Element":

Click image for larger version

Name:	SigilRightClickLink.png
Views:	168
Size:	5.2 KB
ID:	166584

Why This Would Be Helpful

I was recently working on a book with 1000+ URLs. I was testing a lot of them in the Book View, and it would have been nice to copy/paste links.
Attached Files
File Type: epub Sigil.Book.Browser.Bug.Examples.epub (3.3 KB, 183 views)
Tex2002ans is offline   Reply With Quote