Use OSX Finder Quicklook (Spacebar) to preview all plain text files
coderwall.com
coderwall.com
http://www.quicklookplugins.com
This one is my favorite: http://macitbetter.com/BetterZip-Quick-Look-Generator/
http://www.macmation.com/blog/2011/10/quicklook-plugin-for-m...
I didn't realise Quicklook plugins were a thing...
Source: http://www.macstories.net/mac/all-you-need-to-know-about-qui...
Pro tip: Instead of restarting finder run `qlmanage -r`
To save you some time, add a folder as follows:
mdimport -f /Library
kMDItemDisplayName == "com.apple.RemoteDesktop.plist"
&& kMDItemSupportFileType != MDSystemFile
which returns nothing on my system, rather than simply kMDItemDisplayName == "com.apple.RemoteDesktop.plist"
which returns three results, one each in subdirectories of /System/Library, /Library, and ~/Library.There's an option in the "full" Spotlight search window that lets you control this for any given search, under "Other..." in the drop-down you get when you click "+" to add criteria. It's called, logically enough, "System files".
Incidentally, the mdfind command line tool doesn't have this behavior by default.
Just type:
chflags nohidden ~/Library
in the Terminal.Personally, I infrequently access my ~/Library and I know it's there and what it contains and I can hop over to it quickly if needed that I prefer it hidden for visual simplicity.
Numerous feature requests have been submitted[1] to update this functionality and to provide a preferences pane for users to decide how they want different file types handled, but they have been ignored as this behavior is a design decision.
[1] http://code.google.com/p/chromium/issues/detail?id=118204...
Scroll at the way to "Make Spotlight index source code" here. http://www.macosxtips.co.uk/index_files/terminal-commands-fo...
defaults write com.apple.finder QLEnableTextSelection -bool true
Then restart the Finder by typing in this into the Terminal:
killall Finder
- Select a filetype you'd want to change the default application for and open the File Info (Cmd+I) - In the "Open with" section, select the app you want to be the default app for the filetype - To persist the default app along the whole filetype, also click the "Change All" button right below it.
[1] http://news.ycombinator.com/item?id=4226539
PS, just like clicking "More" on HN front page after reading a few articles results in a "cutting edge" error.