fm

mistakenelfMIT更新放缓

用 Go 写的终端文件管理器,基于 Bubble Tea 构建 TUI 界面,让你不离开命令行就能浏览、操作文件。

A terminal based file manager

v1.2.0发布于 2025-12-23 14:40 UTC635star28fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh
go install github.com/mistakenelf/fm@latest
硬件要求按 README 说明

README 未说明,仅需可运行终端;显示文件图标需安装 nerd font。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

终端里的文件管理器,用键盘和鼠标整理目录、预览代码与文档

用 Go 写的终端文件管理器,基于 Bubble Tea 构建 TUI 界面,让你不离开命令行就能浏览、操作文件。

核心能力

  • 用 Chroma 做源码语法高亮,主题可切换
  • 用 Glamour 渲染 Markdown,可开关
  • 在终端内以字符形式显示 PNG、JPG、JPEG 图片
  • 支持读取 PDF 文件内容
  • 布局随终端窗口大小自动调整,支持鼠标操作

容易踩的坑

文件图标依赖 nerd font,未安装会显示异常;浅色/深色终端需设置对应主题参数,否则语法高亮配色可能不对;打开文件依赖 EDITOR 环境变量,未设置时无法调用编辑器。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.2.0
  1. v1.2.0最新正式版2025-12-23 · 2025-12-23 14:40 UTC

    What's Changed

    New Contributors

    Full Changelog: https://github.com/mistakenelf/fm/compare/v1.1.0...v1.2.0

  2. v1.1.02024-04-14 · 2024-04-14 17:22 UTC
    查看更新说明

    Full Changelog: https://github.com/mistakenelf/fm/compare/v1.0.0...v1.1.0

    Features:

    -- Render CSV's as a table

  3. v1.0.02024-04-06 · 2024-04-06 18:09 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/mistakenelf/fm/compare/v0.16.0...v1.0.0

  4. v0.16.02023-08-16 · 2023-08-16 13:15 UTC
    查看更新说明

    Changelog

    • 10b773b v0.16.0
    • e2f7f40 chore: update urls
    • 4ef8432 chore: rename to model and account for teacup update
    • fb84c5a chore: update deps
    • 8d16920 chore: remove scoop for now
  5. v0.15.102022-09-01 · 2022-09-01 20:49 UTC
    查看更新说明

    Changelog

    • 9055413 v0.15.10
    • 3d0c404 fix: use correct name

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    About The Project

    A terminal based file manager

    Built With

    Installation

    Curl

    curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh
    

    Go

    go install github.com/mistakenelf/fm@latest
    

    AUR

    Install through the Arch User Repository with your favorite AUR helper. There are currently two possible packages:

    • fm-git: Builds the package from the main branch
    paru -S fm-git
    
    • fm-bin: Uses the github release package
    paru -S fm-bin
    

    Features

    • File icons (requires nerd font)
    • Layout adjusts to terminal resize
    • Syntax highlighting for source code with customizable themes using styles from chroma (dracula, monokai etc.)
    • Render pretty markdown
    • Mouse support
    • Themes (default, gruvbox, nord)
    • Render PNG, JPG and JPEG as strings
    • Colors adapt to terminal background, for syntax highlighting to work properly on light/dark terminals, set the appropriate theme flags
    • Open selected file in editor set in EDITOR environment variable
    • Copy selected directory items path to the clipboard
    • Read PDF files

    Themes

    Default

    Gruvbox

    Nord

    Usage

    • fm will start fm in the current directory
    • fm update will update fm to the latest version
    • fm --start-dir=/some/start/dir will start fm in the specified directory
    • fm --selection-path=/tmp/tmpfile will write the selected items path to the selection path when pressing E and exit fm
    • fm --enable-logging=true start fm with logging enabled
    • fm --pretty-markdown=true render markdown using glamour to make it look nice
    • fm --theme=default set the theme of fm
    • fm --show-icons=false set whether to show icons or not
    • fm --syntax-theme=dracula sets the syntax theme to render code with

    Local Development

    Follow the instructions below to get setup for local development

    1. Clone the repo
    git clone https://github.com/mistakenelf/fm
    
    1. Run
    make
    
    1. Build a binary
    make build