Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2025, 12:34 PM   #1
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 234
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
importing saved searches

Working on improving the access to footnotes, I devised a Regex which worked well on my MacBook and I saved it in the Saved Searches.

Later, I wanted to run the same regex on my linux box and ended up copying the 'sigil_searches_v6.ini' file from the MacBook to the linux box, lifted the regex from it and pasted it into the Find box of Sigil's F&R window.

It was immediately obvious that it required editing to remove lots of '\' escapes - then it worked fine and I saved it into the Linux Sigil saved searches.

Is there a way to import saved searches directly? Can I just copy & paste the four lines for each item from one file to the other without damaging the receiving file?
philja is offline   Reply With Quote
Old 03-19-2025, 12:47 PM   #2
Haudek
Member
Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.
 
Posts: 24
Karma: 111614
Join Date: Mar 2025
Location: Poland
Device: Kindle Voyage
1. close Sigil on both systems!
2. create backup "sigil_searches_v6.ini" on both systems
3. copy every four lines for every searches that you need.
4. paste in target system to "sigil_searches_v6.ini" four lines.
5. renumber the numbers at the beginning of the four lines
6. search in file "size=XXX" and substitute for XXX the last (maximum) number from the beginning of the line (that is, insert the number saved "Searches").

I hope I described it clearly.
Haudek is offline   Reply With Quote
Advert
Old 03-19-2025, 01:38 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,551
Karma: 5703586
Join Date: Nov 2009
Device: many
Use right click menu in Saved Searches to export selected saved searches to csv file.
Move csv file to Linux box and use right click in Saved Searches to read in your csv file.

You can easily edit those csv files and save in spreadsheets too if you like.
KevinH is offline   Reply With Quote
Old 03-19-2025, 01:56 PM   #4
Haudek
Member
Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.
 
Posts: 24
Karma: 111614
Join Date: Mar 2025
Location: Poland
Device: Kindle Voyage
Oh, I had completely forgotten about it. Thank you for the reminder.
You can import directly from the INI file and then delete unnecessary entries.

But I've manually changed that file many times over the years, even when it wasn't saved in UTF-8 yet, and it always worked.
Haudek is offline   Reply With Quote
Old 03-19-2025, 02:44 PM   #5
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 234
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Thanks Haudek and Kevin - job done.

never thought about right-click
philja is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comments in Saved Searches? enuddleyarbl Editor 3 03-14-2023 03:39 AM
Saved Searches: Recursing hierarchical searches ownedbycats Library Management 7 01-18-2021 05:33 AM
Saved Searches? jim3692 Sigil 3 04-26-2020 06:10 PM
Saved searches abecedarian Sigil 5 04-14-2017 06:48 PM
Where are searches saved? travger Calibre 2 08-26-2012 01:37 PM


All times are GMT -4. The time now is 01:21 PM.


MobileRead.com is a privately owned, operated and funded community.