![]() |
#1 |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Nov 2012
Device: none
|
Marking/Deleting a File Name Pattern?
A quick question: is there a way to bulk mark or deleting a File Name Pattern in Sigil? For example, You have recurring instances of p*_000.html and p*_001.html and want to delete/mark only the former.
I know how to do this outside of Sigil, but have missed how to do this within the Software. Thanks for pointing me in the right direction. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Not really. There may be a plugin to do that that I am unaware of. You can of course select contiguous sets of files and delete them as a group. So possibly using drag and drop to reorder them into larger contiguous blocks. Or perhaps use the Regular Expression Renamer tool alongside Sort HTML to allow easy block selection.
Last edited by KevinH; 09-19-2022 at 05:11 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Nov 2012
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I just can't imagine bulk file deletion within an EPUB being a very common task.
Can you explain the workflow that would make this kind of feature popular enough to work on adding it to Sigil? |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,528
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Wouldn't it be far easier just to unzip the Epub, drop the files (probably from the command line for simplicity) and then rezip the files (ignoring for now the requirement to have the mimetype [I think that's the file] uncompressed and as the first file) then use sigil to open and save the file to get the internal zip format perfect.
Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,354
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You would also need to update the spine/manifest in the opf if you chose to remove them manually via unzipping...
|
![]() |
![]() |
![]() |
#7 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
There are files like the content.opf that need to be updated whenever files get added/deleted too. Quote:
You can export, do whatever adjustments needed, then import the folder back. |
|||
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Nov 2012
Device: none
|
Thanks all for the many suggestions. I will look at the "FolderIn" and "FolderOut" Plugins, as they may be exactly what I'm looking for.
As many of you noted bulk deletion is not a common problem to address but it does come up once in a while. For example, when Chapter styling is split between multiple html files, say with a leading graphic in the first file and the rest of the header and body in the other. Of course you can merge instead, but I normally prefer not to keep the leading graphic (normally a line) at all because I prefer 50 html files to 100. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Actually, they will not help with updating the opf. It is treated just like any file by FolderIn and FolderOut.
The easiest workaround is to use Sigil's RegexRenamer functionality to rename the files to be deleted so that once sorted they will appear as a contiguous block in BookBrowser where they can easily be block selected and deleted. I will think about adding a menu item to Select Files by regex to a future version, although a plugin could handle this easily as well. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Export scribbles after marking up Word DOC file on Boox | Crowriver | Onyx Boox | 3 | 09-21-2020 03:33 PM |
Aura H2O Can I stop a Kobo H2O from marking the file system as dirty short of a factory reset? | ceridwen | Kobo Reader | 13 | 03-28-2020 10:15 AM |
Sigil Deleting a file on save. | n9qqk | Sigil | 4 | 04-15-2018 01:50 PM |
To prevent unrooting through the 6.3.1 update I'm deleting a file | Hope | Kindle Fire | 12 | 05-09-2012 08:32 AM |
Deleting file type | kevinofengland | Calibre | 5 | 10-14-2010 05:10 AM |