Skip to content

0.8.0

Compare
Choose a tag to compare
@Slackadays Slackadays released this 03 Jun 14:32
· 301 commits to main since this release

238156514-579de53e-c96a-4742-914d-17d1b6ce19f9

New

  • Basically UNLIMITED clipboard history! ๐Ÿš€๐Ÿคฉ You can't say that about CopyQ, Maccy, Flycut, Clipboard Indicator, GPaste, Alfred, clipster, Raycast non-Pro, Clipboard Manager Electron, Clipped, Parcellite, Budgie Clipboard, Clipboard Master, Clippy, or Pano.
    Screenshot from 2023-05-21 17-07-11
  • Customizable clipboard entry history range from 1 to 2^32 - 1 with the CLIPBOARD_HISTORY environment variable. So, go ahead. Crank that b*tch up to a billion. It's all up 2 you! ๐Ÿ˜Ž
  • You can also choose a date range by putting y, m, w, d, or h after the number instead to specify years, months, weeks, days, or hours respectively to only keep that old content, like 6m or 2w.
  • Alternatively, you can also add tb, gb, mb, kb, or b instead to specify a maximum data size to keep, like 100gb or 5mb.
  • Remote clipboard sharing! You can now seamlessly share copied text across SSH sessions, and you only need CB installed on the remote system. To my knowledge, NO other clipboard manager has this feature. ๐Ÿฅ‡
2023-05-28.21-36-35.mp4
  • Added CLIPBOARD_NOREMOTE to disable remote clipboard reading/writing
  • Added the Edit action which lets you edit your clipboard text content right from the command line in one step!
2023-05-29.21-43-12.mp4
  • Added the CLIPBOARD_EDITOR environment variable to choose which editor to use. Note: CB will automatically search for a couple fallbacks if it can't get an editor from the CLIPBOARD_EDITOR, EDITOR, or VISUAL environment variables
  • Added clipboard searching! Now you can search either one clipboard or all of them with one or many queries of your choosing. CB will automagically sort the top results for you with what clipboard they're in and what entry each result is so you can quickly get to them.
2023-06-02.17-28-28.mp4
  • A new option for Linux users: Flatpak! There are now zero (0) excuses to not get Clipboard even if your system is older than otherwise required. Go grab that Flatpak from the Assets list below, unzip it, and install it with flatpak install clipboard-flatpak-amd64.flatpak.
  • Added focus notifications that will play a sound for you if you're looking at a different window while CB is running a long task
  • Added History action to show entire history, or queue up certain entries by adding those entries after the action, like cb history 10 42
  • Added history entry capabilities to the clipboard name selector, so now you can specify clipboard 5, entry 10 by doing an action like paste5-10
  • Added --entry flag to specify the entry by itself like --entry 10. This means you can now effortlessly rewrite history by copying content into an existing entry!
  • Added total item size in Info action for regular files and directories
  • Added total clipboard size to Info
  • Show binary content type and size in Status and History actions
  • Added locking to Status action
  • Added the eye candy ๐Ÿญ treatment to the Show action
  • Added documentation to the website at getclipboard.app/docs
  • Separated all the actions out into their own compilable .cpp files to increase build speed
  • Added more MIME types to the inference system

Fixed

  • Fixed improper JSON escaping
  • Show the real size of directories when calculating total sizes on non-Windows platforms
  • Fixed a crash that could happen due to assuming there are clipboard contents when there aren't
  • Simplified and made directory size calculations slightly more correct
  • Fixed X11 sometimes not working (AGAIN!)
  • Added terminal size sanity check for CI and broken terminal situations
  • Fixed total size calculations failing due to bad symlinks

Changed

  • Changed Easter Egg from undocumented --ee flag to --bachata flag in readme
  • Don't show raw binary content in JSON outputs
  • Switch from TMPDIR to XDG_RUNTIME_DIR in temporary filepath logic
  • The Juice website template is now bundled to prevent future availability issues
  • Renamed a couple JSON parameters for clarity
  • Replaced an emoji with a Unicode version

๐Ÿšจ WARNING!

The new history feature makes CB incompatible with how older versions stored clipboard contents. If you have existing content when you upgrade, then it might not appear in CB, although it won't be deleted. To fix this, take everything stored in the data folder of your existing clipboards and move them to a "0" subfolder within data. So, if you have the file Foobar stored under data, the new setup will look like the folder 0 under data, and 0 stores the file Foobar. To find where CB keeps your clipboards, use the cb info command and check the line that says Stored in....

If you don't already have content stored with CB, then this warning doesn't apply to you.

๐Ÿ“ Note

Because the new History action is highly optimized, if you store a lot of entries in your clipboard history, then it may overload your terminal with too much content to handle at once. To fix this, please use a GPU accelerated terminal like Kitty or Alacritty.

The remote clipboard feature depends on OSC 52 which is a feature only a few terminals support, some being Kitty and Alacritty again. You'll also need to enable clipboard reading in the terminal for this feature to read the content remotely. If your favorite terminal doesn't support OSC 52, then go complain to them for not being standards-compliant.