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
use screen number labels instead of left/right direction names
Khiem Nguyenab9954bf4277
diff --git a/drag_debug.txt b/drag_debug.txtindex 4ffe3d4..bffc5a2 100644--- a/drag_debug.txt+++ b/drag_debug.txt@@ -3469,3 +3469,9 @@[2026-07-16T07:41:04.268Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}[2026-07-16T07:41:04.268Z] createFileStackDragIcon calling Resvg for count=1[2026-07-16T07:41:05.123Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}+[2026-07-16T07:43:54.491Z] createFileStackDragIcon calling Resvg for count=1+[2026-07-16T07:43:55.274Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}+[2026-07-16T07:43:55.274Z] createFileStackDragIcon calling Resvg for count=1+[2026-07-16T07:43:56.022Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}+[2026-07-16T07:43:56.022Z] createFileStackDragIcon calling Resvg for count=1+[2026-07-16T07:43:56.766Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}diff --git a/electron/main/ipc.ts b/electron/main/ipc.tsindex ee56dba..fc12603 100644--- a/electron/main/ipc.ts+++ b/electron/main/ipc.ts@@ -458,16 +458,14 @@ export function registerIpc(): void {handle('displays:list', () => {const all = screen.getAllDisplays()const primary = screen.getPrimaryDisplay()- return all.map((d) => {- const isLeft = d.bounds.x < 0- const positionLabel = d.id === primary.id ? 'Primary' : (isLeft ? 'Left' : 'Right')- return {- id: d.id,- bounds: { x: d.bounds.x, y: d.bounds.y, width: d.bounds.width, height: d.bounds.height },- isPrimary: d.id === primary.id,- label: `Display ${positionLabel} (${d.bounds.width}×${d.bounds.height})`- }- })+ return all.map((d, i) => ({+ id: d.id,+ bounds: { x: d.bounds.x, y: d.bounds.y, width: d.bounds.width, height: d.bounds.height },+ isPrimary: d.id === primary.id,+ label: d.id === primary.id+ ? `Screen ${i + 1} (Primary) ${d.bounds.width}×${d.bounds.height}`+ : `Screen ${i + 1} ${d.bounds.width}×${d.bounds.height}`+ }))})}diff --git a/electron/main/tray.ts b/electron/main/tray.tsindex af38c59..6aa69a6 100644--- a/electron/main/tray.ts+++ b/electron/main/tray.ts@@ -60,20 +60,18 @@ export function createTray(): Tray {function buildDisplaySubmenu(currentId: number | undefined): Electron.MenuItemConstructorOptions[] {const all = screen.getAllDisplays()const primary = screen.getPrimaryDisplay()- return all.map((d) => {- const isLeft = d.bounds.x < 0- const posLabel = d.id === primary.id ? 'Primary' : (isLeft ? 'Left' : 'Right')- return {- label: `Display ${posLabel} (${d.bounds.width}×${d.bounds.height})`,- type: 'radio' as const,- checked: currentId === d.id,- click: () => {- const next = saveSettings({ stickDisplayId: d.id })- pushState.settings(next)- repositionWindow()- }+ return all.map((d, i) => ({+ label: d.id === primary.id+ ? `Screen ${i + 1} (Primary) ${d.bounds.width}×${d.bounds.height}`+ : `Screen ${i + 1} ${d.bounds.width}×${d.bounds.height}`,+ type: 'radio' as const,+ checked: currentId === d.id,+ click: () => {+ const next = saveSettings({ stickDisplayId: d.id })+ pushState.settings(next)+ repositionWindow()}- })+ }))}function buildStickSubmenu(current: StickPosition): Electron.MenuItemConstructorOptions[] {