xi-editor README

The project's README from github.com/xi-editor/xi-editor. As one markdown file: README.md.

Xi editor

Maintenance status: *The xi-editor project is currently discontinued. Although we will happily accept bug fixes, no new features are currently planned. You may be interested in the Lapce editor, which can be considered a spiritual successor to the xi-editor. — The Editors

Note: This repo contains only the editor core, which is not usable on its own. For editors based on it, check out the list in Frontends.

The xi-editor project is an attempt to build a high quality text editor, using modern software engineering techniques. It is initially built for macOS, using Cocoa for the user interface. There are also frontends for other operating systems available from third-party developers.

Goals include:

Learn more with the creator of Xi, Raph Levien, in this Recurse Center Localhost talk.

Screenshot:

xi-mac screenshot

Getting started

This repository is the core only. You'll also need a front-end, from the list below.

Building the core

Xi-editor targets 'recent stable Rust'. We recommend installing via rustup. The current minimum supported version is 1.40.

To build the xi-editor core from the root directory of this repo:

> cd rust
> cargo build

Frontends

Here are some front-ends in various stages of development:

The following are currently inactive, based on earlier versions of the front-end protocol, but perhaps could be revitalized:

There are notes (I wouldn’t call it documentation at this point) on the protocol at frontend.md. If you're working on a front-end, feel free to send a PR to add it to the above list.

Design decisions

Here are some of the design decisions, and motivation why they should contribute to the above goals:

Current status

This is still a project in its early stages. The Mac build has basic editing functionality (it was used to write this README), but looks very spare and is still missing essentials such as auto-indent. At the moment, it’s expected that its main community will be developers interested in hacking on a text editor.

Authors

The xi-editor project was started by Raph Levien but has since received contributions from a number of other people. See the AUTHORS file for details.

License

This project is licensed under the Apache 2 license.

Contributions

We gladly accept contributions via GitHub pull requests. Please see CONTRIBUTING.md for more details.

If you are interested in contributing but not sure where to start, there is an active Zulip channel at #xi-editor on https://xi.zulipchat.com. There is also a #xi channel on irc.mozilla.org. Finally, there is a subreddit at /r/xi_editor.

xi-editor (xi-editor/xi-editor)

Searching Database…

19.8K ·GitHub
这是什么?一个用现代软件工程方法打造高质量文本编辑器的项目:用 Rust 编写后端,目标是极致的性能、可靠性和易定制性。
那这是一个能直接安装的编辑器,还是只是编辑器的一部分?这个仓库里只有编辑器核心,单独无法使用——你需要配合一个前端一起安装,比如 xi-mac、xi-gtk、xi-term 或 xi-electron。
我怎么把它跑起来?用较新的稳定版 Rust(通过 rustup 安装,最低版本 1.40)在仓库根目录构建核心,然后从 README 列表中选一个前端——xi-mac 是官方的 macOS 前端。
如果我现在就想用,有什么坑?这个项目已经停止开发了:只接受修复 bug,不打算加新功能。Mac 版只能做基本的编辑,连自动缩进这类基本功能都还没有。
那它到底适合谁用?按 README 的说法,它的主要用户群体是想研究、改造文本编辑器的开发者,而不是想找一个精致日常编辑器的普通用户。
它能跑在哪些平台上?核心最初是为 macOS 开发的,用 Cocoa 界面;第三方前端增加了 Linux 上的 GTK、实验性的 Windows 前端(xi-win)、xi-term 和 kod 等终端方案,以及跨平台的 xi-electron。
用的什么许可证?Apache 2.0,可以自由使用、修改和分叉。
它为什么快?官方目标是每一次编辑操作都在 16 毫秒内完成提交和绘制,让你完全感觉不到等待。它用持久化 rope(绳索)数据结构,即使处理非常大的文件也能保持高效;自动保存这类工作在后台异步进行,界面永远不会卡住。
插件是怎么做的?它没有内置脚本语言:插件通过管道用简单的 JSON 消息和核心通信,所以可以用任何语言来写,还能接入版本控制、静态分析工具等。
有没有类似的项目还活着?有——README 里提到 Lapce 是 xi-editor 的精神续作,如果你想要一个延续类似理念的现代编辑器,可以看看它。
What are similar projects?vectorcraft, neomacs, helix, lime, neovide, zed, herdr-gpui, syntastic
Creator
xi-editor
Size
9.5 MB
Stars
19.8K
Updated
CommitAug 14
Age
10y
Commits · 90 Days