Skip to content

feat(peek): support File Explorer Home page items#45394

Open
yeelam-gordon wants to merge 1 commit intomainfrom
issue/42414
Open

feat(peek): support File Explorer Home page items#45394
yeelam-gordon wants to merge 1 commit intomainfrom
issue/42414

Conversation

@yeelam-gordon
Copy link
Contributor

@yeelam-gordon yeelam-gordon commented Feb 5, 2026

Summary of the Pull Request

Enables Peek to preview files selected from File Explorer's Home page (Quick Access, Recent files, Pinned items). Previously, these items couldn't be previewed because their shell paths weren't resolved to actual file system paths.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Problem

Files shown on File Explorer's Home page (Recent, Quick Access, Pinned) use shell namespace paths that Peek couldn't resolve. Users couldn't preview these files without first navigating to their actual location.

Solution

Added HomePagePathResolver.cs in src/modules/peek/Peek.Common/Helpers/ that:

  • Detects Home page shell paths (Quick Access, Recent, Pinned)
  • Resolves them to actual file system paths
  • Handles edge cases like moved/deleted files gracefully

Validation Steps Performed

  1. Opened File Explorer Home page
  2. Selected a file from Recent items
  3. Pressed Peek hotkey
  4. Verified file preview displays correctly

Fixes #42414

Adds path resolution for items selected from the File Explorer Home page.
The Home page displays recent files and pinned items as shell references,
which need to be resolved to their actual file paths for Peek to preview.

Changes:
- Added HomePagePathResolver helper class
- Detects Home page shell locations
- Resolves shell item references to file paths
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix issue #42414 where Peek doesn't work on the File Explorer Home page. The change adds a new HomePagePathResolver helper class to resolve special File Explorer locations to their actual file paths.

Changes:

  • Adds HomePagePathResolver.cs with methods to detect Home page locations and resolve shell paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Peek doesn't work on File Explorer Home page

1 participant