microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.89k stars 6.59k forks source link

Add more preview handlers and tool to manage them #3799

Closed birbilis closed 4 years ago

birbilis commented 4 years ago

See:

In this article, I'll explain what is required to implement a preview handler and discuss how to do so using managed code (the Windows® SDK for Vista includes a sample preview handler written in native C++). The code download for this article includes a framework that makes it a snap to implement your own preview handlers, and it provides several sample previewers (including previewers for PDF, XML, ZIP, MSI, BIN, CSV, XPS, and XAML files).

https://docs.microsoft.com/en-us/archive/msdn-magazine/2007/january/windows-vista-and-office-writing-your-own-preview-handlers

related to this msdn article is the Preview Handler Association Editor too: https://docs.microsoft.com/en-us/archive/blogs/toub/preview-handler-association-editor

more: https://docs.microsoft.com/el-gr/archive/blogs/msdnmagazine/vista-and-office-view-data-your-way-with-our-managed-preview-handler-framework

also related: http://www.danielmoth.com/Blog/Managed-Preview-Handlers-For-Vista-And-Office.aspx http://www.danielmoth.com/Blog/MothPreviewHandler.cs.txt


also see this thread for how to set a file to preview as text: https://superuser.com/questions/1320812/how-to-make-windows-explorer-preview-scripts-and-other-text-files

done via perceived types https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/cc144150(v=vs.85)?redirectedfrom=MSDN which can be defined apart from a file type https://docs.microsoft.com/el-gr/windows/win32/shell/fa-file-types?redirectedfrom=MSDN

and this thread https://superuser.com/questions/91804/windows-7-preview-other-file-types-as-text-in-preview-pane


more links from those threads:

https://www.howtogeek.com/howto/windows-vista/make-windows-vista-explorer-preview-pane-work-for-more-file-types/

https://tweaks.com/windows/39264/expand-explorer-preview-pane-with-previewconfig/ https://www.winhelponline.com/blog/previewconfig-tool-registers-file-types-for-the-preview-pane-in-windows-vista/

https://www.winhelponline.com/blog/fix-preview-not-available-thumbnail-media-files/ https://www.winhelponline.com/blog/preview-pane-video-image-not-updated-windows-10/

https://github.com/RRUZ/delphi-preview-handler

crutkas commented 4 years ago

being tracked in #1527. Goal woudl be to leverage Monaco to do this.

vanjac commented 2 years ago

Is there a reason that PowerToys preview handlers don't show up in the Preview Handler Association Editor linked here? Despite the fact that they're installed and working. I also don't see them in ShellExView.

AJolly commented 9 months ago

Is there any way to have a default preview handler?

birbilis commented 9 months ago

seems they closed this one in favor of related/duplicate issue #1527 - however I see that issue closed as well, so not sure where is the appropriate place to discuss more related questions. Maybe open new issue referencing these two ones, after you study their discussion threads