Activation
Peek works exclusively within File Explorer. The activation shortcut has no effect in other applications.
Supported File Types
Peek uses a previewer architecture to support different file formats. Each previewer implements theIPreviewer interface from /src/modules/peek/Peek.FilePreviewer/Previewers/Interfaces/IPreviewer.cs.
Image Files
Preview images with support for:- Common formats: PNG, JPG, GIF, BMP, TIFF, ICO
- Advanced formats: WebP, SVG
- RAW camera formats (through Windows codecs)
- Animated GIFs
- Zoom and pan support
- Display image dimensions and file size
- EXIF metadata display (for supported formats)
Video Files
Preview video files using Windows Media Foundation:- MP4, AVI, MKV, MOV, WMV
- MPEG, FLV, WebM
- Display duration, resolution, codec information
- Basic playback controls
Audio Files
Preview audio files with:- MP3, WAV, FLAC, AAC, OGG, WMA
- Display duration, bitrate, sample rate
- Waveform visualization
- Playback controls
/src/modules/peek/Peek.FilePreviewer/Controls/AudioControl.xaml.cs
Archive Files
Browse archive contents without extraction:- ZIP, RAR, 7Z, TAR, GZ
- Display folder structure
- Show file count and sizes
- Preview individual files within archives
/src/modules/peek/Peek.FilePreviewer/Controls/ArchiveControl.xaml.cs
Code & Text Files
Syntax-highlighted preview for:- Programming languages: C#, C++, JavaScript, Python, Java, Go, Rust, etc.
- Markup: HTML, XML, JSON, YAML, TOML
- Scripts: PowerShell, Bash, Batch
- Configuration files
- Plain text
PDF Files
Preview PDF documents with:- Page navigation
- Zoom controls
- Multi-page support
- Text selection
Office Documents
Preview Microsoft Office files:- Word (.docx, .doc)
- Excel (.xlsx, .xls)
- PowerPoint (.pptx, .ppt)
Web Files
Preview web content:- HTML files with rendering
- CSS files with syntax highlighting
- JavaScript files
/src/modules/peek/Peek.FilePreviewer/Controls/BrowserControl.xaml.cs
Special Folders & Drives
Preview drives and special folders with:- Disk space information
- Drive type and file system
- Folder metadata
/src/modules/peek/Peek.FilePreviewer/Controls/DriveControl.xaml.cs
Features
Multi-File Preview
- Single File
- Multiple Files
Select one file and press
Ctrl + Space to preview it in a centered window.Preview States
Peek implements state management through thePreviewState enum:
/src/modules/peek/Peek.FilePreviewer/Previewers/Interfaces/IPreviewer.cs:24-30
Window Features
Title Bar
Title Bar
Custom title bar with:
- File name display
- File path
- Close button
- Drag to move window
/src/modules/peek/Peek.UI/Views/TitleBar.xamlUnsupported Files
Unsupported Files
When a file type isn’t supported, Peek displays:
- File icon
- File name and path
- File size
- Modification date
- Option to open in default application
/src/modules/peek/Peek.UI/Views/UnsupportedFile.xamlFile Actions
Configuration
Activation Shortcut
Customize the activation shortcut in PowerToys Settings:- Open PowerToys Settings
- Navigate to Peek
- Change “Activation shortcut” (default:
Ctrl + Space)
Preview Settings
Window Size
Window Size
Configure default preview window dimensions and position.
Previewer Options
Previewer Options
Enable or disable specific previewers:
- Disable resource-intensive previewers (video, large images)
- Control which file types trigger preview
Performance
Performance
- Max file size for preview
- Loading timeout
- Memory limits for large files
Use Cases
Quick Inspection
Verify file contents without opening apps - perfect for checking downloads, screenshots, or documents.
Archive Browsing
Browse ZIP/archive contents without extraction. Navigate folder structures and preview files inside.
Code Review
Quickly scan source code files with syntax highlighting. Review changes across multiple files.
Media Management
Preview images, videos, and audio files instantly while organizing media libraries.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl + Space | Open/Close Peek (default) |
Esc | Close preview window |
← → | Navigate between multiple selected files |
Ctrl + C | Copy file path |
Ctrl + O | Open in default application |
Ctrl + W | Close window |
Advanced Features
Shell Preview Handler Integration
Peek integrates with Windows Shell Preview Handlers for file types without native previewers:- Third-party file formats with installed preview handlers
- Custom file types
- Fallback for unsupported formats
WinUI 3 Architecture
Peek is built on WinUI 3 (Windows App SDK) for modern UI:/src/modules/peek/Peek.UI/Peek.UI.csproj:15, 22
Preview Size Calculation
Each previewer implementsGetPreviewSizeAsync() to calculate optimal window dimensions:
Performance Considerations
Troubleshooting
Preview Not Showing
Preview Not Showing
- Ensure Peek is enabled in PowerToys Settings
- Verify file type is supported
- Check activation shortcut isn’t conflicting with other apps
- Restart File Explorer if Peek stops responding
Slow Preview Loading
Slow Preview Loading
- Large files may take time to load
- Check if file is on network drive or slow storage
- Reduce maximum file size in settings
Some Files Show 'Unsupported'
Some Files Show 'Unsupported'
- File type may not have a built-in previewer
- Install Windows codec packs for additional format support
- Some proprietary formats require native applications
Source Code
Location:/src/modules/peek/
- Main UI:
Peek.UI/ - File previewers:
Peek.FilePreviewer/ - Common utilities:
Peek.Common/ - Project file:
Peek.UI/Peek.UI.csproj