One of my favorite features Mac OS X - a fast file browsing. Simply makes it stand out in the Finder, press the space bar and watch a picture or some other document.
Works "trick" great, but not perfect. Default off copying of text, they are view only. The logic in this, but I'm up would be useful. The solution is simple - run in a terminal the command:
defaults write com.apple.finder QLEnableTextSelection -bool true; killall Finder
You will now be able to copy text directly from the QuickLook window:
To return to the previous settings, use this command:
defaults delete com.apple.finder QLEnableTextSelection; killall Finder
QuickLook displays the contents of many text files, but not all. For example, you will not be able to quickly see PHP scripts, Python, CSS styles, the README document, etc., etc.
British designer Duncan Robertson wrote plugin for QuickLoookWhich adds the ability to view all plain text files.
For this:
- download the latest version plug-in (at the time of writing QLStephen_1.2.dmg notes)
- Double-click on the dmg-file
- drag and drop files QLStephen.qlgenerator in the folder
/Library/QuickLook/
(useThe Finder → Go → Go to Folder
to fast). - Restart the Finder (
Cmd + Option + Escape
, Find the list in the Finder and press a restart button).
We can now see all the text files and copy them from the text (eg, code). Web development has become more convenient.
thanks Suvash Thapaliya, MacWorld and Duncan Robertson.