跳到正文
发现
桌面应用开发者工具

Winc:轻量快速的 Rust 桌面编辑器

用 Rust 和自研渲染引擎打造的桌面代码编辑器,启动快、占用低,内置 Git、终端与远程开发。

admin
发布于 2026-11-12 · 更新于 2026-11-25
浏览
9
访问
1
下载
0
Stars
1,371
版本
v0.1.970
平台
Windows、macOS、Linux
该作品还没有经过官方审核。访问演示、下载或复制命令前,请自行确认来源可信。

详细介绍

项目简介

Winc 是一款用 Rust 编写、自带渲染引擎的桌面编辑器,定位是「更轻、更快、更顺手」的编辑工具。它从冷启动到首帧约 95 ms,打开 100 MB 文件时占用约 35 MB 内存,打开 3.9 GB、4100 万行的文件约需 154 ms(官方在 macOS 上测得,实际结果随硬件与系统负载变化)。

主要功能

领域 能力
编辑 多光标、查找替换、分屏、原生输入法、超大文件平滑滚动,实验性 Vim 模式
语法 常见编程、标记、数据与配置语言高亮;无需语言服务器的轻量跳转定义与查找引用
格式化 通过 rustfmt、Prettier、Black、Ruff、gofmt 等外部工具整文件格式化
预览 Markdown(含数学公式与 Mermaid)、图片、SVG、PDF、LaTeX(macOS 与 Windows)、Word 文档与表格,可一键回到源码
Git 并排 diff 与词级高亮、单标签查看全部未提交改动、按 hunk 暂存、提交选中行、push、提交图与 blame
项目 文件树、快速打开、遵循 .gitignore 的项目搜索,可放在侧边栏或对话框,结果支持列表与树
终端 内置终端,支持分屏与标签组,自动加载项目 Python 环境
远程 实验性 SSH 远程:在 Linux 主机上编辑、搜索、格式化、使用 Git 与终端;Windows 上可打开 WSL 发行版中的文件夹
界面 16 套内置明暗主题,完整英文与简体中文界面
模块 Git、终端、SSH 远程可分别关闭;首次启动的起始页可配置外观、主题、语言与模块

此外,图片、SVG 与 PDF 预览支持以 Ctrl(macOS 为 ⌘)配合滚轮、捏合或 +/-/0 缩放,拖动平移,双击适配窗口。触摸屏上可点按、双击选词、滑动滚动、拖动滚动条与分隔条,长按 500 ms 打开上下文菜单。

安装与使用

可从 winc.si 下载,各版本也发布在 GitHub Releases。

平台要求:

  • macOS 11 或更高,Apple silicon 或 Intel,磁盘映像安装
  • Linux x86_64 或 ARM64,glibc 2.28 或更高,X11 或 Wayland,提供 AppImage、deb、rpm 与 Arch 仓库
  • Windows 10 1809 或更高,x86_64,提供 NSIS、MSI、便携 ZIP、winget 与 Scoop

Windows 上可通过 winget 或 Scoop 安装:

winget install DEEIX-AI.Winc
scoop bucket add extras; scoop install extras/winc

Arch Linux 及 CachyOS、Omarchy 等衍生版(x86_64)可直接从官方仓库安装:

sudo pacman -S winc

命令行用法示例:

winc .                  # 打开当前文件夹
winc file.rs:12:5       # 打开文件并定位到行列
winc --wait file        # 等待标签关闭,可用作 Git 编辑器
cargo build 2>&1 | winc -   # 读取标准输入

Windows 安装包、winget、Scoop 以及 deb、rpm、Arch 包会把 winc 加入 PATH,便携 ZIP 不会。macOS 上可在菜单栏选择 Winc → Install winc Command…,或在命令面板运行 Shell Command: Install winc Command。

从源码构建需要 Rust 1.99.1,rust-toolchain.toml 会自动选择工具链:

cargo run --release                 # 构建并运行
cargo run --release -- <path>       # 打开文件或文件夹

注意事项

  • Winc 主要在 macOS 上开发和测试。
  • 便携 ZIP 会把设置与状态保存在 winc.exe 同级的 data 文件夹;没有该文件夹时保存在用户配置目录。
  • macOS 上应用由系统启动,不继承 shell 环境;需要时用 winc --new-instance。
  • SSH 远程与 Vim 模式目前为实验性功能。
  • 项目基于 Apache License 2.0 开源。

本作品整理自 GitHub 开源项目 DEEIX-AI/Winc,原作者 @DEEIX-AI,许可证 Apache-2.0。中文介绍由 AI 根据项目 README 整理,以原仓库为准。

更新记录

  1. v0.1.970当前版本

    新增文件内查找对话框,可移至底部面板作为搜索标签;搜索结果按文件夹树状展示;单标签查看全部未提交改动;暂存视图分组显示暂存与未暂存差异并支持回滚;默认折叠未改动区域;终端支持分屏与标签组;支持从 .http 文件发送请求;可拖拽移动或复制选中文本;Ctrl+Tab 按最近使用切换标签;新增平滑光标动画与快捷键冲突设置。

  2. v0.1.857

    ### ✨ Feature - Split the editor into panes: split right or down to any depth, drag a tab or files onto a pane, and open one file in several panes, with "Split Right", "Split Down" and "Join All Splits" (#238) - Add a hex view: "Open as Hex" shows any file read-only, with selection, copying as hex or text, and "Go to Offset…" - Ask before closing a window or quitting, with the new `editor.confirmClose` setting (#208) - Retry a save the system refuses with "Retry as Administrator…", through UAC, the macOS authorization dialog or `pkexec` (#298) - Add IntelliJ IDEA and VS Code keymaps (`keyboard.keymap`): pick one on first launch or in Settings › Shortcuts, or import shortcuts from either editor installed on this computer, and the IntelliJ IDEA keymap opens quick open with `Shift` pressed twice - Edit shortcuts in Settings › Shortcuts: change, add, remove or reset a command's keys, find a command by pressing its keys, and see conflicts before saving - Add Markdown writing tools:

  3. v0.1.789

    ### ✨ Feature - Add extra folders to a window: each shows as its own row in the file tree, and quick open, global search and Git cover them too; name a set of folders as a group and reopen it from the recent list (#69) - Ask whether to add or open a folder dropped on a window that already has one open, with "Don't ask again" kept in the new `dropFolder` setting - Add a read-only switch for one tab or the whole window, from a lock in the status bar, the tab menu and the command palette, restored with the folder (#173) - Add vertical terminal tabs, and offer to load a project's `.venv` or `venv` when a terminal opens, asking once per environment (#158) - Add terminal tab shortcuts, `Ctrl+Shift+]` / `[` and `Ctrl+Shift+1…9` (`⌘⇧]` / `[` and `⌃1…9` on macOS), and pass keys to programs running in the terminal, with the new `terminal.applicationPriority` setting (#190, #232) - Hide or show the terminal panel in one press with `⌘J` / `Ctrl+J` wherever the focus is (#233) - Add termin

评论