sindresorhus / quick-look-plugins

List of useful Quick Look plugins for developers
18.08k stars 534 forks source link

Break text selection #26

Closed ManUtopiK closed 9 years ago

ManUtopiK commented 9 years ago

It's possible to make text selectable in Quick Look previews. Just need to enable a hidden Finder setting: defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder

But quick-look-plugins break this possibility...

Tested with OS X 10.9 and 10.10.

jjarava commented 9 years ago

What plugin did you test/where do you see it broken?

I've got the setting enabled and I've tested that I can copy text from 2 different file types:

An .md file: ql plugins broken-2015-02-01_11-20-01

A .taskpaper file 1 (text-like): taskpaper-ql-2015-02-01_11-23-18

And a text file: txt-ql-2015-02-01_11-26-56

and in all cases I've been able to copy text and paste it somewhere else...

1 Sorry for the blurring, but I didn't have the time to generate a .taskpaper file that was completely "publishable" online, so I've opted for cropping and masking the parts that are not completely public :smile:

arthurvr commented 9 years ago

@ManUtopiK See above comment. What plugin did you tested this with?

sindresorhus commented 9 years ago

Text selection works fine for me too with all the plugins installed, on latest OS X.

ManUtopiK commented 9 years ago

Sorry, I missed my mention in this issue.

I updated all plugins and tested again. Selection now works, but I can't copy text with command-c. Keyboard doesn't work, but I can copy from menu Edit !?

I deactivated all quicklook plugin, and tested one by one. It's seem QLColorCode cause this trouble.

Hope this can help you.

sindresorhus commented 9 years ago

Open an issue on the QLColorCode issue tracker ;)