File Mover

Clipboard-based interface for moving files and directories

LLA File Mover Plugin

A plugin for lla that provides an intuitive clipboard-based interface for moving files and directories.

Features

  • Clipboard Management: Persistent clipboard for files and directories
  • Interactive Selection: Multi-select interface for files and operations
  • Flexible Moving: Move all or selected items from clipboard
  • Path Flexibility: Support for both current and specified directories
  • Safe Operations: Validation and error handling for move operations
  • User Interface: Colored output and interactive menus

Configuration

Config file: ~/.config/lla/mv_clipboard.json

[colors]
success = "bright_green"
info = "bright_blue"
error = "bright_red"
path = "bright_yellow"

Usage

Basic Operations

# Add files from current directory to clipboard
lla plugin --name file_mover --action add
 
# Add files from a specific directory to clipboard
lla plugin --name file_mover --action add /path/to/source
 
# Move all files from clipboard to current directory
lla plugin --name file_mover --action move-all
 
# Move all files from clipboard to specific directory
lla plugin --name file_mover --action move-all /path/to/destination
 
# Move selected files from clipboard to current directory
lla plugin --name file_mover --action move-partial
 
# Move selected files from clipboard to specific directory
lla plugin --name file_mover --action move-partial /path/to/destination

Clipboard Management

# View clipboard contents with option to remove items
lla plugin --name file_mover --action show
 
# Clear the clipboard
lla plugin --name file_mover --action clear
 
# Show help information
lla plugin --name file_mover --action help

Common Workflows

1. Moving Files Between Directories (Using Explicit Paths)

# Add files from source directory
lla plugin --name file_mover --action add /path/to/source
# Select files to move using space, confirm with enter
 
# Move all files to target directory
lla plugin --name file_mover --action move-all /path/to/target

2. Moving Files Using Current Directory Navigation

# In source directory
cd /path/to/source
lla plugin --name file_mover --action add
# Select files to add to clipboard
 
# Navigate to first target
cd /path/to/target1
lla plugin --name file_mover --action move-partial
# Select subset of files to move here
 
# Navigate to second target
cd /path/to/target2
lla plugin --name file_mover --action move-partial
# Select another subset of files to move here

3. Mixed Workflow (Current and Explicit Paths)

# Add files from current directory
lla plugin --name file_mover --action add
# Select files to add to clipboard
 
# Move selected files to a specific directory without changing location
lla plugin --name file_mover --action move-partial /path/to/target

Display Format

─────────────────────────────────────
 File Mover Clipboard
─────────────────────────────────────
 Current Items:
 /path/to/file1.txt
 /path/to/directory1
 /path/to/file2.rs
─────────────────────────────────────
 Use Space to select, Enter to confirm
─────────────────────────────────────