Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.36 KB

File metadata and controls

25 lines (16 loc) · 1.36 KB

Smart Copy

Append-to-buffer copy: capture multiple things, then paste once. Built to cut down copy-pasting context into LLMs—gather from several places, one paste.

How it works

  • Copy to buffer: Cmd+Shift+E — appends current selection (or clipboard) to a buffer. If it’s a URL, the daemon fetches the page and appends extracted main content.
  • Paste buffer: Cmd+V — writes the whole buffer to the clipboard and resets it. One paste gets everything you collected.
  • Clear buffer: Cmd+Shift+X — empties the buffer without touching the clipboard.

Chrome extension: Option+click (or right-click → “Send link to Smart Buffer”) on any link sends that URL to the local daemon; the daemon fetches and appends the extracted content to the same buffer. So you can queue links from the browser and still dump with one paste.

Pieces

Part Role
Rust daemon Hotkey listener, clipboard read/write, HTTP server for URLs, URL fetch + readability-style extraction, single shared buffer.
Chrome extension Sends clicked link URLs to the daemon.

Run it

  1. Start the Rust daemon: ./run.sh run (or ./run.sh dev).
  2. (Optional) Load the extension from chrome-smart-buffer-extension/ in Chrome (chrome://extensions → Load unpacked).

Requires macOS (clipboard via pbpaste/pbcopy, hotkeys via rdev).