aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Guerrero <alexguerrero1092@gmail.com>2014-11-13 19:40:25 +0100
committerMathias Bynens <mathias@qiwi.be>2014-11-14 12:09:15 +0100
commit93535c5503c66a9ff4ffa22e2b719dc003ef88a1 (patch)
treec99715312396e11152b7e01e6698bd0c88b979d2
parent465217fbda0face4e75b55f1c64233f1552ff095 (diff)
downloaddotfiles-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.osx17
1 files changed, 15 insertions, 2 deletions
diff --git a/.osx b/.osx
index 8bd70f8..c66b706 100755
--- a/.osx
+++ b/.osx
@@ -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