diff options
author | Alex Guerrero <alexguerrero1092@gmail.com> | 2014-11-13 19:40:25 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-11-14 12:09:15 +0100 |
commit | 93535c5503c66a9ff4ffa22e2b719dc003ef88a1 (patch) | |
tree | c99715312396e11152b7e01e6698bd0c88b979d2 | |
parent | 465217fbda0face4e75b55f1c64233f1552ff095 (diff) | |
download | dotfiles-93535c5503c66a9ff4ffa22e2b719dc003ef88a1.tar.gz dotfiles-93535c5503c66a9ff4ffa22e2b719dc003ef88a1.tar.bz2 dotfiles-93535c5503c66a9ff4ffa22e2b719dc003ef88a1.zip |
.osx: Add Yosemite’s search results for Spotlight
Yosemite introduces new Spotlight search results, and if you don’t add it to `defaults write com.apple.spotlight orderedItems` it will be removed from the System Preferences → Spotlight → Search Results` list with no way to re-enable them through the System Preferences panel.
Closes #456.
-rwxr-xr-x | .osx | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -518,7 +518,14 @@ defaults write com.apple.mail SpellCheckingBehavior -string "NoSpellCheckingEnab # been indexed before. # Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume. sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes" -# Change indexing order and disable some file types +# Change indexing order and disable some search results +# Yosemite-specific search results (remove them if your are using OS X 10.9 or older): +# MENU_DEFINITION +# MENU_CONVERSION +# MENU_EXPRESSION +# MENU_SPOTLIGHT_SUGGESTIONS (send search queries to Apple) +# MENU_WEBSEARCH (send search queries to Apple) +# MENU_OTHER defaults write com.apple.spotlight orderedItems -array \ '{"enabled" = 1;"name" = "APPLICATIONS";}' \ '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \ @@ -535,7 +542,13 @@ defaults write com.apple.spotlight orderedItems -array \ '{"enabled" = 0;"name" = "MOVIES";}' \ '{"enabled" = 0;"name" = "PRESENTATIONS";}' \ '{"enabled" = 0;"name" = "SPREADSHEETS";}' \ - '{"enabled" = 0;"name" = "SOURCE";}' + '{"enabled" = 0;"name" = "SOURCE";}' \ + '{"enabled" = 0;"name" = "MENU_DEFINITION";}' \ + '{"enabled" = 0;"name" = "MENU_OTHER";}' \ + '{"enabled" = 0;"name" = "MENU_CONVERSION";}' \ + '{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \ + '{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \ + '{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}' # Load new settings before rebuilding the index killall mds > /dev/null 2>&1 # Make sure indexing is enabled for the main volume |