Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
fix(drag-drop): render pastel folder icon for dragged directories and sync v0.3.0 release assets
Deepender2596a5bf2b80da
diff --git a/electron/main/drag.ts b/electron/main/drag.tsindex 5022859..6529a36 100644--- a/electron/main/drag.ts+++ b/electron/main/drag.ts@@ -78,7 +78,21 @@ export function formatScreenshotFilename(capturedAt?: number, ext = 'png', indexexport function resolveDragData(req: DragRequest): { data: ItemData; capturedAt?: number; subIndex?: number } | null {if (req.paths && req.paths.length > 0) {prefetchFileIcons(req.paths)- return { data: { kind: 'files', paths: req.paths } }+ const parentItem = getStore().get(req.id)+ let entries: Array<{ name: string; ext: string; size: number; isImage: boolean; isDirectory?: boolean; preview?: string }> | undefined+ if (parentItem && parentItem.data.kind === 'files') {+ const parentEntries = parentItem.data.entries+ entries = req.paths.map((p) => {+ const found = parentEntries?.find((e) => e.name === p || p.endsWith(e.name) || p === e.name)+ if (found) return found+ let isDir = false+ try {+ if (existsSync(p)) isDir = statSync(p).isDirectory()+ } catch {}+ return { name: p, ext: '', size: 0, isImage: false, isDirectory: isDir }+ })+ }+ return { data: { kind: 'files', paths: req.paths, entries } }}const item = getStore().get(req.id)if (!item) return null@@ -344,13 +358,13 @@ function dragIcon(data: ItemData): Electron.NativeImage {const isCollection = data.kind === 'image-collection'const count = isCollection ? data.images.length : 1if (count === 0) return getFileDragIcon()- return createFileStackDragIcon(Array(count).fill('image.png'))+ return createFileStackDragIcon(Array(count).fill('image.png'), Array(count).fill({ isDirectory: false }))}if (data.kind === 'files') {const count = data.paths.lengthif (count === 0) return getFileDragIcon()- return createFileStackDragIcon(data.paths)+ return createFileStackDragIcon(data.paths, data.entries)}if (data.kind === 'text') {@@ -363,11 +377,21 @@ function dragIcon(data: ItemData): Electron.NativeImage {import { buildFileDragSvg } from './fileSvg'/** Generate a custom standalone SVG PNG icon representing file kinds with count badge. */-function createFileStackDragIcon(paths: string[]): Electron.NativeImage {+function createFileStackDragIcon(paths: string[], entries?: Array<{ isDirectory?: boolean }>): Electron.NativeImage {const count = paths.lengthif (count === 0) return getFileDragIcon()- const kinds = paths.slice(0, 3).map((p) => getFileKind(p).kind)+ const kinds = paths.slice(0, 3).map((p, idx) => {+ let isDir = entries?.[idx]?.isDirectory+ if (isDir === undefined) {+ try {+ if (existsSync(p)) {+ isDir = statSync(p).isDirectory()+ }+ } catch {}+ }+ return getFileKind(p, isDir).kind+ })const cacheKey = `stack|pastel-svg|${kinds.join('-')}|${count}`const cached = iconCache.get(cacheKey)if (cached && !cached.isEmpty()) {diff --git a/electron/main/ipc.ts b/electron/main/ipc.tsindex 8227417..5d2dda1 100644--- a/electron/main/ipc.ts+++ b/electron/main/ipc.ts@@ -917,10 +917,70 @@ function parseReleaseBodyToCleanText(body: string): { summary: string; highlight}const STATIC_CHANGELOG_FALLBACK = [+ {+ version: 'v0.3.0',+ date: 'Aug 26, 2026',+ isLatest: true,+ summary: 'Smarter multi-monitor edge activation, cleaner drag-and-drop handling, larger file stack previews with animated GIF support, silky smooth scrolling, and improved startup reliability.',+ highlights: [+ {+ title: 'Smarter Multi-Monitor Edge Opening',+ description: 'Moving between multiple displays is smooth and natural. Edge-Drop distinguishes passing across screens from intentionally stopping at the edge to open your shelf.'+ },+ {+ title: 'Cleaner Drag & Drop Experience',+ description: 'Returning items back onto the shelf is a clean no-op without duplicating files, splitting card stacks, or bumping usage counts.'+ },+ {+ title: 'Bigger File Stack Previews & Animated GIFs',+ description: 'Grouped file cards feature 20% larger preview tiles with folder styling, animated GIF playback, and clean outside-click folding.'+ },+ {+ title: 'Silky Smooth Scrolling & Motion',+ description: 'Browsing long clipboard histories stays completely fluid and responsive with hardware-accelerated animations for pinning, filtering, and previews.'+ },+ {+ title: 'Original File & Image Names',+ description: 'Images and files added to Edge-Drop preserve their original filenames when dragged into other applications or saved to disk.'+ },+ {+ title: 'Reliable Startup After Updates',+ description: 'Launch at Login preferences persist seamlessly across automatic updates without manual re-configuration.'+ }+ ]+ },+ {+ version: 'v0.2.9',+ date: 'Aug 20, 2026',+ isLatest: false,+ summary: 'Customizable shortcut, selective history clearing, pastel file icons, and smoother deletion animations.',+ highlights: [+ {+ title: 'Custom Global Shortcut',+ description: 'Customize the shelf toggle hotkey (defaults to Alt+C) directly in Settings.'+ },+ {+ title: 'Selective History Clearing',+ description: 'Clear history by time window (1h, 6h, 24h) or clear only the active category (Images, Files, etc.).'+ },+ {+ title: 'Pastel File Icons',+ description: 'New vector icons for folders, code, spreadsheets, PDFs, documents, and media files.'+ },+ {+ title: 'Smoother Item Removal',+ description: 'Deleting items now collapses smoothly without leaving empty gaps.'+ },+ {+ title: 'Windows Snipping Tool Integration',+ description: 'Screenshots taken with Win+Shift+S are automatically captured with clean file names.'+ }+ ]+ },{version: 'v0.2.7',date: 'Aug 13, 2026',- isLatest: true,+ isLatest: false,summary: 'Disk-backed on-demand text payloads, image thumbnailing, RAM footprint stabilization (~130 MB), universal drag-and-drop vault, zero-cost URL previews, and Windows OS integration fixes.',highlights: [{diff --git a/package-lock.json b/package-lock.jsonindex 5abf6a3..034e456 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "edge-drop",- "version": "0.2.9",+ "version": "0.3.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "edge-drop",- "version": "0.2.9",+ "version": "0.3.0","license": "Apache-2.0","dependencies": {"@iconify-json/cuida": "^1.2.5",diff --git a/package.json b/package.jsonindex bb1d507..8519d07 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "edge-drop",- "version": "0.2.9",+ "version": "0.3.0","description": "Edge-Drop — a clipboard manager that lives on the left edge of your screen and expands on hover.","author": "Edge-Drop","license": "Apache-2.0",diff --git a/shared/types.ts b/shared/types.tsindex 0dd6cf4..bc63a75 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -29,7 +29,7 @@ export type ItemData =| { kind: 'text'; text: string; html?: string; isUrl: boolean; isColor?: boolean; hasFullPayload?: boolean; previewText?: string }| ({ kind: 'image' } & ClipboardImageFields)| { kind: 'image-collection'; images: ClipboardImageFields[] }- | { kind: 'files'; paths: string[] }+ | { kind: 'files'; paths: string[]; entries?: FileEntry[] }export type ItemKind = ItemData['kind']diff --git a/src/components/ChangelogView.tsx b/src/components/ChangelogView.tsxindex b8aee69..73d62c9 100644--- a/src/components/ChangelogView.tsx+++ b/src/components/ChangelogView.tsx@@ -16,10 +16,42 @@ interface ChangelogRelease {}const CHANGELOG_DATA: ChangelogRelease[] = [+ {+ version: 'v0.3.0',+ date: 'Aug 26, 2026',+ isLatest: true,+ summary: 'Smarter multi-monitor edge activation, cleaner drag-and-drop handling, larger file stack previews with animated GIF support, silky smooth scrolling, and improved startup reliability.',+ highlights: [+ {+ title: 'Smarter Multi-Monitor Edge Opening',+ description: 'Moving between multiple displays is smooth and natural. Edge-Drop distinguishes passing across screens from intentionally stopping at the edge to open your shelf.'+ },+ {+ title: 'Cleaner Drag & Drop Experience',+ description: 'Returning items back onto the shelf is a clean no-op without duplicating files, splitting card stacks, or bumping usage counts.'+ },+ {+ title: 'Bigger File Stack Previews & Animated GIFs',+ description: 'Grouped file cards feature 20% larger preview tiles with folder styling, animated GIF playback, and clean outside-click folding.'+ },+ {+ title: 'Silky Smooth Scrolling & Motion',+ description: 'Browsing long clipboard histories stays completely fluid and responsive with hardware-accelerated animations for pinning, filtering, and previews.'+ },+ {+ title: 'Original File & Image Names',+ description: 'Images and files added to Edge-Drop preserve their original filenames when dragged into other applications or saved to disk.'+ },+ {+ title: 'Reliable Startup After Updates',+ description: 'Launch at Login preferences persist seamlessly across automatic updates without manual re-configuration.'+ }+ ]+ },{version: 'v0.2.9',date: 'Aug 20, 2026',- isLatest: true,+ isLatest: false,summary: 'Customizable shortcut, selective history clearing, pastel file icons, and smoother deletion animations.',highlights: [{diff --git a/src/lib/fileType.ts b/src/lib/fileType.tsindex 766f399..85d91f8 100644--- a/src/lib/fileType.ts+++ b/src/lib/fileType.ts@@ -45,7 +45,8 @@ const EXT_MAP: Record<string, FileKind> = {mp4: 'video', mkv: 'video', avi: 'video', mov: 'video', wmv: 'video', flv: 'video', webm: 'video', m4v: 'video',png: 'image', jpg: 'image', jpeg: 'image', gif: 'image', webp: 'image', bmp: 'image', svg: 'image', avif: 'image', ico: 'image',tif: 'image', tiff: 'image', jfif: 'image', pjpeg: 'image', pjp: 'image',- exe: 'executable', msi: 'executable', bat: 'executable', cmd: 'executable', ps1: 'executable', apk: 'executable', app: 'executable', dll: 'executable'+ exe: 'executable', msi: 'executable', bat: 'executable', cmd: 'executable', ps1: 'executable', apk: 'executable', app: 'executable', dll: 'executable',+ folder: 'folder'}const KIND_INFO: Record<FileKind, FileKindInfo> = {diff --git a/tests/dragDrop.test.ts b/tests/dragDrop.test.tsindex 0ece327..62d66f0 100644--- a/tests/dragDrop.test.ts+++ b/tests/dragDrop.test.ts@@ -207,6 +207,13 @@ describe('buildFileDragSvg — standalone 3D pastel vector drag icons', () => {expect(svg).not.toContain('<rect x="16" y="8" width="64" height="72"')})+ it('builds a clean single folder drag icon SVG with warm yellow folder colors', () => {+ const svg = buildFileDragSvg(['folder'], 1)+ expect(svg).toContain('<svg')+ expect(svg).toContain('fill="#FBBF24"')+ expect(svg).toContain('fill="#FDE68A"')+ })+it('builds a clean multi-file stack SVG with count badge', () => {const svg = buildFileDragSvg(['pdf', 'excel', 'image'], 3)expect(svg).toContain('<svg')diff --git a/tests/storeLoginApply.test.ts b/tests/storeLoginApply.test.tsindex 622e2ec..d346620 100644--- a/tests/storeLoginApply.test.ts+++ b/tests/storeLoginApply.test.ts@@ -8,7 +8,7 @@ const store = vi.hoisted(() => ({const mocks = vi.hoisted(() => ({isPackaged: true,- exePath: 'C:\\Program Files\\WindowsApps\\Deepender.EdgeDrop_0.2.9.0_x64__aqnvcnjbf5ns8\\app\\Edge-Drop.exe',+ exePath: 'C:\\Program Files\\WindowsApps\\Deepender.EdgeDrop_0.3.0.0_x64__aqnvcnjbf5ns8\\app\\Edge-Drop.exe',loadSettings: vi.fn(() => ({ launchAtLogin: false })),saveSettings: vi.fn((patch: Record<string, unknown>) => ({ launchAtLogin: false, ...patch }))}))