Skip to content
leemyswPublic

About

Fast, native desktop source code reader in Go (no Electron) with IntelliJ IDEA keymap, LSP, multi-repo Git, Markdown/math preview & AI terminal.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Revtrail icon

Revtrail

Read the code. Follow the idea.

A fast, native desktop source code reader and lightweight IDE written in Go with MyGo — built around IntelliJ IDEA's keymap, LSP code intelligence, full Git tooling, rich previews, and an AI-ready terminal. Zero Electron.

English · 简体中文

Latest Release Release Build License Platforms Go Version

Download · Features · Shortcuts · Changelog · Development


Revtrail desktop interface showing project tree, Go editor with LSP diagnostics, and live Markdown preview

Why Revtrail?

  • Native speed, low memory — Rendered natively in Go without Electron or Chromium overhead; background and minimized windows on macOS release their drawing memory automatically.
  • IntelliJ IDEA muscle memory — Behavior, command names, GoLand New UI aesthetics, and macOS shortcuts follow IntelliJ IDEA, without waiting on heavy project indexing.
  • Everything for code reading & review in one window — Project tree, split tabs, ripgrep search, LSP navigation & refactoring, multi-repo Git log & three-way merge, GitHub-flavored Markdown with math, hex viewer, and an integrated terminal wired for AI coding agents.

Install

Download the latest installer from GitHub Releases:

Platform Architectures Package
macOS Apple Silicon (arm64), Intel (amd64) .dmg / .tar.gz
Windows x64, arm64 Setup .exe / .tar.gz
Linux x64, arm64 .deb / .tar.gz
  • Release builds include automatic delta self-updates.
  • You can install the revtrail shell command from inside the app to open folders and files from your terminal.
  • Signing note: macOS builds are not notarized and Windows installers are unsigned, so Gatekeeper or SmartScreen may show a warning on first launch.

Features

Workspace & Navigation

  • One window per folder — Reopens your previous tabs, split editors, and workspace state where you left off.
  • Project tree — IntelliJ-style file operations, colored file-type icons, and Finder-friendly copy shortcuts.
  • Instant navigation — Search Everywhere (Double Shift), Go to File, Go to Symbol, File Structure (Cmd+F12), Recent Files, Recent Locations, Last Edit Location, Bookmarks, Back/Forward history, and Find Action (Cmd+Shift+A).
  • Fast search — In-file find and workspace-wide search powered by ripgrep.

Code Intelligence & Refactoring (LSP)

Revtrail connects to standard Language Server Protocol servers — using tools on your PATH or installing managed copies from Settings:

Language Language Server
Go gopls (managed install supported)
TypeScript / JavaScript tsrs (managed install supported)
Python ty (managed install supported)
C / C++ / Objective-C clangd
CMake cmake-language-server
  • Navigation & inspection — Go to Definition, Go to Implementation(s), Go to Type Declaration, Find Usages, Call Hierarchy / Callers, Quick Definition (Cmd+Y), Parameter Info (Cmd+P), hover documentation, and live diagnostics.
  • Refactorings — Rename, Refactor This, Extract Variable / Method, Inline, Show Context Actions, Optimize Imports, and Reformat Code (where offered by the language server).

Git & Code Review

  • Multi-repository workspaces — Handles folders containing multiple Git repositories in one window, tracking the active file's repository automatically.
  • Commit & review — File- and hunk-level staging, inline diff toggling, Annotate with Git Blame, File History, Compare with Branch, and a dedicated three-way merge conflict editor.
  • Full Git workflow — IntelliJ-style Git Log with branch graph and text/branch filters, branch management, Smart Checkout, interactive rebase, stash, worktrees, remotes, clone, fetch, push, and pull.
  • AI commit messages — Optional commit message generation using any OpenAI-compatible API configured in Settings.

