How md-ruwaid/multi-clip works
Numpad Clipboard is a Windows-oriented desktop utility that captures copied text into nine rotating in-memory slots and pastes a chosen slot with Ctrl+Numpad. Its runtime is concentrated in one Rust file: a clipboard watcher maintains slots, global shortcuts and tray actions control capture and slot operations, and a Tauri overlay reports slot state. The README also documents clear, toggle, and tray controls. Frontend internals are not shown, so the overlay is represented only as the documented popup. Evidence is limited to the README and sampled Rust source.
Main entry points: main.rs Clipboard watcher · index.html Slots popup
Components 10
Clipboard capture
- Clipboard watcher
src-tauri/src/main.rs - Slot state
src-tauri/src/main.rs
Controls and paste
- Shortcut handler
src-tauri/src/main.rs - Paste slot
src-tauri/src/main.rs
Desktop interface
- Tray menu
src-tauri/src/main.rs - State command
src-tauri/src/main.rs - Slots popup
src/index.html
Other components
- User
- System clipboard
- Foreground app
Connections 16
- User → Shortcut handler: presses shortcut
README.md - User → Tray menu: uses menu
src-tauri/src/main.rs - Clipboard watcher → System clipboard: reads text
src-tauri/src/main.rs - Clipboard watcher → Slot state: stores copy
src-tauri/src/main.rs - Clipboard watcher → Slots popup: notifies slots
src-tauri/src/main.rs - Shortcut handler → Paste slot: dispatches paste
src-tauri/src/main.rs - Shortcut handler → Clipboard watcher: toggles capture
src-tauri/src/main.rs - Shortcut handler → Slot state: clears slots
src-tauri/src/main.rs - Paste slot → Slot state: reads slot
src-tauri/src/main.rs - Paste slot → System clipboard: sets and restores
src-tauri/src/main.rs - Paste slot → Foreground app: types paste
src-tauri/src/main.rs - Tray menu → Clipboard watcher: toggles capture
src-tauri/src/main.rs - Tray menu → Slot state: clears slots
src-tauri/src/main.rs - Tray menu → Slots popup: shows popup
src-tauri/src/main.rs - State command → Slot state: returns snapshot
src-tauri/src/main.rs - Clipboard watcher → Slots popup: shows popup
src-tauri/src/main.rs