04-19-2022, 06:10 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2017
Device: Kobo
|
Feature Request: Open/Save as unpacked files
I tend to work on an epub over the course of a few days or so, and usually unpack the epub as plaintext files so that changes can be tracked via version control.
It would be nice to be able to have an options to "Save Unpacked" or "Open Unpacked" so that I don't have to unpack the file, or repack the file before I can work on it. Thoughts? Last edited by daemonblade; 04-19-2022 at 06:11 PM. Reason: title-correction |
04-19-2022, 06:20 PM | #2 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil has its own built-in check point system that use git repositories which users can use for version control of their individual epubs. There's also a pair of plugins (FolderIn/FolderOut) that can be used to do what you want.
|
04-22-2022, 01:46 AM | #3 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2017
Device: Kobo
|
Quote:
Thanks! |
|
04-22-2022, 08:39 AM | #4 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
The Sigil Checkpoint is git based and uses dulwich to implement it. It does not store the epub as a single entity and instead stores the files of the epub. It never has, so I am not sure what "the last time you looked" is referring to.
Last edited by KevinH; 04-22-2022 at 08:49 AM. |
04-22-2022, 09:40 AM | #5 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. From the very beginning, Sigil's checkpointing system created github repositories via python's dulwich module. The repositories do not contain binary blobs of the epub. That would be pointless, as there could be no meaningful diffs generated. The repositories are comprised of the individual contents of the expanded EPUB archive--easily diffed from checkpoint to checkpoint (and accessible via external tools--including git--if desired).
It seems to me that people (and I'm not singling out the OP here by any means) seem to really go out of their way to avoid using one of the most useful features that I think has been added to Sigil in a long time. It just seems that many people tend to suggest improvements to Sigil that can already be done via the checkpoint system. Last edited by DiapDealer; 04-22-2022 at 09:48 AM. |
04-22-2022, 10:18 AM | #6 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This actually gives me an idea for a plugin. Something that looks for a Checkpoint repo for the opened book and 1) launches a terminal in the repo's directory so that git (if in the PATH) can be immediately used, and 2) opens a file browser in the same directory so that individual files can be opened with other applications.
It might be a little awkward (semantically) to use the "Restore Epub from previous Checkpoint" button to load tagged commits just made externally, but it seems to work just fine. It might make things a little more simple/intuitive for seasoned git users to be handed a git-ready terminal and a file-browser with the Epub's contents. The checkpoint repo could then be easily connected to github remotes if desired. Forks made, Pull Requests merged, then pull changes down, commit, tag and merge into the working Epub via "Restore Epub from previous Checkpoint" One would just have to make sure the initial repo was created by Sigil so all necessary pieces are in place. |
04-22-2022, 10:55 AM | #7 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Also maybe incorporating a new feature in Sigil for advanced users to relocate the default checkpoint repositories folder. Whether through preferences or environment variable.
|
04-22-2022, 11:25 AM | #8 |
Addict
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
|
04-22-2022, 12:55 PM | #9 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You can "sort of" do something like it now. But you have to relocate the entire Sigil user preferences directory along with it.
|
Tags |
feature request |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Feature Request - Save Catalog Output Options | nynaevelan | Library Management | 0 | 02-11-2012 01:33 PM |
Get Books - Feature Request - Save Searches | nynaevelan | Calibre | 5 | 05-14-2011 05:23 PM |
Feature request: Conversion, save backup | nickdma | Conversion | 5 | 01-22-2011 01:46 PM |
Feature Request: Moving and not copying when adding files... | Chuwiey | Calibre | 7 | 07-03-2010 06:35 AM |
Feature request: Select what file format to save RSS into | haridasi | Calibre | 2 | 08-23-2008 11:03 AM |