col / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

File name is not shown in QuickLook window on Lion #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On a Mac running Lion, hit space to preview a file that QLColorCode is 
compatible with
2. Check the title bar of the QuickLook window, it will just say "Source file"

I'm running QLColor Code version 2.0.1 and OS X version 10.7.2. I've noticed 
this same problem with every other third-party QuickLook plugin, but any file 
that QuickLook supports by default will still show the file name as expected. 
It's not a huge problem really, but it is slightly annoying when I'm previewing 
multiple files and have to close QuickLook to see which file I'm on. Hopefully 
there's a way around this and it isn't just an arbitrary limitation imposed by 
Apple.

Original issue reported on code.google.com by wes...@gmail.com on 5 Dec 2011 at 2:40

GoogleCodeExporter commented 8 years ago
I too have same issues. but as mentioned this doesn't happen with all 
third-party quick look plugins. for example QLStephen.qlgenerator gives correct 
title.

Original comment by santhosh.tekuri@gmail.com on 12 Dec 2011 at 3:11

GoogleCodeExporter commented 8 years ago
I fixed this by modifying the highlighting process.
In short, I modified the colorize.sh in 
"QLColorCode.qlgenerator/Contents/Resources" to this one: http://git.io/xH2FtQ

Information about this fix is at http://git.io/_8RjEg

Original comment by hansbo...@gmail.com on 18 Dec 2011 at 11:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It's weird but sometimes this mod http://git.io/xH2FtQ fails on some filetypes.
But it could be done way simplier, just by appending the parameter --doc-title 
to the cmdOpts line:

 --doc-title="$(basename $target)" 

After that, the highlight module will get the current filename and includes 
that one in the resulting title-tag. 

I have attached my colorize.sh file. The only modification was done in line 38.

Original comment by yaihimgi...@mailinator.com on 5 Mar 2012 at 8:42

Attachments: