Git Product home page Git Product logo

clipboard's Introduction

Clipboard Banner

๐Ÿš€ Clipboard is a power tool that saves you time and effort. Previously, you've always had to think about where exactly you want to move text and files. This increases your mental workload and makes some scenarios simply impractical. Now, you can have a unified clipboard to use anywhere in the command line, just as if you were using a GUI.

  • Quick. Zero configuration needed to use.
  • Easy. Friendly to newbies and power users alike.
  • Compatible. Works on any system that supports C++23. Really!
  • Unified. Functions exactly the same everywhere.
  • Universal. Supports English, Spanish, Portuguese, and Turkish.
  • Integrated. Connects with many native GUI clipboards.
  • Tiny. Mere tens of kilobytes in size.

Clipboard Demo Image Quick Installation

All Except Windows

curl -sSL https://github.com/Slackadays/Clipboard/raw/main/src/install.sh | bash

Windows

(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/src/install.ps1).Content | powershell

Install Manually

Get the latest release instead by adding --branch 0.2.1r2 right after git clone.... Change the installation prefix by adding -DINSTALL_PREFIX=/CUSTOM/PREFIX to cmake ...

git clone https://github.com/slackadays/Clipboard 
cd Clipboard/build
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .
cmake --install .

Uninstall

Remove all the files in install_manifest.txt. If you're not using Windows, you can also do xargs rm < install_manifest.txt.


Premade Builds

Packaging status

You can also download Clipboard directly from GitHub Actions.

How To Use

In all commands, you can substitute cb for clipboard. Add a number to the end of the action to choose which clipboard you want to use (the default is 0) or _ to use a persistent clipboard.


Copy โ€ƒ clipboard ([--]copy|[-]cp)[(num)|_(id)] (file) [files]


Cut โ€ƒ clipboard ([--]cut|[-]ct)[(num)|_(id)] (file) [files]


Paste โ€ƒ clipboard ([--]paste|[-]p)[(num)|_(id)]


Pipe In โ€ƒ (something) | clipboard [([--]copy|[-]cp)][(num)|_(id)]


Pipe Out โ€ƒ clipboard [([--]paste|[-]p][(num)|_(id)] | (something) or clipboard [([--]paste|[-]p)][(num)|_(id)] > (some file)


Show Contents โ€ƒ clipboard ([--]show|[-]sh)[(num)|_(id)]


Clear Contents โ€ƒ clipboard ([--]clear|[-]clr)[(num)|_(id)]


Examples

cb copy foo.txt launchcodes.doc
clipboard cut1 MyDirectory
cb cp800 bar.conf AnotherDirectory baz.txt

Simple Configuration

Environment Variables

CI โ€ƒ Set this to make Clipboard overwrite existing items without a user prompt when pasting. This variable is intended for Continuous Integration scripts where a live human is not present to make decisions.


FORCE_COLOR โ€ƒ Set this to make Clipboard always show color regardless of what you set NO_COLOR to.


TMPDIR โ€ƒ Set this to the directory that Clipboard will use to hold the items you cut or copy into a temporary directory. Other programs use TMPDIR as well, so be careful about changing this.


CLIPBOARD_TMPDIR โ€ƒ Set this to the directory that only Clipboard will use to hold the items you cut or copy into a temporary directory.


CLIPBOARD_PERSISTDIR โ€ƒ Set this to the directory that only Clipboard will use to hold the items you cut or copy into a persistent directory.


CLIPBOARD_ALWAYS_PERSIST โ€ƒ Set this to make Clipboard always use persistent clipboards.


CLIPBOARD_NOGUI โ€ƒ Set this to disable integration with GUI clipboards.


NO_COLOR โ€ƒ Set this to make Clipboard not show any colors.


Flags

--fast-copy, -fc โ€ƒ Add this to use links when copying, cutting, or pasting. If you modify the items that you used with this flag, then the items you paste will have the same changes.

Need Help?

Go to the Clipboard Wiki for more information, or join our Discord group!

Discord Support

Thank You!

Thank you to all the contributors who have helped make Clipboard great.

clipboard's People

Contributors

slackadays avatar davipb avatar zaryob avatar skeeto avatar derspyy avatar zoenglinghou avatar antiz96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.