No Description

Jason Milkins 9626fb6799 1.6.0 [release] 2 weeks ago
.github b5ec31cec9 Why is argparse so horrendously unintuitive? 6 months ago
CutBox c0e7d4b837 Add hot key spec 5 months ago
bin b5ec31cec9 Why is argparse so horrendously unintuitive? 6 months ago
cutbox.github.io @ db6457daec 419a0989c1 Refactor js functionality, use a single JSContext. 6 months ago
cutbox.wiki @ e799e5d8a9 d611ff236e Re-sync wiki [skip ci] 6 months ago
cutbox_command 7e2337bbe6 Use newer llvm-cov for command line 6 months ago
docs e1a4ca2860 App & CLI coverage graphs - 2023-10-02T05:03:03Z [codacy skip] 5 months ago
test_bin 932ade6d54 make dmg_bin places cli for dmg 7 months ago
.codacy.yml 739daa900a Exclude non swift file extensions from codacy 6 months ago
.codeclimate.yml 675bcdae94 Enable Swiftlint on Codeclimate 6 months ago
.eslintrc.json d434e19cbd Move eslintrc to git root 6 months ago
.gitignore c6adf1f85f Update wiki and gitignore 6 months ago
.gitmodules 9f0c5c80ab unlink cutbox homebrew 1 year ago
.swiftlint.yml 213ffa6ae1 Fixed up swiftlint 6 months ago
Brewfile f41d5ca59b Add llvm_cov_refryer to workflow 6 months ago
LICENSE be22e9a32f License under GNU GPL3 6 years ago
Makefile ae4b11e78a Limit time on cov graph 10 days 6 months ago
README.md 9626fb6799 1.6.0 [release] 2 weeks ago
goals.md 99e86e4bf8 Add goals.md 7 months ago
package-lock.json 9b84725399 Fix npm dev dependencies 1 year ago
package.json 9b84725399 Fix npm dev dependencies 1 year ago
release-notes.md 8991da1427 Update release notes 5 years ago
release-post.md be9848f1ba 1.6.0 release post for hn 6 months ago
requirements.txt 26ef069e94 Add cov graph rendering 6 months ago

README.md

   Codacy coverage  Dynamic JSON Badge

Make you macOS pasteboard awesome...

GitHub release (latest SemVer)

Sponsor  

1.6.0 Final Release

About CutBox

CutBox is a clipboard manager for MacOS, designed for developers. Search using fuzzy matching or regular expressions. Multiple clipboard items can be pasted at once. You can also filter to a time limit, e.g. "10 min" will show items copied in the last 10 min, you can text search on just those items.


CutBox also has advanced JavaScript and Shell command features. Using require(javascript_file) and/or shell(commandWithArgs) you can process text through any JS library or shell command before pasting it into your workflow.


Cutbox also has a command-line interface called cutbox. It allows you to fetch items from history, filter by search, and get n entries from the most recent or searched items. See below


Originally Inspired by JumpCut & Flycut

Using CutBox

CutBox Search is activated using a global hotkey, by default:

Cmd + Shift + V

Also Compact UI mode, which expands as above when searching.

Any text you copy on MacOS is saved to CutBox's history.

(This can be customized in preferences.)

Optionally paste through a function or shell process:

Search and Paste

With the CutBox window open, search for anything you copied.

Press Enter and the selected item will paste into your current app.

To exit press Esc.

Keyboard Shortcuts

