文件图标依赖 nerd font,未安装会显示异常;浅色/深色终端需设置对应主题参数,否则语法高亮配色可能不对;打开文件依赖 EDITOR 环境变量,未设置时无法调用编辑器。
curl -sfL https://raw.githubusercontent.com/mistakenelf/fm/main/install.sh | sh
go install github.com/mistakenelf/fm@latest 硬件要求按 README 说明
README 未说明,仅需可运行终端;显示文件图标需安装 nerd font。
终端里的文件管理器,用键盘和鼠标整理目录、预览代码与文档
用 Go 写的终端文件管理器,基于 Bubble Tea 构建 TUI 界面,让你不离开命令行就能浏览、操作文件。
核心能力
- 用 Chroma 做源码语法高亮,主题可切换
- 用 Glamour 渲染 Markdown,可开关
- 在终端内以字符形式显示 PNG、JPG、JPEG 图片
- 支持读取 PDF 文件内容
- 布局随终端窗口大小自动调整,支持鼠标操作
容易踩的坑
内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README
- v1.2.0最新正式版2025-12-23 · 2025-12-23 14:40 UTC
What's Changed
- Fix crash on empty directories, fix directory listing logic, fix in ReadMe by @lazysegtree in https://github.com/mistakenelf/fm/pull/117
- Update README.md with correct image shield link by @lazysegtree in https://github.com/mistakenelf/fm/pull/119
New Contributors
- @lazysegtree made their first contribution in https://github.com/mistakenelf/fm/pull/117
Full Changelog: https://github.com/mistakenelf/fm/compare/v1.1.0...v1.2.0
- 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
- v1.0.02024-04-06 · 2024-04-06 18:09 UTC
查看更新说明
What's Changed
- Update README.md by @hankertrix in https://github.com/mistakenelf/fm/pull/106
- Feature/reborn by @mistakenelf in https://github.com/mistakenelf/fm/pull/113
New Contributors
- @hankertrix made their first contribution in https://github.com/mistakenelf/fm/pull/106
Full Changelog: https://github.com/mistakenelf/fm/compare/v0.16.0...v1.0.0
- 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
- v0.15.102022-09-01 · 2022-09-01 20:49 UTC
查看更新说明
Changelog
- 9055413 v0.15.10
- 3d0c404 fix: use correct name
用户点评
登录用户的真实使用记录,可按版本和硬件筛选共 0 条
还没有人点评。第一个说出真实体验的人最有价值。
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
fmwill start fm in the current directoryfm updatewill update fm to the latest versionfm --start-dir=/some/start/dirwill start fm in the specified directoryfm --selection-path=/tmp/tmpfilewill write the selected items path to the selection path when pressing E and exit fmfm --enable-logging=truestart fm with logging enabledfm --pretty-markdown=truerender markdown using glamour to make it look nicefm --theme=defaultset the theme of fmfm --show-icons=falseset whether to show icons or notfm --syntax-theme=draculasets the syntax theme to render code with
Local Development
Follow the instructions below to get setup for local development
- Clone the repo
git clone https://github.com/mistakenelf/fm
- Run
make
- Build a binary
make build