Skip to content

Yet another unobtrusive clipboard extension for MacOS

Notifications You must be signed in to change notification settings

emberOwl/CopyPasta

Repository files navigation

CopyPasta pasta image

CopyPasta is yet another unobtrusive clipboard extension for MacOS. CopyPasta stores the last n(TBD) items that were copied onto the clipboard and can paste any of the items selected. There will be no support for any MacOS versions previous to Catalina.

This is a tool I created for personal use.

Why use CopyPasta?

  • I made this.
  • Retains original keyboard shortcut functionality (⌘ + c) and (⌘ + v)
  • Extends the storage of (⌘ + c)'d items
  • Hella cute menu bar logo

I don't wanna use CopyPasta

Here are some well developed, free, and open source applications that I would suggest:

How does this work?

Copy

With every (⌘ + c) keypress, each copied item is stored in the cache, ordered by approximately the timestamp of the keypress.

Paste

(⌘ + v) will paste the last item copied.

(⌘ + ^ + v) will bring up a list of the last copied items for selection. Clicking on an item will paste it where the cursor is.

How does this really work?

Copy

The application polls for changes every 500 milliseconds for changes in the general NSPasteboard. When it encounters a change, it stores the new item in a key value store located in the cache, the key being a SHA-1 hash of the content.

This seems dumb.

In MacOS, there is currently no better way to monitor the pasteboard for changes, unlike iOS.

Paste

A global hotkey listener waits for the keypress combination (⌘ + ^ + v). Upon keypress, it will bring up the list of copied items either in the menu bar popover or a separate window. (TBD) The list is retrieved from the aforementioned key value store.

Resources

Logo attributed to IconKing from freeicons.io. Thank you! Sound files from soundbible.com

Thank you

RayWenderlich was a priceless resource for MacOS application development. Thank you!

TODO

  • Reformat image (big) and text (scroll)
  • Shortcuts
  • Option to reorder menu
  • drag and drop
  • Add PDF formats
  • highlighr current thing on pasteboard

About

Yet another unobtrusive clipboard extension for MacOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published