# fm

> Terminal-based file manager built with Go and Bubble Tea framework

Stars: 636 · Categories: File Management

- Repository: https://github.com/mistakenelf/fm
- Page: https://www.trmn.sh/tools/fm

## Install

- Curl: `curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh`
- Go: `go install github.com/mistakenelf/fm@latest`
- AUR: `paru -S fm-git`

## Overview

fm is a terminal user interface file manager built with Go using the Bubble Tea framework. It provides file navigation capabilities with visual enhancements including file icons (requiring nerd fonts), syntax highlighting for source code files, and markdown rendering through the Glamour library.

The tool supports multiple themes including default, gruvbox, and nord color schemes. It can render various file types including images (PNG, JPG, JPEG) as ASCII strings and PDF files. The interface adapts to terminal resizing and includes mouse support for navigation.

Developers and terminal users can customize the syntax highlighting themes using styles from Chroma (dracula, monokai, etc.) and configure the tool to open files in their preferred editor through the EDITOR environment variable. The tool also supports copying file paths to clipboard and writing selected item paths to external files for integration with other tools.

### Installation

```bash
# via Curl
curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh
```

```bash
# via Go
go install github.com/mistakenelf/fm@latest
```

```bash
# via AUR
paru -S fm-git
```

## Alternatives

- [hazelnut](https://www.trmn.sh/tools/hazelnut.md): Terminal-based automated file organizer that watches folders and applies rules to move, copy, rename, or delete files based on patterns (Rust, 327 stars)
- [deletor](https://www.trmn.sh/tools/deletor.md): File deletion tool with interactive TUI and CLI modes supporting filters, trash integration, and batch operations. (261 stars)
- [cull](https://www.trmn.sh/tools/cull.md): Interactive TUI disk space analyzer for scanning directories, finding large files, and deleting them from the terminal. (168 stars)
- [bt](https://www.trmn.sh/tools/bt.md): TUI file manager with tree-based navigation for manipulating files and directories in terminal (167 stars)
- [bkp](https://www.trmn.sh/tools/bkp.md): Simple command-line utility for creating numbered backups of files and directories with optional TAR archiving. (24 stars)

## Guides

- [Best Terminal File Managers](https://www.trmn.sh/best/terminal-file-managers): Compare terminal file managers: yazi, nnn, ranger, lf, broot and more. Differences in previews, plugins, footprint and keybindings.

---

Canonical: https://www.trmn.sh/tools/fm