Previews & Markdown Writing

  • GitHub-flavored Markdown — Synced side-by-side scrolling, interactive task checkboxes, clickable workspace code references (file:line, file#Lline, file.md#heading), link context menus, pure-Go TeX & Typst math rendering, File Structure heading outline, status-bar word & CJK count, and source-mode writing helpers (list/quote continuation, Tab indent/outdent, delimiter selection wrapping, and smart URL paste).
  • Multi-format previews — SVG preview, HTML pages in a web view, image viewer, and a Hex viewer for inspecting any binary file.
  • Instant toggle — Press Cmd+I to switch a Markdown, SVG, or HTML file between source text and preview, just like Typora.

Terminal, Tasks & AI Coding Agents

  • Integrated terminal — Tabs, split panes, configurable scroll speed, unfocused pane dimming, and bell/waiting notifications.
  • AI coding agent integration — Quick-launch buttons for Claude Code, Codex CLI, and GitHub Copilot CLI, plus live editor selection sharing with Claude Code and Codex.
  • Go tasks — Built-in go build and go test task runner with completion/failure notifications.

Native Look & Localization

  • GoLand New UI aesthetics — Light and Dark themes respecting system accent color, contrast, and font size.
  • Bilingual UI — Built-in English and Simplified Chinese (简体中文) interfaces.

Shortcuts

Every command is searchable via Find Action (Cmd+Shift+A), and Settings lists the complete keymap.

Shortcut (macOS) Action
Double Shift Search Everywhere
Cmd+Shift+A Find Action
Cmd+Shift+O / Cmd+P Go to File (Cmd+P shows Parameter Info inside LSP files)
Cmd+F12 File Structure (symbols & Markdown headings)
Cmd+E / Cmd+Shift+E Recent Files / Recent Locations
Cmd+Shift+Backspace Last Edit Location
F3 / Cmd+F3 Toggle Bookmark / Show Bookmarks
Cmd+Y Quick Definition
Alt+Cmd+B / Ctrl+Shift+B Go to Implementation(s) / Type Declaration
Cmd+I Toggle Preview / Source (Markdown, SVG, HTML)
Alt+Cmd+C / Cmd+C Copy Pathname / Copy Files in Project View
Intentional differences from IntelliJ IDEA
  • Menu bar items show no shortcuts, so OS menu shortcuts do not steal keys from the editor or terminal.
  • Git tool window + opens the Git log in an editor tab.
  • Show My Branches counts a branch as yours when you authored its latest commit.
  • Merge… and Rebase… prompt for a branch name directly rather than showing IntelliJ's full dialog options.
  • Git menu omits Shelve, GitHub, and VCS Operations items; its Patch submenu copies a patch to the clipboard instead of saving a file.
  • Extra shortcuts: Cmd+I toggles preview/source mode; in the project tree, Alt+Cmd+C copies paths like Finder's Copy as Pathname (alongside IntelliJ's Shift+Cmd+C), and Cmd+C copies the actual files for Finder to paste.
  • Cmd+P triggers Parameter Info in files backed by a language server and Go to File elsewhere.
  • Bookmarks keep their line numbers rather than shifting with edits above them.
  • LSP refactorings: Rename asks for the new name in a dialog rather than inline (without preview), and Reformat Code formats the entire file.

Development

Requires Go 1.27.3 or later (git, ripgrep, and gopls are required for full verification).

go tool mygo dev        # Run with live reload
make app-run            # macOS: build and launch Revtrail.app
go tool mygo build      # Production build into build/
./scripts/verify.sh     # Pre-commit gate: gofmt, go test, mygo vet
REVTRAIL_PPROF=127.0.0.1:6060 <app binary>   # Enable pprof on loopback
  • See AGENTS.md for architecture, dependency rules, and testing guidelines.
  • See CHANGELOG.md for release history (English & Simplified Chinese).
  • Releasing: condense Unreleased in CHANGELOG.md into ## [X.Y.Z] - YYYY-MM-DD with ### English and ### 简体中文 sections, bump "version" in mygo.json, verify with .github/release-notes.sh vX.Y.Z, and push a vX.Y.Z tag — the release workflow builds, signs, and publishes all platform artifacts automatically.

License

Licensed under the Apache License 2.0.

About

Fast, native desktop source code reader in Go (no Electron) with IntelliJ IDEA keymap, LSP, multi-repo Git, Markdown/math preview & AI terminal.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages