![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Help! Is it possible to merge 2 sets of .ini files?
I have no idea how this happened (Sigil crashed a couple of times recently and I presume it happened then, although I am pretty sure I still had everything intact after the last crash and right up to a few hours ago...) but I just noticed that somehow QUITE A LOT of my clips and saved searches have disappeared. Most of them, in fact.
I do have backups of the .ini files but the last one is from the 26th of September and like an eedjit despite making a mental note to do it "as soon as I finish this" I did not make new ones after recently adding / modifying some of these. x( (Lesson learned. Modify clips and / or saved searches, make new backup IMMEDIATELY afterwards). Using the Compare feature of Notepad++ I can see that there are things present in the saved backup that are gone BUT also some of the recent changes have been preserved in the current files... so I don't think I want to just replace the current file with the backup. But I also noticed there are numbers at the beginnings of the lines which presumably tell Sigil the order to present the items and if I copy-paste the missing stuff from one file to the other it wreaks havoc with those and I am really not sure I feel up to re-doing all the numbers by hand (saved searches has more than 700 lines of code, plus in addition to adding some new things recently I also modified the order of certain groups). :/ So my question is this: Is there any way to merge two sets of .ini files to keep the most recent info from each one and get as complete a set of data as possible? (maybe using something a little more sophisticated than just a text editor?) I realise this is unlikely but before I give up I'd rather ask because you never know... (Even better --but obviously I don't believe this will be possible even for a second...-- is there any way to recover the .ini versions from, say, this morning / yesterday?) I'll leave things alone until tomorrow (it's bedtime for me now) and hope that miraculously by then someone will have a solution (bearing in mind that I am not a dev and while I am not afraid of code my skills are limited and basic and my tools stop at Notepad++ and whatever comes by default with Windows 8.1). :/ Thanks in advance for any advice (other than "more frequent backups stupid." Please don't kick me while I'm down). |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Yes it is possible. It could be done with a text editor that supports just ascii and NOT utf-8 and very very careful cutting snd pasting be sure to get all of the data associated with each key.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
What about the numbers at the beginning of the lines though, if I leave them alone will they cause trouble / would I have to re-do them manually? |
|
![]() |
![]() |
![]() |
#4 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
I'm so furious at myself for this, usually I am very "MY PRECIOUSSSSS" about my ini files and the instant I make a change I make a new backup, I have all the backups in a folder locally and the most recent one is also stored in dropbox JUST TO BE SURE... of course it had to be the ONE TIME I don't make a new backup that I lose them.
|
![]() |
![]() |
![]() |
#5 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
So now I'm really just worried about the line numbers: are they going to be problematic? Can Sigil sort out duplicates and correct them or is that asking too much? (If I just copy-paste directly I am almost sure I will end up with duplicate numbers). |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Run a test. First just copy both ini files to create backups in case a mistake is made. Then start with a fresh default or known good ini file created by Sigil. Then copy from one of the ini files just one item and paste it into the known good ini. Fire up Sigil to see if it is recognized. Close out of Sigil. Then repeat with something from the other ini file. You may have to renumber some of the numbered list. Fire up Sigil to see if it was accepted.
Rinse and repeat. |
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It supports almost everything a coder could want ![]() (while viewing) Colorizes tags, bracket pair match ... and it is easy on the wallet: Free ![]() |
|
![]() |
![]() |
![]() |
#8 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
But on the whole, you just edit and it does not change the mode of the file. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merge multiple XHTML files at once | gmw | Sigil | 1 | 12-28-2010 02:35 AM |
LBook Firmware ini files | sein | Astak EZReader | 17 | 06-05-2010 08:49 AM |
How to merge Mobi files? | King Mook Mook | Kindle Formats | 1 | 12-26-2009 05:07 AM |
Is there a program that will merge prc files and... | GatorDeb | Kindle Formats | 42 | 10-24-2008 11:48 AM |
Is there a way to merge lrf files? | Tom Swift | Sony Reader | 14 | 09-24-2007 07:13 PM |