Is there any easy way to exclude files from a HoudahSpot search?
I find to my dismay that HoudahSpot is offering me not only the many Scrivener files of research for the book I'm working on, but also Scrivener's backup files for them. So, say I look up
Parnell 1890 Carlow
I'll be offered many files containing those words, two of which might be called, for example,
Parnell 1890 Election.scriv
Parnell 1890 Carlow.scriv
but I'll also be offered
Parnell 1890 Election Backup.scriv
Parnell 1890 Election Backup-2.scriv
Parnell 1890 Carlow Backup-3.scriv
and so on.
Now, in the state of hazy exhaustion that you get into while writing at speed and looking up little bitty bits of facts for what you're writing, themselves scattered into various files and not awfully well indexed by the Mac, it's all too easy to click on one of these "…Backup.scriv" files. And if I've made changes to these, I have no idea what the effect is - are the changes saved only to this backup, or do they resound into the original, backed-up file?
It would ease my mind greatly if I could automatically exclude all Scrivener backups from the search. Can I?
Hi!
One way to do this is to exclude all file where the name contains "Backup".
1. Set up a criterion for "Name" "Contains" "Backup"
2. Click and hold the "Group" button at the end of the criterion row. The striped button after "-" and "+".
3. Select "Nest in None Group" from the menu that pops up.
(The above applies to HoudahSpot 4.0. In HoudahSpot 3 you can find options to create groups in the Query menu)
Best,
Pierre Bernard
Houdah Software s.à r.l.
Thanks, I'll try this in the morning when I'm more compos mentis.
At the moment, HoudahSpot is opening with the search criterion Humphrey Gilbert (don't look [shudder]) open, since (I suppose) that was the first search I used it for.
Hi!
You probably have saved this as your default. HoudahSpot suggests you save a default.
You can revert to factory defaults from HoudahSpot > Preferences > General
You can save a new default from File > Save as Default
Best,
Pierre Bernard
Houdah Software s.à r.l.
If I set up a criterion for
"Name contains Backup" with the value "-"
will this stop me from searching for other "name contains" values, with the value "+"?
(I use "name contains" to look for specific files a lot.)
Hi!
The "+" and "-" buttons serve to add or remove criteria.
The striped button serves to create criteria groups.
Groups combine criteria using boolean operators. They are labelled:
- All of the following are true
- Any of the following are true
- None of the following are true
See page 9 of the User Guide for details.
You can add and combine as many criteria as you want.
E.g. You can search for files where the name contains "Parnell", but does not contain "Backup".
I have attached a sample search.
Best,
Pierre Bernard
Houdah Software s.à r.l.
Hmm.
I tried setting a search with the Name section set to exclude "backup.scriv".
But then the Name section disappears from the options. Apparently you can only choose one sweetie from the Name box. So I can't choose a) "Name must not include backup.scriv" and also b) "Name must include Immersion".
Hi!
Have you tried the saved search attached to the previous post?
I have prepared a short video that shows how this is set up:
https://www.houdah.com/houdahSpot/assets/NotBackup.mp4Best,
Pierre Bernard
Houdah Software s.à r.l.
Trouble is, if I use your search (thank you for it), then I seemingly can't search for other files by name, which kind of makes HoudaSpot useless for me.
(I can't see a way to attach a screen shot here to show you what I mean.)
Oh, wait, found out how - here it is.
Hi!
I am not quite sure I understand how this prevents you from doing other searches by name.
The video shows how to add more "Name" criteria: search for files names either "Test" or "Other".
If you don't want to restrict the search to Scrivener files, you can remove the file extension criterion.
If you repeatedly search fro Scrivener files, you can save this search as a template. You don't need to set it as the default for new windows.
Where does Scrivener save the Backup files?
If these go into a specific folder, you can use Locations to exlude that folder.
Best,
Pierre Bernard
Houdah Software s.à r.l.
No, I don't want to *restrict* my searches to Scrivener searches - I very often search for other research materials - PDFs, ebooks, photos, films, Word documents, etc. I just don't want all Scrivener's backups part of the search unless I specifically say so!
Ok, you then could just add the group that excludes files named "Backup" to your default setup. That would always exclude such files. Some of which may be backups other than those created by Scrivener.
Or you could add this to a template and use that template whenever you want to exclude files named "Backup".
I have had a look at Scrivener 2.7. It has several options in Scrivener > Preferences > Backup that might help.
There is an option to compress backup files. These should not appear in a search by text content.
The version for Scrivener I tried saves backups with names ending in either .bak.scriv or .bak.zip. You could exclude those by setting up a cirterion of file name ends with .bak.scriv
Also Scrivener seems to save all backups to the same backup location specified in Scrivener > Preferences > Backup
In HoudahSpot Locations you exclude this folder:
- Click "Exclude Locations"
- Select Other… from the menu in the new "Exclude:" row
- A panel opens to ask for a folder
- In Scrivener > Preferences > Backup click "Open backup folder…"
- Drag the folder that opens from Finder to the panel in HoudahSpot
Best,
Pierre Bernard
Houdah Software s.à r.l.
The "file name ends with bak.scriv" idea will not work. The second backup is named bak-1.scriv
I have made video showing how to exclude the Scrivener backup folder:
https://www.houdah.com/houdahSpot/assets/Scrivener.mp4Best,
Pierre Bernard
Houdah Software s.à r.l.
My Scrivener prefs give the backup location as:
/Users/me/Library/Application Support/Scrivener/Backups
I'm surprised that HoudahSpot would search ~username at all, much less ~/Application Support
(Edit) I can't exclude the Library because I can't get it to show in the list of files that HoudahSpot offers in its 'Exclude' dialogue.
(Edit again) Got it to show, saved that search as default, and it now isn't showing Scrivener files with 'Backup' in the name. But it's showing both .scriv and .scrivx files. Apparently "SCRIVX files are used for saving binary
.SCRIV documents in an XML format. This way, third party tools and text editors can read the information more easily."
Has HoudahSpot got a means of including and excluding multiple names, filetypes, extensions, etc?
(Edit yet again): Oh, I see it has. OK.
() But… this means my default search is 10,000 documents. Is that a little unwieldy?
Pierre, thank you for the video, which goes at the speed of light. Is there any way I can slow it down so I can see what's happening?
Hi!
The ~/Library folder has some interesting files. Apple Mail stores messages in ~/Library/Mail. Many applications have files in ~/Library/CoreData for the very purpose of making these accessible through Spotlight.
From the open panel you can get to the ~/Library folder by pressing command-shift-G and typing in ~/Library.
Preferences as to maximum search results vary wildly. Some customers want to limit searches at 50 results. Others switch of the limit to see every last file. I recommend setting a limit so that you can manage the lists: sort and scroll to preview and pick out files. If you hit the limit, add more criteria to get a more manageable list. 10'000 is at the upper end of "manageable".
Open a new window. Set the limit you prefer and select File > Save As Default to have that search set-up and limit as default for new windows.
Best,
Pierre Bernard
Houdah Software s.à r.l.
Thanks, Pierre - I think I'll stick with the 10,000 files limit, because I often search (while writing this book) for files I haven't accessed for some years. In fact, at times I should perhaps set it larger…)
Still not working, I find. Excluding the Library does no good, adding a parameter for Name Is Not Backup does no good. I can't seem to stop it searching for these backups.
The email contained the solution - thank you. The parameters were:
1. The search should be "File Extension" "is not" "scrivx"
2. "Name" "contains" "Backup" and the group is "None"
Many thanks. That works now.