文章摘要
Ferrite是一款用Rust和egui开发的轻量级文本编辑器,支持Markdown、JSON、YAML和TOML文件,提供快速响应和原生体验。
文章总结
GitHub项目:Ferrite - 轻量级文本编辑器
项目简介
Ferrite是一款基于Rust和egui框架开发的快速轻量级文本编辑器,专为Markdown、JSON、YAML和TOML文件优化设计。项目采用MIT许可证,目前获得209颗星标和5个分支。
核心特性
编辑功能
- 支持Markdown实时预览和WYSIWYG编辑
- 提供JSON/YAML/TOML树状视图编辑器
- 包含正则表达式搜索替换、撤销重做功能
- 支持40+种语言的语法高亮
视图模式
- 分屏视图:可调整比例的源码/预览双栏布局
- Zen模式:专注写作的居中排版
- 支持双向滚动同步
特色功能
- MermaidJS图表渲染(支持11种图表类型)
- 工作区模式:含文件树和Git状态显示
- 主题切换:深浅色主题即时转换
- 导出功能:支持HTML导出和复制
技术架构
| 组件 | 技术栈 | |--------------|---------------------| | 开发语言 | Rust 1.70+ | | GUI框架 | egui 0.28 | | Markdown解析 | comrak 0.22 | | 语法高亮 | syntect 5.1 |
安装方式
预编译版本
- Windows: ferrite-windows-x64.zip
- Linux: .deb包或tar.gz压缩包
- macOS: ferrite-macos-x64.tar.gz
源码编译
需要安装Rust 1.70+及平台相关依赖:
shell
git clone https://github.com/OlaProeis/Ferrite.git
cargo build --release
使用说明
快捷键示例:
- Ctrl+P: 快速文件切换
- F11: 全屏切换
- Ctrl+,: 打开设置
配置存储在平台特定路径:
- Windows: %APPDATA%\ferrite\
- Linux: ~/.config/ferrite/
项目状态
当前主要针对Windows平台开发,Linux/macOS兼容性待完善。详细开发路线参见ROADMAP.md文件。
(注:已过滤GitHub页面导航菜单、用户登录状态提示等非核心内容,保留技术参数和功能说明)
评论总结
以下是评论内容的总结:
功能与技术实现
- 关注Mermaid图表渲染的实现方式(Rust还是JS解释器)
"Is mermaid rendering implemented in Rust, or are you running mermaid.js in a JS interpreter somewhere?"
"Nice to see native markdown rendering rather than relying on spawning chromium" - 对egui框架的使用体验感兴趣
"How did you find working with egui?"
"I love the new era of graphical applications in Rust."
- 关注Mermaid图表渲染的实现方式(Rust还是JS解释器)
与竞品对比
- 被视为Obsidian的潜在替代品,但功能尚不完善
"seems like a promising alternative to obsidian, but missing wikilinks"
"Hope this project develops into usable state soon" - 与VS Code插件的差异化优势被质疑
"Whats the advantage of using Ferrite versus VS Code with a Mermaid extension?"
- 被视为Obsidian的潜在替代品,但功能尚不完善
功能建议
- 呼吁增加Typst支持、Obsidian式插件系统
"Consider adding support for Typst"
"Any interest in a plugin system similar to Obsidian?" - 需要完善WYSIWYG体验和基础功能
"not WYSIWYG (like Obsidian)"
"I'd love to see real alternatives focused on foundations"
- 呼吁增加Typst支持、Obsidian式插件系统
用户体验问题
- 存在启动异常和显示问题
"spawns a terminal on startup on Mac"
"Will need a magnifying glass to see the text on the screenshots" - 性能问题被提及
"Made the fan in my Windows 11 laptop spin up"
- 存在启动异常和显示问题
市场机会
- 认为Markdown工具市场存在机会
"This feels like a ripe space, especially with LLMs..."
"I happily paid money for Typora..."
- 认为Markdown工具市场存在机会
文档与透明度
- 对.gitignore内容和项目目标存疑
"Why did you remove AI agent configurations from the repo?"
"It would be interesting to know more about the end-goal"
- 对.gitignore内容和项目目标存疑