maCopy/src/types.ts
ilia 55ee81fc6d Multi-select, paste-to-app, resizable window, polished UI
- Max history default increased to 10K, options: 1K/5K/10K/50K
- Tray icon uses with_id to prevent duplicates on hot-reload
- Selecting an entry now pastes directly into the previous app
  via osascript Cmd+V simulation after hiding the window
- Multi-select: Ctrl+Click toggles, Shift+Arrow extends range,
  Cmd+A selects all, Enter pastes all selected
- Window is resizable, size persists in SQLite across opens
- Window position setting: cursor, center, or any screen corner
- UI cleanup: tighter spacing, cleaner dividers, compact search,
  type badges (TXT/IMG/FILE), PIN label, tabular timestamps
- Context menu shows multi-item labels ("Paste 3 items")
- All tests updated and passing (27 Rust + 33 TypeScript)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 14:01:03 -04:00

18 lines
432 B
TypeScript

export interface ClipboardEntry {
id: number;
content: string;
content_type: "text" | "image" | "file";
created_at: string;
pinned: boolean;
content_hash: string;
}
export interface Settings {
launch_at_login: boolean;
show_images: boolean;
max_history: number;
window_position: "cursor" | "center" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
window_width: number;
window_height: number;
}