Skip to main content
SuperCmd automatically tracks your clipboard history, storing text, images, URLs, and files for quick access and reuse.

Overview

Clipboard History in SuperCmd:
  • Automatic monitoring - Polls clipboard every 1 second (src/main/clipboard-manager.ts:65)
  • Stores up to 1000 items - Configurable limit
  • Supports multiple types - Text, images, URLs, files
  • Persistent storage - Survives app restarts
  • Fast search - Find items by content
  • Privacy-aware - Filters internal clipboard probes
Clipboard monitoring starts automatically when SuperCmd launches. History is saved to ~/Library/Application Support/SuperCmd/clipboard-history/.

Clipboard Item Types

Supported item types (src/main/clipboard-manager.ts:46):

Type Detection

Automatic content type classification (src/main/clipboard-manager.ts:152):

Using Clipboard History

1

Open Clipboard Manager

Press SuperCmd hotkey, then search for “Clipboard Manager” or use Cmd+Shift+V.
2

Browse History

Scroll through items (newest first) or search by content.
3

Preview Item

Select an item to see full preview on the right side (40/60 split).
4

Copy Again

Press Enter to copy the item back to clipboard, or Cmd+Enter to paste directly.

Clipboard Manager UI

The UI is implemented in src/renderer/src/ClipboardManager.tsx:

Layout

  • Left Panel (40%): Item list with icons and previews
  • Right Panel (60%): Full preview of selected item
  • Search Bar: Filter by content
  • Filter Tabs: All, Text, Images, URLs, Files
  • Actions Footer: Keyboard shortcuts and actions

Visual Design

Matches the main SuperCmd window theme automatically.

Image Support

Images are stored separately for efficiency (src/main/clipboard-manager.ts:236):

Image Storage

  1. Detection: Clipboard image detected
  2. Format Check: Supports PNG, JPG, GIF, WebP
  3. Size Limit: Max 10MB per image
  4. Storage: Saved to clipboard-history/images/[uuid].png
  5. Metadata: Dimensions, format, size recorded

GIF Preservation

Animated GIFs are handled specially (src/main/clipboard-manager.ts:22):
GIF animations are preserved when copying back to clipboard. Other apps that support GIFs will see the animation.

Search & Filtering

Search by partial text match (src/main/clipboard-manager.ts:450):

Type Filtering

Show all clipboard items (default)

Persistence

Saving History

History is saved automatically (src/main/clipboard-manager.ts:137):

Loading on Startup

History loads when SuperCmd starts (src/main/clipboard-manager.ts:100):

Deduplication

Prevents duplicate entries (src/main/clipboard-manager.ts:197):

Text Deduplication

Why Dedupe?

  • Prevents cluttering history with repeated copies
  • Keeps most recent timestamp for each unique item
  • Maintains 1000-item limit more effectively
Copying the same text again moves it to the top of history instead of creating a duplicate.

Actions

Available actions for clipboard items:

Privacy Features

Internal Probe Filtering

SuperCmd uses clipboard probes for some operations. These are automatically filtered (src/main/clipboard-manager.ts:68):

Sensitive Data

While SuperCmd stores clipboard history locally, consider:
  • Passwords: May be copied from password managers
  • API Keys: Could appear in history
  • Personal Info: Credit cards, SSNs, etc.
Be mindful of sensitive data in clipboard history. Use the Clear All action to purge history when needed.

Temporary Disable

Pause monitoring for sensitive operations:
Clipboard monitoring can be disabled in Settings > General > Clipboard History.

Settings

Enable/Disable Monitoring

Settings > General > Clipboard History:
  • Toggle monitoring on/off
  • Does not affect existing history

History Limit

Default: 1000 items (configurable):

Maximum Text Length

Very large text items are skipped:
Prevents performance issues with huge clipboard contents.

Keyboard Shortcuts

Best Practices

Search Often

Use search to find old items quickly instead of scrolling

Use Filters

Filter by type (Images, URLs) to narrow results

Clear Periodically

Purge history monthly to free space and improve privacy

Check Before Pasting

Use preview panel to verify content before pasting

Storage Management

Disk Usage

Clipboard history storage:
  • Text/URLs/Files: ~1KB per item (in history.json)
  • Images: Varies (typically 50KB - 2MB each)
  • Total: Usually < 100MB for full history

Clearing Storage

Manually clear all data:
  1. Close SuperCmd
  2. Delete ~/Library/Application Support/SuperCmd/clipboard-history/
  3. Restart SuperCmd (fresh history starts)
Or use in-app Clear All action.

Troubleshooting

  1. Check clipboard monitoring is enabled (Settings > General)
  2. Verify item type is supported (text, image, URL, file)
  3. Check if item exceeds size limits (10MB images, 100KB text)
  4. Ensure you’re copying, not cutting
  • Image file may have been deleted from disk
  • Check clipboard-history/images/ directory
  • Verify file permissions
  • Clear history and re-copy image
  • Check history.json file permissions
  • Verify app has write access to user directory
  • Look for error logs in Console.app
  • Deduplication only works for exact matches
  • Extra whitespace creates “different” items
  • Images always create new entries (no dedup)

Advanced Usage

Programmatic Access

Extensions can access clipboard history:
Extensions cannot access full clipboard history for privacy reasons. They only see current clipboard content.

Performance

Polling Efficiency

Clipboard is polled efficiently (src/main/clipboard-manager.ts:282):

Memory Usage

History kept in memory for fast access:
  • Text items: ~1KB each in RAM
  • Image metadata: ~500 bytes (images stored on disk)
  • 1000 items: ~1-2MB total RAM
Negligible impact on system performance.