easypaste: Paste text segments one by one

A cross-platform clipboard automation tool written in Rust that allows you to sequentially paste delimited text segments from a file using global hotkeys.

Why is this useful?

The tool is open-source and runs offline on your computer, so you can be sure that your data is not being sent to any server.
And by the way, it’s free! If you find it useful, you can donate.

Features

Installation

Binary Release Downloads

Once installed on Mac:

  1. Open the Terminal app (e.g. by typing "terminal" in Spotlight Search).
  2. Type: easypaste --help

This will start the tool from anywhere in the terminal.

To uninstall easypaste from Mac, open the Terminal and run: sudo rm /usr/local/bin/easypaste

Prerequisites for building your own binary from source

Make sure you have Rust installed. If not, install it from rustup.rs. Checkout the repository from GitHub and build the binary:

cargo build --release

Usage

Basic Usage

Command Line Arguments

Configuration File

Create a config.toml file to customize behavior (including hotkey, delimiter, file path, and automatic pasting). Supported hotkey_modifiers: CMD/WIN/META, CTRL/CONTROL, ALT/OPTION, SHIFT.

```
delimiter = "%%%"
file_path = "example_input.txt"
hotkey_modifiers = ["CTRL", "SHIFT"]
hotkey_key = "B"
paste = true
```

Input File Format

Create a text file with segments separated by your chosen delimiter. You can also include internal notes after delimiters on the same line:

```
First text segment with line break
%%%this is an internal note
Second segment with
multiple lines%%%
function example() {
    console.log("Code snippet");
}%%%this is another internal note
echo "Command example"%%%
Last segment
```

Internal notes (text after delimiter on the same line) are displayed in the console but not included in the pasted content.

Supported Operating Systems

Limitations

Disclaimer

easypaste comes with no warranty. If you need to grant additional system privileges for the tool to work, revoke them again if you don't use the tool.