A dual-pane TUI file manager for rclone
Project description
rclone-commander
A dual-pane TUI (Text User Interface) file manager for rclone.
Features
- Dual-pane interface - Navigate two locations simultaneously
- Parallel file transfers - Transfer up to 6 files at once with individual progress bars
- Real-time progress - Global and per-file transfer statistics (bytes, speed, ETA)
- Multi-select support - Select multiple files/directories with Space or Insert
- File operations - Copy (F5), Move (F6), Delete (F8) with live progress tracking
- Arrow key navigation - Navigate directories with cursor memory
- Smart features - Auto-refresh, partial file cleanup, right-aligned file sizes
- Color terminal support - Rich colored interface with visual selection feedback
- Fully configurable - All settings, key bindings, and colors customizable
- Remote support - Works with all rclone remotes
- Local filesystem support - Unified local/remote access via rclone
Project Structure
rclone-commander/
├── config/
│ └── app_config.ini # Application configuration
├── src/
│ └── rclone_commander/
│ ├── __init__.py
│ ├── main.py # Main application
│ ├── config.py # Configuration management
│ ├── rclone_wrapper.py # Rclone command wrappers
│ └── progress_parser.py # Progress parsing
├── docs/ # Documentation
├── rclone-commander.py # Entry point
├── run.sh # Convenience wrapper script
├── requirements.txt # Python dependencies
├── rclone.conf # Rclone remotes configuration
└── README.md
Installation
- Clone the repository:
git clone <repository-url>
cd rclone-commander
- Ensure rclone is installed:
which rclone
- The
run.shscript will automatically set up a virtual environment and install dependencies.
Usage
Quick Start
# Run with default remote from config
./run.sh
# Run and set specific remote
./run.sh rclonecommander
# With custom rclone config
export RCLONE_CONFIG=/path/to/rclone.conf
./run.sh
Manual Run
# Set up virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Run the application
python3 rclone-commander.py
# Or run as module
python3 -m src.rclone_commander.main
Configuration
All configuration is stored in config/app_config.ini. Copy and modify this file to customize your experience.
General Settings
[General]
# Default remote for left panel (leave empty for local)
default_left_remote =
# Default remote for right panel (leave empty for first from rclone.conf)
default_right_remote =
# Application title
app_title = Rclone Commander
# Extra rclone flags for all operations
extra_rclone_flags = --transfers 6 --checkers 6
Default Panel Behavior:
- Left panel: Defaults to
localfilesystem - Right panel: Defaults to first remote from
rclone.conf
Display Settings
[Display]
# Color scheme: dark, light, or auto
color_scheme = dark
# Show hidden files
show_hidden = true
# File size format: auto, bytes, KB, MB, GB
size_format = auto
# Border styles
border_style = solid
active_border_color = accent
inactive_border_color = primary
Behavior Settings
[Behavior]
# Confirmation prompts
confirm_delete = true
confirm_overwrite = true
# Follow symbolic links
follow_symlinks = false
# Auto-refresh interval in seconds (0 to disable)
auto_refresh = 0
Custom Key Bindings
[KeyBindings]
quit = q
switch_panel = tab
swap_panels = ctrl+u
copy = f5
move = f6
make_directory = f7
delete = f8,delete
navigate = enter
select_remote = f10
toggle_select = space,insert
refresh_panel = ctrl+r
show_dir_size = ctrl+i
Keyboard Shortcuts
Default key bindings (customizable in config):
Navigation
- ↑/↓ Arrow Keys - Move cursor one item at a time
- ←/→ Arrow Keys - Fast scroll (10 items at a time)
- Enter - Open directory or go to parent (..)
- Tab - Switch between left and right panel
- Space/Insert - Toggle file/directory selection
- Mouse Click - Navigate to clicked item
File Operations
- F5 - Copy selected items to other panel (with progress)
- F6 - Move selected items to other panel (with progress)
- F7 - Create new directory
- F8/Delete - Delete selected items (with progress)
- F10 - Show available remotes and switch
- ESC - Cancel ongoing operation
Panel Operations
- Ctrl+U - Swap panels (exchange left/right contents)
- Ctrl+R - Refresh current panel
- Ctrl+I - Show directory size
Application
- Q - Quit application
Rclone Configuration
The application reads from your rclone configuration file. By default, it looks for:
~/.config/rclone/rclone.conf
You can override this with the RCLONE_CONFIG environment variable.
Example rclone.conf:
[myremote]
type = sftp
host = example.com
user = username
port = 22
[backblaze]
type = b2
account = your_account_id
key = your_application_key
#local is necessary if you want to browse your local dirs
[local]
type = local
Multi-Select Operations
- Navigate to a file/directory
- Press Space or Insert to select (inverted colors appear)
- Directories: Black text on blue background
- Files: Black text on white background
- Navigate to more items and select them (cursor auto-advances)
- Press F5 (copy), F6 (move), or F8 (delete)
- All selected items will be processed with real-time progress
If no items are selected, operations work on the currently highlighted item.
Remote Selection
Press F10 to open the remote selection dialog:
- Shows all available remotes from your rclone.conf
- Includes "local" for browsing local filesystem
- Centered modal dialog
- Navigate with arrow keys, press Enter to select
- Press Esc or Q to cancel
Local Filesystem
The "local" remote uses rclone's local backend for unified operation handling. This provides:
- Consistent behavior across local and remote operations
- Same progress tracking for all transfers
- Unified path handling and error reporting
Configure in ~/.config/rclone/rclone.conf:
[local]
type = local
Environment Variables
RCLONE_CONFIG- Path to rclone configuration fileRCLONE_PATH- Path to rclone executable (default:rclone)
Development
Code Style
The project uses functional programming style with minimal OOP. Textual framework requires some class usage for UI widgets, but business logic is implemented functionally.
Troubleshooting
Empty Panels
If both panels show empty:
- Check that your rclone.conf has valid remotes configured
- Ensure the remote name in config/app_config.ini matches your rclone.conf
- Try switching to "local" remote with F10
Permission Errors
If you see permission errors when listing directories:
- Check file/directory permissions
- Ensure rclone remote credentials are correct
Module Import Errors
If you see import errors:
- Use the
run.shscript which handles paths correctly - Ensure all files are in the correct directory structure
License
MIT License - see LICENSE file for details
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Credits
Built with:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rclone_commander-0.1.0.tar.gz.
File metadata
- Download URL: rclone_commander-0.1.0.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55197fc5991a33649d93ae554a7f9268c81db70e46b5cc9b251b6d2fc1bde2aa
|
|
| MD5 |
b5be9b8b766f6077d065f7eb2b0e66e5
|
|
| BLAKE2b-256 |
5f73b68606fa626b4f1d7babba2a04eb13e07a37c1489f910fbb4703dcf159c3
|
File details
Details for the file rclone_commander-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rclone_commander-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9558a3615cec7264936f226fcf061c5f31b4118871d25f419cc20789b347ff
|
|
| MD5 |
fc2105f52d18f7d881aea7724c704b78
|
|
| BLAKE2b-256 |
ad70be0cf1297db1f51e2f5d8953648d096fd7a16b3ca45881c4a93912b9f848
|