dcmd: A Keyboard-First Dual-Pane File Manager, Including Over SSH
Most of my file management happens in one of two places: Finder, where moving files between two folders means arranging two windows and dragging, or a terminal, where I type rsync -av and paths from memory and hope I got the trailing slash right. Neither is good at the most common task, which is this stuff, over there.
Dual-pane file managers solved this decades ago. Two panes side by side, one is the source, the other the destination, and a single key copies or moves between them. dcmd is my take on that idea for how I work now: keyboard first, native, and comfortable with remote machines, because half the “over there” in my day is a build host or a NAS.
It’s at 0.3.4, usable day to day, and available for macOS (Apple silicon), Linux and Windows.
brew install --cask tendant/tap/dcmd
Other platforms are on the releases page.
The core loop
The whole interface comes down to a handful of keys:
| Action | Keys |
|---|---|
| Switch pane | Tab |
| Enter folder / go up | Enter / Backspace |
| Filter | just start typing |
| Select | Space, Shift+↑↓ |
| Copy to other pane | F5 or ⌘⇧C |
| Move to other pane | F6 or ⌘⇧M |
| New folder | F7 or ⌘⇧N |
| Rename | F2 or ⌘⇧R |
| Move to Trash | F8 or ⌘⌫ |
| Preview | F3 |
| Command palette | ⌘⇧P |
The F-keys are the traditional dual-pane bindings. On a Mac they’re claimed by the system for media and dictation, so every one of them also has a ⌘ binding that does the same thing, and the bound function keys are shown along the foot of the window as clickable buttons. Everything is also in the application menu and the command palette, so you never need to memorize anything to get started.
A small rule I care about: a command has exactly one binding. The menu owns every ⌘/Ctrl accelerator. The keyboard handler owns only the keys whose meaning depends on context. Esc cancels a transfer, then clears a filter. Backspace edits a filter or goes up. That keeps the two from fighting over the same keypress.
Remote hosts without reinventing SSH
Remote support is the part I wanted most, and the part I was most determined not to over-build.
Hosts come straight from ~/.ssh/config. Keys, ports, ProxyJump and known_hosts all apply, because dcmd drives the system ssh rather than reimplementing any of it. If ssh build works in your terminal, the build host works in dcmd.
A remote pane is a listing over SFTP, not a mounted filesystem. Transfers to or from it run rsync, which is what these connections are actually for: it resumes, it only sends what differs, and a dry run shows what would change before anything does. Listings are cached, so going back to a directory doesn’t re-fetch it.
Switching machines is meant to be cheap:
- The places bar starts with ⌂ This Mac, plus your hosts and bookmarks. Click one to send the pane there, or Alt-click to send the other pane.
⌘Ltakes a scope as well as a path:
| Typed | Goes to |
|---|---|
/var/log | /var/log on this machine |
build:/srv | /srv on the host build |
local:/var/log | this machine, said explicitly |
~/Documents | home, on whichever machine the pane is on |
When you press ⌘L on a remote pane, only the path is selected, not the host prefix. Typing a new path keeps you on the same machine, and leaving that machine takes a deliberate edit. Only a saved alias is read as a host, so C:\Users stays a Windows path and a file named notes:draft stays a file.
Remote support is Unix-only for now, since it depends on the system ssh binary.
Behaviour I care about
A file manager is a tool you trust with data, so most of the design work went into what happens when things go wrong.
Nothing is deleted before its replacement exists. Replacing a file assembles the incoming copy beside the target and swaps it in only when it’s complete. A failed or cancelled transfer leaves the original intact.
Folders merge. Copying a folder onto one with the same name descends into it and applies your choice (skip, replace, keep both) file by file. Files that exist only at the destination are left alone.
Delete goes to the Trash, names what it’s about to delete, and reports which items it couldn’t move instead of failing the whole batch with one message.
Folder sizes are not computed while listing. A folder shows its item count. Press Space on it to compute the recursive size, and press Space or Esc again to cancel. An early version computed sizes eagerly, and listing a home directory then walked millions of files before showing anything.
A refusal is not an error. “Nothing to copy” is a line in the status bar, not a red banner. Red is kept for failures that lost work or need an answer.
Messages appear at the bottom of the pane, never above the list. A bar that opens above the list pushes every row down, so the row under your cursor moves just as a keypress arrives. At the bottom, the list loses height and nothing you’re looking at moves.
A filtered view can’t act on rows you can’t see. Cursor, selection and operation targets all resolve through the same visible-entries list.
How it’s built
dcmd is Tauri 2 with a React + TypeScript frontend and a Rust backend. The split is strict: the frontend holds no filesystem logic, and every operation is a Rust command run off the UI thread. There’s exactly one frontend module that calls invoke().
src/ React: panes, list, dialogs, one Zustand store
tauri/ the only place that calls invoke()
src-tauri/src/
fs/ listing, entry model, atomic rename
operations/ copy, move, rename, mkdir, trash, transfer policy
remote/ ssh config, SFTP listing, rsync
preview.rs text, Markdown, images, PDF
Tauri gives me a small native binary and a real web UI, which makes things like Markdown and PDF preview cheap. The cost is startup, which I measured honestly. The design target was under 100 ms. A release build on an M-series Mac reaches both panes ready at roughly 360–420 ms, and about 180 ms of that is Tauri and WebView initialization before any of my code runs. The target can’t be reached by optimizing what happens afterwards, so the realistic levers are rendering the window shell before the first listing returns and cutting IPC round trips off the critical path. It feels quick in practice, but it isn’t instant, and the design document says so.
Testing runs on three platforms because filesystem behaviour is where they differ. CI runs the Rust suite on Linux, macOS and Windows. make test-live spins up a throwaway SSH container for the remote tests. The macOS build is signed and notarized, both the .app and the .dmg, so it opens without the “damaged” dialog.
What’s next
Recursive filename search is the biggest missing piece. After that, mostly polish: startup time, and whatever the daily use turns up. The design document has the full scope, including the non-goals, which matter just as much: no cloud sync, no AI features, no plugin marketplace, and no attempt to replace Finder.
If you spend your day moving files between local folders and remote machines, give it a try:
brew install --cask tendant/tap/dcmd
Issues and feedback are welcome on GitHub.