Terminal-based file manager with syntax highlighting, markdown rendering, and theme support
fm is a terminal-based file manager built with Go and the Charm TUI libraries. It provides file navigation with visual enhancements including file icons (requires Nerd fonts), syntax highlighting for source code files using Chroma themes like dracula and monokai, and markdown rendering through Glamour for better readability.
The tool supports multiple color themes (default, gruvbox, nord) that adapt to terminal background settings, mouse interaction, and automatic layout adjustment when the terminal is resized. It can display images (PNG, JPG, JPEG) as ASCII strings and read PDF files directly in the terminal. Users can open selected files in their configured EDITOR, copy file paths to the clipboard, and write selected item paths to a specified file for integration with other tools.
Primarily aimed at developers and terminal users who need efficient file browsing without leaving the command line, fm offers customization through command-line flags for starting directory, theme selection, icon display, and logging. The selection-path feature makes it useful for scripting and integration with other terminal-based workflows.
# 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