sbarex / QLMarkdown

macOS Quick Look extension for Markdown files.
GNU General Public License v3.0
1.37k stars 33 forks source link

Non-urgent issue: How to check if Mac is using the correct quicklook plugin? #100

Closed Ken0sis closed 2 years ago

Ken0sis commented 2 years ago

I have multiple quicklook plugins that sometimes overlap and conflict with QLMarkdown. Is there a way to check which quicklook plugin is used for a given file? I thought there was a way to do it using the command qlmanage, but it doesn't seem to be the case anymore.

Thanks

sbarex commented 2 years ago

On the system settings, extensions, quicklook, try to drag the qlmarkdown in top of the list

Ken0sis commented 2 years ago

Thanks, I understand that I can force the priority of my quicklook plugins (and you've kindly showed me how to do that before), but I want to know if there's a way to check which quicklook plugin is currently used for a given file. This is to help me debug when a quicklook plugin is not being activated properly.

setanarut commented 2 years ago

Thanks, I understand that I can force the priority of my quicklook plugins (and you've kindly showed me how to do that before), but I want to know if there's a way to check which quicklook plugin is currently used for a given file. This is to help me debug when a quicklook plugin is not being activated properly.

you can enable debug mode

Debug info Insert in the output some debug information.
Ken0sis commented 2 years ago

Thanks, but how do I enable debug mode? Debug mode of qlmange or of QLMarkdown?

sbarex commented 2 years ago

In the QLMarkdown advanced settings there is the debug option that add on every rendered file a header with the current settings.

To list the registered quicklook extension (new API):

pluginkit -mAvvv -p com.apple.quicklook.preview
Ken0sis commented 2 years ago

Wow, ok ... I had no idea about pluginkit. Thanks for clarifying what's the debug option in QLMarkdown, and also referring me to pluginkit.

This kind of knowledge about how to resolve quicklook conflict and how to troubleshoot quicklook extensions/plugins should be published somewhere. I'm semi-tech-savvy and I couldn't find the answer by googling.