Show HN:Fresh – 一个用 Rust 构建的新终端编辑器
Show HN: Fresh – A new terminal editor built in Rust

原始链接: https://sinelaw.github.io/fresh/

## Fresh Editor:摘要 Fresh Editor 是一款快速、现代化的文本编辑器,兼顾易用性和强大功能。安装简单,可通过 npm、npx、Cargo 或预构建的二进制文件进行。 它优先考虑流畅的用户体验,提供原生 UI、完整菜单和命令面板,方便从传统图形编辑器过渡。Fresh 拥有**零延迟性能**,能够处理极大的文件(多吉字节)而不会减速。 主要功能包括全面的文件管理、强大的编辑工具(多光标、撤销/重做)、强大的搜索和替换,以及高级导航。它还支持语言服务器协议 (LSP) 以提供代码智能,并提供丰富的生产力功能,如键盘宏和诊断面板。 最后,Fresh 具有高度可扩展性,可以使用在安全、沙盒化的 Deno 环境中运行的 **TypeScript 插件**。

## Fresh:一款基于Rust的新终端编辑器 Fresh是一款新的、快速且资源高效的终端编辑器,使用Rust构建,旨在挑战此类工具通常相关的复杂性。其核心理念围绕着**易用性**——优先考虑标准键绑定和非模式界面——以及通过延迟加载大文件来实现**效率**(与Neovim、Emacs和VS Code相比,在2GB文件上的加载时间明显更快,内存使用量更低)。 一个关键特性是通过Deno使用TypeScript插件进行**扩展**。开发者在开发过程中大量使用了AI(Claude Code),专注于架构和用户体验,并进行了严格的测试。 Fresh是开源的(GPL-2),并寻求早期采用者提供反馈。可以通过`cargo install fresh-editor`、npm或直接二进制下载进行安装。讨论强调了使用npm以获得更广泛的可访问性与Rust社区对Cargo的偏好之间的权衡,以及未来与VSCode扩展兼容的潜力。 **链接:** * **网站:** [https://sinelaw.github.io/fresh/](https://sinelaw.github.io/fresh/) * **GitHub:** [https://github.com/sinelaw/fresh](https://github.com/sinelaw/fresh)
相关文章

原文

Installation Methods

Via npm (recommended):
npm install -g @fresh-editor/fresh-editor

Via npx (for a quick test):
npx @fresh-editor/fresh-editor

From source with Cargo:
cargo install fresh-editor

Pre-built binaries:
Download from GitHub Releases.

Source code available on GitHub.

Discovery & Ease of Use

Fresh is designed for discovery. It features native UIs, a full Menu system, and a powerful Command Palette. With full mouse support, transitioning from graphical editors is seamless.

Modern Extensibility

Extend Fresh easily using modern tools. Plugins are written in TypeScript and run securely in a sandboxed Deno environment, providing access to a modern JavaScript ecosystem without compromising stability.

Zero-Latency Performance

Fresh is engineered for speed. It delivers a near zero-latency experience, with text appearing instantly. The editor is designed to be light and fast, reliably opening and editing huge files up to multi-gigabyte sizes without slowdown.

Comprehensive Feature Set

File Management: open/save/new/close, file explorer, tabs, auto-revert, git file finder | Editing: undo/redo, multi-cursor, block selection, smart indent, comments, clipboard | Search & Replace: incremental search, find in selection, query replace, git grep | Navigation: go to line/bracket, word movement, position history, bookmarks, error navigation | Views & Layout: split panes, line numbers, line wrap, backgrounds, markdown preview | Language Server (LSP): go to definition, references, hover, code actions, rename, diagnostics, autocompletion | Productivity: command palette, menu bar, keyboard macros, git log, diagnostics panel | Plugins & Extensibility: TypeScript plugins, color highlighter, TODO highlighter, merge conflicts, path complete, keymaps

联系我们 contact @ memedata.com