English | 简体中文
A fast, minimal code editor with an integrated terminal and Git, written in Rust.
Loog is a desktop editor for Windows, macOS and Linux built on lgui, a Rust GUI library that renders with Skia. It aims to stay small and responsive while covering the daily loop of editing, searching, running commands and working with Git, without leaving the window.
Note
Loog is in early development (version 0.1). Expect rough edges, and expect settings and behavior to change between releases.
- Editing — grapheme-aware text editing (CJK, combining marks, emoji), multiple cursors, rectangular selections, soft wrap, code folding, split panes, IME input and an optional Vim mode. Views of the same file share text and undo history while keeping their own selection and scroll position. Files up to 64 MiB open on a background worker; large files use plain text rendering.
- Languages — Tree-sitter syntax highlighting with embedded languages and syntax resources downloaded on demand. Language servers provide completion, hover documentation, signature help, definitions, references, rename, formatting, diagnostics and code actions. The Outline shows Markdown headings or symbols from language servers. Servers are installed manually from the language panel by default; automatic installation is optional.
- Encodings — UTF-8, UTF-16, GBK, GB18030, Big5, Shift_JIS and more, with automatic detection and a status-bar encoding selector. Saves preserve the selected encoding, BOM and LF/CRLF line endings. See Text file encodings.
- Markdown — live reading and side previews of unsaved buffers, shared with hover/completion/signature documentation; logical copy, outline, code, tables and bounded images. See Markdown reading.
- Sessions — restore file tabs, pane layout, source positions and terminal working directories after a restart. Extra cursors and folded regions are temporary; terminal sessions start new shells.
- Workspace search — search every folder with case, whole-word, regex and
include/exclude globs; respects
.gitignoreand searches unsaved buffers. - Integrated terminal — PowerShell, Command Prompt, Git Bash, bash, zsh,
fish or any custom shell, in tabs and splits that follow your working
directory across
cdand restarts. - Git — staging, commits, fetch/pull/push, branches, tags, stashes, history, single-file diffs and worktrees, refreshed in the background across every repository in the workspace.
- Customizable — light, dark and high-contrast themes, a Zed-style
keymap.jsonwith contexts and key sequences, per-project.loog/settings.json, interface scaling from 80% to 200% and Material file icons. Editor and terminal fonts have independent family, size, weight and line-height settings.
Download a package for your platform from the Releases page.
| Platform | Packages |
|---|---|
| Windows x64 | …-windows-x86_64-setup.exe (per-user installer, no admin rights) or …-portable.zip |
| macOS 11+ (Apple Silicon and Intel) | …-macos-universal.dmg or .zip |
| Linux x64 | .deb, .AppImage, or .tar.gz (run ./install.sh to install for the current user) |
Each release includes a SHA256SUMS file per platform.
- Windows: packages are not code-signed yet, so SmartScreen warns on first run. A Git runtime is included.
- macOS: until the app is notarized, Gatekeeper blocks the first launch.
Control-click Loog.app and choose Open, or run
xattr -dr com.apple.quarantine /Applications/Loog.app. Loog uses the systemgit. - Linux: requires glibc 2.39 or newer (for example Ubuntu 24.04, Fedora 40)
and an X11 or Wayland session. Loog uses the system
git.
Use loog . or loog path/to/file to open folders and files from a terminal.
The Windows installer offers to add loog to your PATH; Linux .deb and
install.sh installs provide the command. On macOS, link the bundled launcher
into a directory on your PATH, for example:
ln -s /Applications/Loog.app/Contents/Resources/bin/loog /usr/local/bin/loog
See Packaging for portable launchers and what each package installs, and Updates for automatic update support by installation type.
Loog builds with the Rust toolchain pinned in
rust-toolchain.toml (currently 1.97.1); rustup
installs it automatically. Install Node.js 20+ and the platform C/C++ SDK as
well; the shared scripts prepare CMake and Skia privately.
git clone https://github.com/lius-new/loog.git
cd loog
node scripts/build/cargo.mjs build --release --locked
node scripts/build/stage-resources.mjs target/release
node scripts/build/cargo.mjs run --release --lockedFor a development run, prepare resources with node scripts/build/stage-resources.mjs
before node scripts/build/cargo.mjs run --locked. It stages both syntax resources
and the language-server catalog beside the executable; Cargo alone does not copy them.
On Debian or Ubuntu, install the native libraries first:
sudo apt install build-essential \
libfreetype-dev libfontconfig-dev \
libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev \
libwayland-dev libxkbcommon-devPinned CMake and prebuilt Skia archives are downloaded and SHA-256 verified during the first build; no system CMake or manual Skia download is required. See Building Loog for offline builds, tests, CI and packaging.
- Editing — files, sessions, multiple cursors, folding, soft wrap and Vim
- Text file encodings — detection, switching and saving
- Language resources — syntax packages and downloads on demand
- Settings and key bindings — language servers, formatting, themes and shortcuts
- Markdown reading — reading mode and live previews
- Workspace search and Outline — find text and navigate file structure
- Terminal — shells, WSL and working directories
- Git — source control, diffs, history and worktrees
- Updates — checking, downloading and applying releases
- Building Loog — toolchains, tests, CI and packaging
For implementation details, see the architecture docs for language services, LSP and Markdown, plus remaining language-service work.
Bug reports and pull requests are welcome on GitHub. Start with CONTRIBUTING.md. Use Node.js 24 for contribution tooling. The first managed build, run, or test in a local clone sets up the commit hook and message template.
Every commit must contain exactly one Release Notes: section in its body.
Use English release-note bullets for user-facing changes and - N/A for
internal changes only; see Release notes for
accepted note types. Preserve the section when squashing or merging.
Before opening a pull request, run the same checks as CI:
cargo fmt --all -- --check
node scripts/build/cargo.mjs test --locked --workspace
node scripts/architecture/check.mjsand Clippy with the flags in ci.yml. The editing
core in crates/editor-core has no GUI
dependencies and is the easiest place to start.
Loog is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Loog shall be dual licensed as above, without any additional terms or conditions.
Loog includes third-party code (the vt100 parser, parts of Zed's keymap
design and, on Windows, Git); see THIRD_PARTY_NOTICES.md.
The Material Icon Theme icons carry their MIT license and attribution in
assets/icon-themes/material.
