crepe-bordeaux

Crates.iocrepe-bordeaux
lib.rscrepe-bordeaux
version0.1.1
sourcesrc
created_at2024-03-06 16:55:39.78349
updated_at2024-03-09 02:00:06.187301
descriptionThe cross-platform clipboard cli tool
homepagehttps://github.com/Mcmartelle/crepe-bordeaux
repositoryhttps://github.com/Mcmartelle/crepe-bordeaux
max_upload_size
id1164999
size46,184
Matthew Martelle (Mcmartelle)

documentation

README

crepe-bordeaux

The cross-platform clipboard cli tool

crepe bordeaux

Copy:

$ echo "foo" | cb

Paste:

$ cb
foo

Clear:

$ cb clear

Save to a register:

$ echo "thing I want to save for a while" | cb memorable-name

Paste from a register:

$ cb memorable-name
thing I want to save for a while

List registers:

$ cb list
memorable-name

Clear a register:

$ cb memorable-name clear

Clear system clipboard and all registers:

$ cb clear-all

Select a register interactively with fzf (or skim) in bash:

$ cb $(cb list | fzf)

No clipboard available?

cb will write to a .txt file in the folder determined by Rust's std::env::temp_dir

Want to use a different folder?

Set the environment variable CB_DIR

Why, though?

I was enjoying Amila's cb interface on my main computer and had already forked it to add Wayland support with arboard. However, on a minimal install of NixOS with no display/window manager there was no clipboard for it to use, so I made this.

Why "crepe-bordeaux", though?

The names clipboard-cli and cli-clipboard were already taken, and tealdeer inspired creativity.

Commit count: 0

cargo fmt