# Finder Plus

> Finder Plus has no command group of its own. Every action its Finder shortcuts, hotkeys, page and Home card perform is an operation of the running extension,…

- Canonical URL: https://getedith.pro/docs/cli/finder-plus
- Updated: 2026-12-02

Finder Plus has no command group of its own. Every action its Finder shortcuts,
hotkeys, page and Home card perform is an operation of the running extension,
sent through [`ed invoke`](https://getedith.pro/docs/cli/invoke) with a JSON payload. Results are
JSON on stdout; a refused request prints a JSON error on stderr and exits
non-zero.

Operations that act on items take explicit absolute `paths` (a leading `~` is
expanded). When `paths` or `folder` is left out, Finder Plus asks Finder for its
selection or the folder of the front Finder window instead, which needs
permission to control Finder.

```sh
ed invoke finderPlus status
ed invoke finderPlus cut --json '{"paths":["/tmp/synthetic/a.txt","/tmp/synthetic/b.txt"]}'
ed invoke finderPlus paste --json '{"folder":"/tmp/synthetic/inbox"}'
ed invoke finderPlus move --json '{"paths":["/tmp/synthetic/c.txt"],"folder":"/tmp/synthetic/inbox","collision":"keepBoth"}'
ed invoke finderPlus rename --json '{"path":"/tmp/synthetic/a.txt","name":"first.txt"}'
ed invoke finderPlus renamePreview --json '{"paths":["/tmp/synthetic/IMG_0001.jpg"],"rules":{"find":"IMG_(\\d+)","replace":"Photo $1","regex":true}}'
ed invoke finderPlus renameApply --json '{"paths":["/tmp/synthetic/IMG_0001.jpg"],"rules":{"template":"{n:2} {name}"}}'
ed invoke finderPlus pasteImage --json '{"folder":"/tmp/synthetic"}'
ed invoke finderPlus newFile --json '{"folder":"/tmp/synthetic","template":"markdown","name":"Notes"}'
ed invoke finderPlus copyPath --json '{"paths":["/tmp/synthetic/a b.txt"],"format":"shell"}'
ed invoke finderPlus openTerminal --json '{"path":"/tmp/synthetic"}'
ed invoke finderPlus undo
```

## Operations

| Operation | Input | Output |
| --- | --- | --- |
| `status` | `{}` | `settings`, `accessibility`, `listening`, `cut`, `cutEnded`, `progress`, `history` (newest 20), `templates`, `templatesFolder`, `failure` |
| `selection` | `{}` | `paths` selected in Finder |
| `cut` | `paths` | The cut set: `paths`, `changeCount`, `markedAt`. The items are also put on the clipboard as files |
| `cancelCut` | `{}` | `status` after the cut is dropped |
| `paste` | `folder`, `collision` | The move result of the cut items: `moved`, `skipped`, `failed`, `cancelled` and the undo `entry` |
| `move` | `paths`, `folder`, `collision` | The same move result, without a cut |
| `rename` | `path`, `name` | The undo `entry` |
| `renamePreview` | `paths`, `rules` | `items` with `path`, `name`, `newName`, `status` (`unchanged`, `rename`, `collision`, `invalid`) and `message`. Changes nothing |
| `renameApply` | `paths`, `rules` | The undo `entry`. Refuses when any name collides or is not valid |
| `pasteImage` | `folder` | `path` of the PNG written from the clipboard image and the undo `entry` |
| `templates` | `{}` | Templates with `id`, `title`, `fileName` and `builtIn` |
| `newFile` | `folder`, `template`, `name` | `path` of the new file and the undo `entry` |
| `openTemplates` | `{}` | `folder`, the templates folder, opened in Finder |
| `copyPath` | `paths`, `format`, `copy` | `text`, `format`, `count` and `copied` |
| `openTerminal` | `path` | `app` and `folder`. A file opens its folder |
| `shelve` | `paths` | `count` of items parked on the Shelf |
| `history` | `{}` | Every undo entry, newest first, at most 50 |
| `undo` | `id` | `entry`, `restored` and `failed`. Without `id` it undoes the newest action not yet undone |
| `permission` | `{}` | Asks for Accessibility and returns `status` |

`collision` is `keepBoth` (the moved item gets a free name such as `a 2.txt`),
`replace` (the item already there goes to the Trash, and undo brings it back)
or `skip`. Without it the Files setting decides, `keepBoth` by default.

`format` is `posix`, `tilde` (`~` for the home folder), `shell` (single quoted
where needed and joined by spaces) or `markdown` (a link to a `file://` URL).
`copy` defaults to true.

`template` is `text`, `markdown`, `script` (made executable) or
`user:<file name>` for a file in the templates folder. A `name` without an
extension keeps the template's extension, and a taken name gets a number.

## Rename rules

| Field | Default | Meaning |
| --- | --- | --- |
| `find`, `replace` | empty | Text to find and what replaces it. With `regex`, `find` is a regular expression and `replace` can use `$1` for groups |
| `regex` | `false` | Treat `find` as a regular expression |
| `caseSensitive` | `true` | Match letter case when finding |
| `textCase` | `keep` | `keep`, `lower`, `upper`, `title` or `sentence`, applied after find and replace |
| `template` | `{name}` | The new name. Tokens: `{name}`, `{ext}`, `{parent}`, `{n}`, `{n:3}`, `{date}`, `{modified}`, `{created}`, each date with an optional format such as `{date:yyyyMMdd}`. `{{` and `}}` write braces |
| `numberStart`, `numberStep`, `numberPadding` | `1`, `1`, `0` | What `{n}` counts from, by how much, and how many digits it pads to |
| `includeExtension` | `false` | Apply find, replace, case and the template to the extension too |

Names that collide with each other or with an item already in the folder, names
with a slash, and names longer than 255 bytes are reported in the preview and
block `renameApply`. Renames run in two steps through temporary names, so
swapping two names works, and a failure puts every item back.

## Undo

Moves, renames, new files and pasted images are kept in an undo history of the
50 newest actions, stored with the extension's data so it survives a restart.
Undo refuses, and changes nothing, when an item was moved or deleted since or
something else now has its original name. Undoing a new file or a pasted image
moves that file to the Trash.

- [`ed invoke`](https://getedith.pro/docs/cli/invoke)
- [All command groups](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
