Skip to content

charithmadhuranga/py-commander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Midnight-Commander-Like File Manager with Enhanced Editor

A modern, cross-platform terminal file manager inspired by Midnight Commander, featuring:

  • Dual-panel file manager with active panel highlighting
  • Internal Nano-style editor with syntax highlighting via Pygments
  • Undo/Redo, Cut/Paste, Ctrl/Cmd shortcuts
  • Material Design-inspired theming using YAML
  • RobbyRussell Oh-My-Zsh inspired theme available
  • Fully cross-platform: Linux, macOS, Windows

Features

File Manager

  • Dual panels side-by-side
  • Active panel clearly highlighted
  • Scrollable file list
  • Navigate directories (Enter / ..)
  • Open files in enhanced editor (Enter / e)
  • Switch panels with Tab
  • Quit with q

Internal Editor

  • Nano-style shortcuts:
    • Ctrl-O / ⌘-O → Save
    • Ctrl-X / ⌘-X → Quit
    • Ctrl-Z / ⌘-Z → Undo
    • Ctrl-Y / ⌘-Y → Redo
    • Ctrl-K / ⌘-K → Cut line
    • Ctrl-U / ⌘-U → Paste line
  • Syntax highlighting auto-detects file type
  • Undo/Redo with 100-step history
  • YAML-based theme support

Theming

  • YAML-based themes for panels, borders, highlights, and status bar
  • Default Material Design-inspired theme
  • RobbyRussell Oh-My-Zsh inspired theme (themes/default.yml)
  • Easy to create custom themes by editing YAML

Installation

  1. Clone the repository:
git clone https://github.com/charithmadhuranga/py-commander.git
cd py-commander/py_cmd/
uv venv
. .venv/bin/activate
uv sync
cd ../
python3 -m py_cmd.app

About

Python Midnight-Commander-Like File Manager with Enhanced Editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages