qlmarkdown icon indicating copy to clipboard operation
qlmarkdown copied to clipboard

Doesn't work with QL from the terminal

Open chaosmind opened this issue 7 years ago • 4 comments

This is an edge-case, but... I like to use QuickLook from the Terminal. This is "qlmanage -p", but there's a handy alias for both .bashrc and .zshrc: ql () { qlmanage -p "$*" >& /dev/null; } (no preceding "alias" required for either).

qlmarkdown definitely adds QuickLook support for MD files from the Finder (thanks!), but this seems to break from the command line... Causes both zsh and bash to hang, in both Terminal and iTerm2.

Being able to QuickLook an MD file from the terminal immediately after having pulled down a git repo would be nirvana!

chaosmind avatar May 04 '17 20:05 chaosmind

This sounds like an interesting use case, but I have no idea what would be necessary to make it work.

toland avatar May 08 '17 15:05 toland

I have QLStephen and QLMarkdown installed. QLMarkdown prevents qlmanage -p text.txt from displaying the Quick Look window. QLStephen alone does not affect this command, but QLMarkdown alone does. Is it possible to check the differences in between?

Sorry I'm not a developer. Just hope this information can somewhat help.

tinhb avatar Jun 14 '17 18:06 tinhb

There doesn't seem to be any meaningful debug output from qlmanage, but it will reliably fail to generate a preview. If you wait long enough a thumbnail is eventually rendered, as sometimes happens when QL crashes.

[DEBUG] Previewing file:///private/tmp/README.md. Content type UTI: net.daringfireball.markdown. Generator used: <QLGenerator /Library/QuickLook/QLMarkdown.qlgenerator> [DEBUG] Loading <QLGenerator /Library/QuickLook/QLMarkdown.qlgenerator> [DEBUG] Previewing file:///private/tmp/README.md finished [DEBUG] Thumbnailing README.md -- file:///private/tmp/ - type: net.daringfireball.markdown - generator: <QLGenerator /Library/QuickLook/QLMarkdown.qlgenerator> (try #1) [DEBUG] Thumbnailing file:///private/tmp/README.md. Content type UTI: net.daringfireball.markdown. Generator used: <QLGenerator /Library/QuickLook/QLMarkdown.qlgenerator> [DEBUG] Thumbnailing file:///private/tmp/README.md finished

jeffcox avatar Nov 17 '17 19:11 jeffcox

Having the same problem here. I use a custom Alfred workflow to render markdown files. Currently I'm using a markdown reader, but it would be awesome to use qlmanage.

cookandy avatar Apr 04 '19 05:04 cookandy