A native code editor for macOS, Linux and Windows 面向 macOS、Linux 与 Windows 的原生代码编辑器
A code editor
in one binary.
一个二进制
装下的代码编辑器。
One Go binary, a GPU-drawn window. No webview, no Node, no bundle. Open a folder here, or a folder on an SSH host. 一个 Go 二进制,一块 MyGo 用 GPU 直接画的窗口。没有 webview,没有 Node,没有 bundle。可以开本地文件夹,也可以开 SSH 主机上的文件夹。
01 — Features功能
What is in the window窗口里有什么
The workflow of a big editor, drawn by a small one. 大编辑器的用法,小编辑器的体量。
-
Native window原生窗口
MyGo draws the frame on the GPU. A real window, not a page pretending to be one. MyGo 在 GPU 上直接画窗口——是真的窗口,不是伪装成窗口的网页。
-
Terminal终端
Real PTY sessions with ANSI and Unicode, split into columns, or dragged into the editor area as an ordinary tab. 真正的 PTY 会话,ANSI 与 Unicode 都在;可以分栏,也能拖进编辑区当一个普通标签页。
-
Remote folders远程文件夹
The tree, search, Git and terminal run on the other side of one SSH connection. Nothing to install there. 文件树、搜索、Git 和终端都在对面跑,只走一条 SSH 连接,远端不用装任何东西。
-
Source control版本控制
Stage, amend, commit, diff a file, push: Go-Git for reads, the
gitbinary where it is faster. 暂存、amend、提交、单文件 diff、推送;读取走 Go-Git,更快的地方交给git二进制。 -
Language servers语言服务器
gopls, rust-analyzer, pyright, clangd and others start on their own, shared by every window on a folder. gopls、rust-analyzer、pyright、clangd 等会自己起来,同一个文件夹的窗口共用一份。
-
Editing编辑
37 languages with highlighting, folds, multi-caret, completions and find-and-replace; formatting is the language's own tool. 37 种语言的高亮、折叠、多光标、补全与查找替换;格式化交给语言自己的工具。
-
Markdown previewMarkdown 预览
Rendered natively, no webview. It follows every keystroke and scrolls with the editor. 原生渲染,不经 webview;每次按键都跟着更新,滚动与编辑器联动。
-
Plugins插件
A
plugin.jsonand a JavaScript file: commands, views, languages, themes, snippets and keybindings, behind a permission gate. 一个plugin.json加一个 JS 文件:命令、视图、语言、主题、片段、快捷键,外面套一层权限门。 -
A session that survives会话留得住
A launch puts back the windows it left, down to the carets — and the text of documents nobody saved. 下次启动把上次的窗口摆回去,连光标位置都在;没人保存的文本也回得来。
02 — Refusals取舍
What it refuses to do它不做什么
Every one of these is a feature that would have cost something the editor is not willing to pay. 下面每一条,都是一个会让编辑器付出它不愿付的代价的功能,所以没有做。
-
No webview不内嵌 webview
No Electron, no bundled Chromium. The interface is drawn, not rendered from HTML. 没有 Electron,没有 Chromium。界面是画出来的,不是 HTML 渲出来的。
-
No Node runtime不装 Node
Nothing to install and nothing to keep patched. Plugins run inside a Go host. 不用装,也不用跟着打补丁;插件跑在 Go 里的运行时上。
-
No agent on your server远端不放 agent
Remote work is the system's own
ssh, and its own commands over it. 远程就是系统的ssh,以及顺着它跑的系统命令。 -
No build step for plugins插件不用构建
Installing a plugin copies files. There is no toolchain to run. 装插件就是拷文件,不需要跑任何工具链。
03 — Screenshots截图
The same window, in daylight同一扇窗口,白天的样子
make preview), not composed in a design tool.
这帧是 qcode 自己的无头预览器画的(make preview),不是在设计工具里拼的。
04 — Download下载
Get qcode下载 qcode
Every build is the same source, packaged per platform. No cgo, so nothing needs a toolchain to run. 每个构建都出自同一份代码,按平台打包。没有 cgo,运行起来不需要任何工具链。
-
macOS
Universal — Apple silicon and Intel 通用包 —— Apple 芯片与 Intel
Download下载.dmg -
Linux
x86_64 and arm64 x86_64 与 arm64
Download下载.deb.rpm.tar.gz -
Windows
x64, with the terminal's DLL x64,带终端用的 DLL
Download下载.zip
The macOS bundle is signed ad hoc: on a Mac that did not build it, Gatekeeper asks once — right-click the app and choose Open. Linux packages install with dpkg -i or rpm -i; the tarball carries install.sh.
macOS 包是 ad hoc 签名的:在不是它构建的那台 Mac 上,Gatekeeper 会拦一次——右键点开 App、选「打开」即可。Linux 用 dpkg -i 或 rpm -i 装;tar 包里有 install.sh。
From the terminal从终端打开
$ qcode ~/code/myproject
$ qcode --ssh me@devbox:/srv/app