[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110867":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":33,"discoverSource":34},110867,"mojian","ox0pine\u002Fmojian","ox0pine","A quiet text editor for plain files: native tabs, split panes, terminals, Git and SSH projects. Built with MyGo for macOS, Linux and Windows.","https:\u002F\u002Fmojian.ox0pine.cn",null,"Go",81,2,1,0,3,19,44.83,"MIT License",false,"main",true,[24,25,26,27,28],"go","mygo","native-ui","terminal","text-editor","2026-11-23 15:08:36","2026-11-22 06:16:28","# Mojian · 墨间\n\n> Words on paper. The tool steps back.\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fawesomemygo.dev\u002Fapps\u002Fmojian\">\u003Cimg src=\"https:\u002F\u002Fawesomemygo.dev\u002Fbadge.svg\" alt=\"Listed on Awesome MyGo\" height=\"22\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian\u002Freleases\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fox0pine\u002Fmojian?style=flat&amp;labelColor=1F1B16&amp;color=D24A2B\" alt=\"Latest release\" width=\"104\" height=\"22\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian\u002Freleases\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Fox0pine\u002Fmojian\u002Ftotal?style=flat&amp;labelColor=1F1B16&amp;color=D24A2B\" alt=\"Total downloads\" width=\"110\" height=\"22\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fox0pine\u002Fmojian?style=flat&amp;labelColor=1F1B16&amp;color=1F1B16\" alt=\"MIT license\" width=\"86\" height=\"22\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nMojian is a native plain-text editor for ordinary folders. Edit files, preview images and PDFs, run persistent terminals, and inspect Git diffs in tiled workspaces. No database, account, webview, or cgo. Runs on macOS 13+, Linux, and Windows 10 1809+.\n\n[Download the latest release](https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian\u002Freleases) · [简体中文](README.zh-CN.md) · [Build from source](#build-from-source)\n\n![Mojian with an editor, a pane choosing a file, and two terminals in one tab](resources\u002Fscreenshot.png?v=6b38e5e)\n\n## Features\n\n- **Ordinary files and folders.** A project is a folder on disk. Nothing is imported, indexed, or synced, and edits stay in memory until you save.\n- **Tabs as workspaces.** Each tab contains a split tree of editors, image and PDF viewers, and terminals.\n- **Persistent terminals.** Shells run in a detached session server and reattach when Mojian opens again.\n- **Built-in Git diffs.** Inspect staged, unstaged, and untracked work without leaving the window.\n- **Remote projects over SSH.** Files, Git, and terminals run directly on the configured host on macOS and Linux.\n- **Native UI in one Go binary.** [MyGo](https:\u002F\u002Fmygo.egoist.dev) draws the interface with Metal on macOS, GTK 3 on Linux, and Direct3D 11 on Windows. No Electron or JavaScript build.\n\n## Installation\n\nDownload the latest build from [Releases](https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian\u002Freleases).\n\n### macOS\n\n| Architecture | Download |\n|---|---|\n| Apple Silicon | `mojian-\u003Cversion>-arm64.dmg` |\n| Intel | `mojian-\u003Cversion>-amd64.dmg` |\n\nOpen the disk image and drag Mojian into Applications. Release builds are ad-hoc signed rather than notarized. If macOS blocks the first launch, right-click Mojian in Finder and choose **Open**.\n\n### Linux\n\nMojian requires GTK 3 and a desktop session.\n\nInstall the Debian package:\n\n```sh\nsudo apt install .\u002Fmojian_\u003Cversion>_\u003Carch>.deb\n```\n\nFor a per-user installation without root, put `install.sh` and `mojian-\u003Cversion>-linux-\u003Carch>.tar.gz` in the same folder, then run:\n\n```sh\nsh install.sh\n```\n\n### Windows\n\nMojian requires Windows 10 1809 or later.\n\n| Architecture | Download |\n|---|---|\n| x64 | `mojian-setup-\u003Cversion>-amd64.exe` |\n| ARM64 | `mojian-setup-\u003Cversion>-arm64.exe` |\n\nThe installer installs for the current user, without administrator rights. Builds are unsigned for now, so SmartScreen may ask before running one. With updates enabled, the one-line install is:\n\n```powershell\nirm https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.ps1 | iex\n```\n\nWindows is supported as a local-only client: local files, Git, images, PDFs with Poppler, and local terminals work; SSH and remote projects are not available there yet.\n\n## Projects and files\n\nPress `Cmd+O` on macOS or `Ctrl+O` on Linux and Windows to open a folder. The project chip switches between recent projects; on macOS and Linux the server chip switches between Local and configured SSH hosts. Each project keeps its own tabs, panes, and recent files.\n\nFrom a terminal, pass the project folder or a file:\n\n```sh\nmojian .                        # the current folder\nmojian ~\u002Fgit\u002Fabc                # a project folder\nmojian ~\u002Fgit\u002Fabc\u002FREADME.md      # a file, with its folder as the project\n```\n\nThe file opens in the focused pane of the project's saved layout. The app bundle's binary is `Mojian.app\u002FContents\u002FMacOS\u002FMojian`: link it as `mojian` to use the name in these examples, and run `mojian --help` for the usage. On Windows, run the installed `Mojian.exe` directly, or add its folder to `PATH` to use `Mojian` in these examples.\n\nA launch from a terminal detaches at once: the prompt returns, and closing the terminal or pressing Ctrl+C no longer ends the window. A launch without a terminal, such as from Finder, stays in place, and errors from a detached window go to `app.log` in Mojian's data folder.\n\nTo run `mojian` from zsh or bash, **Settings › Advanced › Shell command** installs an alias in `~\u002F.zshrc` or the bash startup file; the same row updates or removes it.\n\nThe Open Folder picker lists folders reached through symbolic links, and its **Hidden folders** switch beside Cancel includes names that start with a dot.\n\nOn first launch, Mojian opens `~\u002FDocuments\u002FMojian` when no project is selected and leaves a welcome note if the folder is empty.\n\nThe Explorer shows the folder as it exists on disk:\n\n- Toggle it with `Cmd+B` \u002F `Ctrl+B`.\n- Filter the visible tree with its search field.\n- Search every project file with **Open File**, `Cmd+P` \u002F `Ctrl+P`.\n- Create files and folders directly in the tree.\n- Right-click to open, rename, duplicate, copy, cut, copy a path, reveal, or move an entry to trash.\n\nGenerated folders such as `.git`, `node_modules`, `dist`, and `build` stay hidden.\n\n## Tabs, panes, and terminals\n\nPress `Cmd+T` \u002F `Ctrl+Shift+T` to open a tab, as in Ghostty. Split the focused pane right or down with `Cmd+D` \u002F `Shift+Cmd+D` (`Ctrl+Shift+O` \u002F `Ctrl+Shift+E` on Linux); left and up have no default keys, and can be assigned in **Settings › Keyboard**. A new pane opens with an inline file search.\n\nDrag a pane by its header onto another pane's edge to move it. Use `Option+Cmd` \u002F `Ctrl+Alt` and the arrows to move focus, `Shift+Cmd+Enter` \u002F `Ctrl+Shift+Enter` to zoom the focused pane, `Cmd+W` to close a pane, and `Option+Cmd+W` \u002F `Ctrl+Alt+W` to close the tab.\n\nDouble-click a tab to rename it, double-click a pane header to zoom it, or right-click a tab for more actions.\n\nPress `Ctrl` and the backtick key (`⌃` + backtick on macOS) to toggle a terminal at the project root. Terminals are panes, so they can be split, moved, zoomed, and closed like any other pane. On macOS, Linux and Windows, quitting Mojian leaves their shells alive and reopening attaches them again.\n\nPress `Shift+Cmd+S` \u002F `Ctrl+Shift+S` on macOS or Linux to open an SSH terminal to a host from **Settings › Hosts**.\n\n## Writing and previewing\n\nCode keeps line numbers and prose wraps. Syntax highlighting covers Python, JavaScript, TypeScript, Go, Rust, C and C++, Swift, Kotlin, Ruby, JSON, YAML, TOML, SQL, HTML, CSS, Markdown, and more.\n\nMarkdown panes switch between source and preview from the pane header. **Settings › Editor** can render new `.md` files by default. Images, including SVG, open in a contained viewer. PDFs page through every page: drawn with Poppler's `pdftoppm` when it is installed, else with PDFKit on macOS.\n\nPress `Cmd+S` \u002F `Ctrl+S` to write every unsaved note atomically. Unsaved work is also written when the window closes.\n\n## Git, commands, and settings\n\n### Git\n\nPress `Ctrl+Shift+G` on both platforms to compare the working tree with `HEAD`. Statuses appear on the left and a two-gutter diff on the right, including staged, unstaged, and untracked work.\n\n### Command palette\n\nPress `Shift+Cmd+P` \u002F `Ctrl+Shift+P` to search commands, files, and tabs with fuzzy matching.\n\n### Settings\n\nPress `Cmd+,` \u002F `Ctrl+,` to open the separate Settings window. It includes General, Appearance, Editor, Terminal, Shell, Notifications, Keyboard, Hosts, Git, Advanced, and Updates.\n\nSearch finds preferences by name or keyword, and `Cmd+F` focuses the search field. Mojian follows the system appearance by default; **View › Appearance** overrides it, and the Appearance page's theme grid picks one of ten color themes (Petal, Mist, Meadow, Dusk, Tide, Apricot, Aurora, Dune, Paper, Plain) for the window, the editor and terminals.\n\n## Remote projects\n\n1. Add a host in **Settings › Hosts**.\n2. Choose **Set Up Server** on its row. Mojian uploads `mojian-server` and `libghostty-vt` to `~\u002F.local\u002Fshare\u002Fmojian` and checks that the server answers.\n3. Choose the host from the server chip and open a folder.\n\nSetup requires no root access, listening port, or system service.\n\nThe Explorer lists files on the host. Files are read when opened, and saves and file operations write straight back. Git also runs on the host. Once opened, a project stays loaded, so switching back restores its tabs and terminals without reading it again.\n\nEach project in the project chip, local or remote, has a trash button on its right. It removes that project from the list and unloads it if it is open, saving first when it is the open project: a local close switches to the next recent project, and a remote one goes back to the last local project. The host's connection is kept after **Set Up Server** and while any project on it is loaded, so its folder picker opens without connecting again; it is released when the last project on that host is removed, and at quit.\n\nThe remote server and its terminals stay alive when Mojian or the SSH connection disconnects. Each terminal remembers the server that owns it. Run `mojian-server -stop` to end a server explicitly.\n\n## Updates\n\nOpen **Settings › Updates** to check the latest signed GitHub release:\n\n- **Check for Updates** reports whether a newer version is available.\n- **Install Update** downloads it and verifies its signature.\n- **Restart to Update** applies a staged update and relaunches Mojian.\n\nSelf-updates require a writable installation, such as the macOS app bundle, the per-user Linux archive, or the Windows installer. A `.deb` installed in `\u002Fopt` is updated by its package manager instead.\n\n## Keyboard shortcuts\n\nThe labels in Mojian follow the platform. These are the default bindings; **Settings › Keyboard** can rebind, reset, or unbind them. The tab and pane defaults follow Ghostty: `⌘` for files, tabs and tools, `⌘⌥` for moving through panes, and `⌃` for the panels beside them.\n\n| Action | macOS | Linux |\n|---|---|---|\n| Open project | `⌘O` | `Ctrl+O` |\n| Open file | `⌘P` | `Ctrl+P` |\n| New file | `⌘N` | `Ctrl+N` |\n| New folder | `⇧⌘N` | `Ctrl+Shift+N` |\n| Rename selected entry | `F2` | `F2` |\n| Move selected entry to Trash | `⌘⌫` | `Ctrl+Backspace` |\n| Save | `⌘S` | `Ctrl+S` |\n| New tab | `⌘T` | `Ctrl+Shift+T` |\n| Close pane \u002F tab | `⌘W` \u002F `⌥⌘W` | `Ctrl+Shift+W` \u002F `Ctrl+Alt+W` |\n| Next \u002F previous tab | `⇧⌘]` \u002F `⇧⌘[` | `Ctrl+Tab` \u002F `Ctrl+Shift+Tab` |\n| Show tab 1-9 | `⌘1…⌘9` | `Alt+1…Alt+9` |\n| Split right \u002F down | `⌘D` \u002F `⇧⌘D` | `Ctrl+Shift+O` \u002F `Ctrl+Shift+E` |\n| Split left \u002F up | assign in Settings | assign in Settings |\n| Focus neighboring pane | `⌥⌘` + arrows | `Ctrl+Alt` + arrows |\n| Move focused pane | drag, or assign in Settings | drag, or assign in Settings |\n| Zoom pane | `⇧⌘↩` | `Ctrl+Shift+Enter` |\n| Toggle file tree | `⌘B` | `Ctrl+B` |\n| Toggle terminal | `⌃` + backtick | `Ctrl` + backtick |\n| SSH terminal | `⇧⌘S` | `Ctrl+Shift+S` |\n| Git diff page | `⌃⇧G` | `Ctrl+Shift+G` |\n| Command palette | `⇧⌘P` | `Ctrl+Shift+P` |\n| Settings | `⌘,` | `Ctrl+,` |\n\nTwo Ghostty keys stay with the editor: `⌘[` \u002F `⌘]` indent and outdent, and `⌘Enter` inserts a line below.\n\nOn Windows, `Cmd` bindings become `Ctrl`; **Settings › Keyboard** shows the active keys. Terminal shortcuts are available on macOS, Linux and Windows. SSH shortcuts are available on macOS and Linux only.\n\n## Build from source\n\nMojian requires Go 1.27.3 or later. MyGo is pinned as a Go tool in `go.mod`, so the first `go tool mygo` command downloads the exact version.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fox0pine\u002Fmojian.git\ncd mojian\n\ngo tool mygo dev        # live-reloading development app\ngo test .\u002F...           # unit and integration tests\ngo tool mygo vet .      # go vet plus MyGo's UI lifetime checks\n```\n\nUse `go tool mygo dev -web` to open the interface in a browser with files kept in memory.\n\n### Headless UI harness\n\n`cmd\u002Fharness` serves the real window and Settings views to an MCP client\nthrough [mygo-mcp](https:\u002F\u002Fgithub.com\u002Fauron-labs\u002Fmygo-mcp), so an agent can\ninspect, click, type into and screenshot the interface without a desktop\nwindow:\n\n```sh\ngo run .\u002Fcmd\u002Fharness                 # http:\u002F\u002F127.0.0.1:8080\u002Fmcp\ngo run .\u002Fcmd\u002Fharness -addr 127.0.0.1:8090\n```\n\nEach run seeds a disposable project in the temp directory, and the fixtures\nnever open native windows, start terminals or touch your projects and\nsettings. The endpoint has no authentication, so keep it on loopback.\n\n### Release builds\n\n```sh\ngo tool mygo build -platform darwin\u002Farm64,darwin\u002Famd64\ngo tool mygo build -platform linux\u002Famd64,linux\u002Farm64\ngo tool mygo build -platform windows\u002Famd64,windows\u002Farm64\n```\n\nBuild output lives under `build\u002F\u003Cos>-\u003Carch>\u002F`. macOS produces `.app` and `.dmg`; Linux produces `.tar.gz` and `.deb`; Windows produces the app and `mojian-setup-\u003Cversion>-\u003Carch>.exe`.\n\nAfter changing the session protocol or `cmd\u002Fmojian-server`, rebuild the embedded remote binaries:\n\n```sh\ngo generate .\u002Finternal\u002Fremotebin\n```\n\n### Publishing a release\n\nPush a `vX.Y.Z` tag to run [`.github\u002Fworkflows\u002Frelease.yml`](.github\u002Fworkflows\u002Frelease.yml). The workflow tests the tree, builds every platform, creates a draft release, uploads the installers and `SHA256SUMS`, and publishes only after every upload succeeds. See [`RELEASING.md`](RELEASING.md) for the full process.\n\nEach release contains:\n\n- macOS: `mojian-\u003Cversion>-arm64.dmg` and `mojian-\u003Cversion>-amd64.dmg`\n- Linux: `mojian-\u003Cversion>-linux-{amd64,arm64}.tar.gz`, matching `.deb` packages, and `install.sh`\n- Windows: `mojian-setup-\u003Cversion>-{amd64,arm64}.exe`, `install.ps1`, and `mojian-\u003Cversion>-windows-{amd64,arm64}.tar.gz`\n- Signed update archives (`*-darwin-*.tar.gz`, `*-linux-*.tar.gz`, `*-windows-*.tar.gz`) and `update-\u003Ctarget>.json` manifests\n- `SHA256SUMS`\n\n## Design\n\nMojian uses ink `#1F1B16`, paper `#FBF7EF`, and vermilion `#D24A2B`. Almost everything is ink on paper; only the cursor keeps the vermilion, the one voice the page raises.\n\n## Credits\n\n- Action icons: [Lucide](https:\u002F\u002Flucide.dev), ISC\n- File icons: [Material Icon Theme](https:\u002F\u002Fgithub.com\u002FPKief\u002Fvscode-material-icon-theme), MIT\n- Interface font: [JetBrains Mono](https:\u002F\u002Fwww.jetbrains.com\u002Flp\u002Fmono\u002F), OFL\n- Wordmark: Literata, SIL OFL\n- Terminals: libghostty-vt and [creack\u002Fpty](https:\u002F\u002Fgithub.com\u002Fcreack\u002Fpty), MIT\n- Window and interaction references: [GoRex](https:\u002F\u002Fgithub.com\u002Fegoist\u002Fgorex) and [Kero](https:\u002F\u002Fkero.sh)\n- Native UI: [MyGo](https:\u002F\u002Fmygo.egoist.dev)\n\n## License\n\nMIT. See [`LICENSE`](LICENSE).\n","Mojian 是一款面向普通文件夹的本地化纯文本编辑器，专为轻量、专注的日常编码与文档工作设计。核心功能包括原生标签页工作区、可分屏的编辑器与终端、内置 Git 差异查看、SSH 远程项目支持，以及跨平台（macOS\u002FLinux\u002FWindows）原生 UI 渲染；所有功能均通过单个 Go 二进制实现，无 WebView、无数据库、无账户系统。适用于开发者处理中小型代码项目、技术文档、笔记及需要本地化终端与版本控制集成的轻量开发场景。","2026-11-24 04:39:50","CREATED_QUERY"]