Skip to content

Instantly share code, notes, and snippets.

@dgoguerra
Last active December 4, 2016 18:26
Show Gist options
  • Save dgoguerra/c3c1624c41d1a62863f1 to your computer and use it in GitHub Desktop.
Save dgoguerra/c3c1624c41d1a62863f1 to your computer and use it in GitHub Desktop.
Open all plain text files with Quick Look, and enable text selection in them
# See: https://coderwall.com/p/dlithw/use-osx-finder-quicklook-to-preview-all-plain-text-files
# download last release from https://github.com/whomwah/qlstephen/downloads
wget https://github.com/downloads/whomwah/qlstephen/QLStephen.qlgenerator.zip
# copy the plugin to /Library/QuickLook/
unzip QLStephen.qlgenerator.zip
sudo mv QLStephen.qlgenerator /Library/QuickLook/
# enable text selection
# See: https://coderwall.com/p/94rlia/copy-text-code-from-osx-quicklook-directly
# TODO: doesn't seem to work on El Capitan...
defaults write com.apple.finder QLEnableTextSelection -bool true
# reset quicklookd
qlmanage -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment