microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.9k stars 6.48k forks source link

No Preview in Peek for certain file extensions / extensionless files (that DO display via file explorer preview pane) #32145

Open pa-0 opened 5 months ago

pa-0 commented 5 months ago

Microsoft PowerToys version

0.79.0

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

Peek

Steps to reproduce

  1. Open a folder in File Explorer with Preview Pane activated.
  2. Select a file to view preview
  3. Preview Pane loads with progress bar as usual
  4. Text appears.
  5. CTRL+ for Peek Preview
  6. Peek appears displaying typical window when a filetype has no preview available.

✔️ Expected Behavior

Peek should mirror the PowerToys File-Explorer Preview Add-on in what it displays for text files.

❌ Actual Behavior

For certain file extensions and files with no extension, there is a discrepancy between what is displayed in preview pane of explorer and in Peek. Below is a screenshot that demonstrates this pretty clearly: image

Question: Is there a registry key I can edit/add to tell Peek to treat certain filetypes as text-encoded files? For instance if I add the proper shellexsubkey with the correct Preview Handler ID to the "." key in HKCR, I can preview the text in files with no extension. I'm hoping there is something similar that can be done for Peek (for both files with no extension and those with extensions that currently display nothing in Peek, e.g., *.ahk files.

Thanks.

Other Software

No response

github-actions[bot] commented 5 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

mcbsys commented 5 months ago

Seeing similar symptoms on one machine, not another: