How dayumcodes/snapline works
Snapline is a Windows screenshot shelf: it collects captures or imported images, displays recent files as an interactive top-edge line, and lets users copy, open, share, or annotate them. Source/Program.cs contains the main application and its shelf, rendering, capture, file, and settings responsibilities; the two Snipping Tool modules implement the markup handoff. README documents several workflows whose implementation details are not visible in the excerpts, so those links are cited to the README. Native Windows integration is documented but not yet tested on Windows 11.
Main entry points: Program.cs Screenshot cards · SnippingToolEditor.cs Editor routing · SnippingToolToken.cs Shared-file token
Components 14
Shelf interface
- Shelf window
Source/Program.cs - Screenshot cards
Source/Program.cs - Shelf renderer
Source/Program.cs - Tray and shortcuts
Source/Program.cs
Capture and sources
- Capture actions
Source/Program.cs - Watched and imported images
Source/Program.cs
Image and shelf state
- Image actions
Source/Program.cs - Shelf settings
Source/Program.cs
Markup handoff
- Editor routing
Source/SnippingToolEditor.cs - Shared-file token
Source/SnippingToolToken.cs
Other components
- User
- Windows services
- Snipping Tool
- Other applications
Connections 16
- User → Shelf window: uses
README.md - Tray and shortcuts → Shelf window: controls
README.md - Capture actions → Watched and imported images: saves captures
README.md - Watched and imported images → Screenshot cards: adds images
README.md - User → Watched and imported images: imports images
README.md - Screenshot cards → Shelf renderer: renders cards
Source/Program.cs - Screenshot cards → Image actions: invokes actions
Source/Program.cs - Image actions → Windows services: copies or opens
README.md - Image actions → Other applications: drops files
README.md - Shelf window → Shelf settings: restores and saves
README.md - User → Capture actions: requests capture
README.md - Screenshot cards → Editor routing: requests markup
Source/Program.cs - Editor routing → Shared-file token: tries token route
Source/SnippingToolEditor.cs - Shared-file token → Snipping Tool: launches annotation
Source/SnippingToolToken.cs - Editor routing → Snipping Tool: activates file fallback
Source/SnippingToolEditor.cs - User → Other applications: drags files
README.md