Plugin catalog

file_mover

Collects files and directories on a clipboard, then moves them to a target directory.

↓ on this page

file_mover collects files and directories on a clipboard, then moves them to a target directory. Reach for it when you're gathering items from several places into one. It adds nothing to listings.

The clipboard is a JSON file, separate from your system clipboard: mv_clipboard.json in ~/Library/Application Support/lla/ on macOS and ~/.config/lla/ on Linux.

Actions

Run an action with lla plugin run file_mover <action> -- <args>. Every action is interactive, so it needs a TTY and the default --output human.

ActionArgumentsWhat it does
add[dir]Opens a multi-select for one directory and adds your picks to the clipboard. Space selects, a toggles all, Enter confirms.
move-all[target]Moves every clipboard item to the target and empties the clipboard.
move-partial[target]Lets you pick which clipboard items to move, and removes those from the clipboard.
showShows the clipboard in a selector, where you can remove items.
clearEmpties the clipboard.
helpPrints usage.

dir and target default to the current directory.

Example

lla plugin run file_mover add -- ~/project/mv-src
lla plugin run file_mover move-all -- ~/project/mv-dst
Success: Added 2 items to clipboard from ~/project/mv-src
Success: Moved all items to ~/project/mv-dst

Permissions

filesystem = ["read:tree", "write:selected-destination", "delete:selection"]: it reads the source tree, writes to the target and removes the originals. It also declares clipboard = true, though its clipboard is the JSON file above.