Terminal-based file manager with syntax highlighting, markdown rendering, and theme support
fm is a terminal-based file manager built with Go and the Bubble Tea TUI framework. It provides file navigation with visual enhancements including file icons (requires Nerd fonts), customizable themes (default, gruvbox, nord), and layout adaptation to terminal resizing.
The tool includes content preview capabilities with syntax highlighting for source code using Chroma themes (dracula, monokai, etc.), markdown rendering through Glamour, and basic support for viewing PNG, JPG, JPEG images as strings and PDF files. It supports mouse interaction and can copy selected file paths to the clipboard.
Users can launch fm in any directory, specify custom start directories, enable logging, and configure various display options through command-line flags. The tool integrates with the system's default editor (set via EDITOR environment variable) for file editing and can write selected item paths to specified files for integration with other tools.
# via Curl
curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh
# via Go
go install github.com/mistakenelf/fm@latest
# via AUR
paru -S fm-git