Shortcut Keys Action
Esc Exit search
Ctrlg Exit search
Enter Paste selected
CmdEnter Paste through JavaScript Functions selected (you'll need ~/.cutbox.js set up)
CmdComma Open preferences
CmdDelete Delete selected item(s)
CmdComma Open preferences
Cmdt Toggle color themes
Cmdp Toggle preview
CmdShift= Zoom/scale up text
CmdShift- Zoom/scale down text
CmdShift0 Reset text scale/zoom
Cmd- Toggle join mode (paste multiple items, joined by newline or string: Set in preferences)
Cmd[ Toggle wrap mode (paste multiple items, wrapped by a pair of strings: Set in preferences)
Cmds Toggle search modes, fuzzy match, regexp/i or regexp
Cmdf Toggle search by favorites / everything (use the right click menu, to favorite)
Time limit filter
Cmdh Toggle search within time limit
Enter (in time limit input) Switch to text search input
In items list
Altup Move to top of items
Altdown Move to top of items
Hold Shift Expand single selection to new item, standard shift select
Hold Cmd Expand selection to new items, multiple selection groups, standard command select

Status bar menu

Use the status item to open Cutbox with the mouse, and access options:

Installation

Install via Homebrew Cask - Recommended

Install the compiled package.

brew tap cutbox/cutbox
brew install --cask cutbox

Read the notes shown by homebrew and follow the

Install by downloading the release DMG

Open the CutBox latest release page cutbox/CutBox/releases/latest

Download the DMG and open it on macOS. You'll find CutBox.app & cutbox (cli tool) inside.

Drag the .app to /Applications and copy cutbox to your somewhere in exec $PATH, for example, /usr/local/bin.

Follow the macOS Security Settings First Run section.

Install via Homebrew formula

Builds the package from source, a full Xcode installation needed.

brew tap cutbox/cutbox
brew install cutbox

macOS Security Settings First Run

When you first run CutBox Macos will prompt you that the developer cannot be identified.

Please read this post from Apple.

If you prefer to install open source software that isn't notarized (such as CutBox, Chromium or other large free opensource projects.) on your Mac, you can do this in the terminal.

sudo spctl --master-disable

I only recommend this if you feel comfortable using free software that you can code audit.

CutBox doesn't participate in Apple notarisation. CutBox will be free and open forever, and is licensed under GNU/GPL3, so the source is always available. Donations are important to help keep it developed and improved.

CutBox is quality checked by Codacy.

CutBox.app and cutbox releases are build using Github actions, so you can also inspect the entire test/deploy/delivery chain online at cutbox/CutBox.

If you have any concerns about the integrity of your CutBox.app, make sure to build it directly from source on your local machine, this is easily achieved using Homebrew and installing XCode. See Install via Homebrew formula

Permissions to enable CutBox paste

After installation or upgrade, the CutBox.app requires security permission for Accessibiliy. This is so that it can paste by faking Cmd+V.

Open System Preferences -> Security & Privacy -> Privacy -> Accessibility

Unlock the panel and add CutBox to the list of apps (also switch on the check box next to its icon).

If CutBox is already in the list of apps, you have to remove and replace it with the new version installed.

releases

. (From v1.5.8 onwards.)

Note the CLI only performs read-only actions on CutBox history.

CutBox history CLI

Display items from CutBox history. Most recent items first.

cutbox [options]

Options:

Search

-f or --fuzzy <query>   Fuzzy match items (case insensitive)
-r or --regex <query>   Regexp match items
-i or --regexi <query>  Regexp match items (case insensitive)
-e or --exact <string>  Exact substring match items (case sensitive)

Filtering

-l or --limit <num>     Limit to num items
-F or --favorites       Only list favorites
-M or --missing-date    Only list items missing a date (copied pre CutBox v1.5.5)

Filter by time units e.g. 7d, 1min, 5hr, 30s, 25sec, 3days, 2wks, 1.5hours, etc. Supports seconds, minutes, hours, days, weeks.

--since <time>
--before <time>

Filter by ISO 8601 date e.g. 2023-06-05T09:21:59Z

--since-date <date>
--before-date <date>

Info

--version               Show the current version
-h or --help            Show this help page

Would you like to know more?

More information is in the wiki

Found something wrong?

If you find a bug, click here to tell me what happened.

Contributing

  • Pull requests must have test cover, existing tests should not break.
  • Open an issue if tests are already failing, so I know I need to fix them.
  • Code must pass the quality checks as used by Codacy.

Clone and setup dependencies

git clone git@github.com:CutBox/CutBox

Compilation setup / tooling

bin/setup

To build CutBox.app:

bin/build

Run the local CutBox.app with terminal logging...

CutBox/build/CutBox.app/Contents/MacOS/CutBox

To use the newly built CutBox.app and move it to /Applications/CutBox.app:

bin/use_build_as_local_app

When build is complete it'll automatically open System Preferences > Security & Privacy > Privacy. Select the Accessibility list and add /Applications/CutBox.app

(Note if there is already a CutBox entry, remove it first, and add the new one. For any app, each build must be assigned permissions specifically.)

Visit Gitter chat here, if you have problems getting up and running

Or open an issue https://github.com/cutbox/CutBox/issues

FAQs

  • When I do Cmd Shift v in other apps, CutBox opens. I need that command in another app!
    • Change the CutBox hotkey to be something you're happy with, in CutBox preferences (in the macOS status-bar menu)
  • My JS functions aren't loading from my ~/.cutbox.js?
    • Make sure you are using this.cutboxFunctions or globalThis.cutboxFunctions using var cutboxFunctions or let cutboxFunctions will not work as expected.
  • When I select item to paste, and press enter, nothing happens.
  • I can't start CutBox, macOS says it's "potentially malware"
    • Apple seems to confuse independent open source software, with "potential malware", this seems dishonest.
    • To enable CutBox follow the guide on macos security settings

Thank You...

CutBox has contributions from Carlos Enumo, Dávid Geréb, Denis Stanishevskiy, with support from Adam Johnson.

Thanks for you contriubutions and continued support.

Licence

CutBox is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CutBox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.