Skip to content
Tech News
← Back to articles

Midnight Captain – A midnight commander inspired file manager

read original get Midnight Commander File Manager → more articles
Why This Matters

OpenCode offers a customizable, terminal-based file manager inspired by Midnight Commander, integrating modern features like Vim keybindings, fuzzy search, and remote SSH browsing. Its design caters to power users seeking a flexible, efficient tool for managing local and remote files directly from the terminal, potentially transforming workflows for developers and system administrators.

Key Takeaways

Preamble

Midnight Commander has always been my favorite terminal file manager. It's feature-rich, fast, and actually tries to be a file manager compared to modern alternatives. However, there are quite some features that I never used, and I couldn't configure a Vim bindings that works well for me.

With OpenCode, I can finally make my own terminal file manager. I borrowed the main design concepts from Midnight Commander and some behavior from NVim-Tree file explorer.

I hope you would like it, at least I do. Since this project is entirely vibe-coded, so I'm not going to accept PR from the community, but feel free to open issues and fork it.

Features

Dual pane — navigate two directories side by side, copy/move between them

— navigate two directories side by side, copy/move between them Tree expand — expand/collapse directories inline with l / h , nerd font icons

— expand/collapse directories inline with / , nerd font icons Vim keybindings — j / k / h / l , gg / G , ctrl+d / ctrl+u

— / / / , / , / Visual selection — select ranges with V , operate on multiple files at once

— select ranges with , operate on multiple files at once File operations — copy, cut, paste, delete (with confirmation), rename

... continue reading