You’ve just read about how Spotlight works fresh out of the box. But you can tailor its behavior, both for security reasons and to fit it to the kinds of work you do.
Here are two ways to open the Spotlight preferences center:
In any case, you wind up face to face with the dialog box shown in Figure 4-11.
You can tweak Spotlight in two ways here, both very useful:
Turn off categories. The list of checkboxes identifies what Spotlight tracks. If you find that Spotlight uses up valuable menu space listing, say, web bookmarks or fonts—stuff you don’t need to find very often—then turn off their checkboxes. Now the Spotlight menu’s limited precious slots are allotted to icon types you care more about.
This trick can be especially useful if you don’t use Spotlight’s Internet-searching features. “I’m perfectly capable of looking up movies online,” you might say. “I don’t need to clutter my Spotlight results list with movie names.” Fine—turn off Movies.
Change the keystroke. Ordinarily, pressing -space bar highlights Spotlight in your menu bar, and Option--space bar opens the Searching window. If these keystrokes clash with some other key assignment in your software, though, you can reassign them to almost any other keystroke you like.
To do that, click Keyboard Shortcuts; you jump directly to the System Preferences→Keyboard→Shortcuts tab. Here you can specify a new keystroke, as described in Tip.
Apple assumes no responsibility for your choosing a keystroke that messes up some other function on your Mac. -S, for example, would not be a good choice.
On the other hand, if you choose a Spotlight keystroke that macOS uses for some other function, a little yellow alert icon appears in the Spotlight pane. This icon is actually a button; clicking it brings you to the Keyboard pane, where you can see exactly which keystroke is in dispute and change it.
Figure 4-11. Here’s where you can specify what categories of icons you want Spotlight to search, and what keystroke you want to use for highlighting the Spotlight search box.
You can hide certain folders from Spotlight searches. Maybe you have privacy concerns—for example, you don’t want your spouse Spotlighting your stuff while you’re away from your desk. Maybe you just want to create more focused Spotlight searches, removing a lot of old, extraneous junk from its database.
Either way, the steps are simple. Open the Spotlight panel of System Preferences, as described previously. Click the Privacy tab. Figure 4-12 explains the remaining steps.
Tip
When you mark a disk or folder as non-searchable, Spotlight actually deletes its entire index (its invisible card-catalog filing system) from that disk. If Spotlight ever seems to be acting wackily, you can use this function to make it rebuild its own index file on the problem disk. Just drag the disk into the Privacy list and then remove it again. Spotlight deletes, and then rebuilds, the index for that disk.
(Don’t forget the part about “remove it again,” though. If you add a disk to the Privacy list, Spotlight is no longer able to find anything on it, even if you can see it right in front of you.)
Figure 4-12. You can add disks, partitions, or folders to the list of non-searchable items by dragging them into this window. Or, if the private items aren’t visible at the moment, click +, navigate to your hard drive, select the item, and then click Choose. To remove something from this list, click it and then press the Delete key or click the – button.
Once you’ve built up the list of private disks and folders, close System Preferences. Spotlight now pretends the private items don’t even exist.
Get macOS Sierra: The Missing Manual now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.