文章摘要
Fresh是一款现代化的终端文本编辑器,支持npm、Cargo等多种安装方式。它具有直观的UI菜单系统和命令面板,提供鼠标支持,便于从图形编辑器过渡。编辑器采用TypeScript插件系统,运行在安全的Deno沙箱环境中,兼具高性能和零延迟的编辑体验。
文章总结
《Fresh:新一代终端文本编辑器》
安装方式:
1. 推荐通过npm安装:npm install -g @fresh-editor/fresh-editor
2. 快速测试使用npx:npx @fresh-editor/fresh-editor
3. 源码编译(需Cargo):cargo install fresh-editor
4. 预编译版本可在GitHub Releases下载
核心特性:
• 极简设计:采用原生UI界面,配备完整菜单系统和强大的命令面板,支持鼠标操作,图形化编辑器用户可轻松过渡
• 现代扩展:基于TypeScript开发插件,在沙盒化的Deno环境中安全运行,既能使用现代JavaScript生态又确保稳定性
• 极致性能:实现近乎零延迟的编辑体验,可流畅处理数GB级别的大文件
• 完整功能集: - 文件管理:支持标签页、文件浏览器、自动恢复、Git文件查找 - 编辑功能:多光标、块选择、智能缩进、剪贴板操作 - 代码导航:跳转定义、引用查询、错误定位、书签管理 - 语言服务:支持LSP协议,提供自动补全、重命名等功能 - 生产力工具:集成Git日志、诊断面板、键盘宏等
项目源码托管于GitHub,开发者可自由获取。
评论总结
以下是评论内容的总结:
正面评价
对新编辑器的欢迎
- 多位用户表达了对新编辑器的喜爱和期待(评论1,7,16,19,21,22)。
- 引用:"love me a new text editor, here for this!"(评论1)
- 引用:"Installed it and out of the box this is the best new TUI editor I've tried, probably ever."(评论19)
用户体验和功能
- 用户称赞其直观的界面、多光标体验和命令面板(评论16,19,20)。
- 引用:"The multi-cursor experience is the smoothest I've seen in a terminal based editor."(评论20)
- 引用:"Great work on this! Very good performance but also a very good UX."(评论19)
性能表现
- 用户对其加载大文件的能力和整体性能表示满意(评论5,13,19)。
- 引用:"Efficiency: Uses a lazy-loading piece tree to avoid loading huge files into RAM."(评论5)
- 引用:"Great work overall — looking forward to seeing further development!"(评论13)
负面或质疑
安装和依赖问题
- 用户对基于Rust的工具推荐使用npm安装表示不满(评论2)。
- 引用:"I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm."(评论2)
AI生成代码的质疑
- 部分用户对编辑器是否由AI生成表示不信任(评论24)。
- 引用:"All AI generated, not something I can trust."(评论24)
体积和资源占用
- 用户对终端编辑器占用400MB内存表示不满(评论11)。
- 引用:"400mb executable for a terminal text editor? Modern developers have lost their mind."(评论11)
功能建议和问题反馈
功能改进建议
- 用户希望支持行号跳转和VS Code兼容的配置文件(评论3,15)。
- 引用:"Can you pass a line number, also?"(评论3)
- 引用:"Consider! 1000s of high-value, capable, tech-specific dev extensions out there..."(评论15)
具体问题反馈
- MacOS用户反馈键位映射和选择功能问题(评论6,8)。
- 引用:"Fresh seems to ignore the remapping."(评论6)
- 引用:"selection is broken on mac eg cntrl+shift+right switches terminal tabs."(评论8)
其他讨论
许可证选择
- 用户对选择GPL-2而非更宽松的许可证表示疑问(评论12,18)。
- 引用:"Interesting license choice, would why did you choose version 2 instead of 3?"(评论12)
与现有工具的比较
- 用户讨论与其他编辑器(如VS Code、Emacs)的差异和优势(评论13,17,22)。
- 引用:"I feel like sublime text got most of it right and every editor since then has been a reskin of the same."(评论17)