{"id":47115258,"url":"https://github.com/batonogov/pine","last_synced_at":"2026-04-01T23:50:56.639Z","repository":{"id":343300529,"uuid":"1177018312","full_name":"batonogov/pine","owner":"batonogov","description":"A code editor that belongs on your Mac. Native SwiftUI + AppKit, zero Electron.","archived":false,"fork":false,"pushed_at":"2026-03-30T09:49:34.000Z","size":18581,"stargazers_count":9,"open_issues_count":23,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-30T10:03:37.599Z","etag":null,"topics":["appkit","code-editor","liquid-glass","macos","macos-app","native","swift","swiftui","text-editor"],"latest_commit_sha":null,"homepage":"https://batonogov.github.io/pine","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/batonogov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-09T16:00:01.000Z","updated_at":"2026-03-30T08:56:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"3967636c-12b9-462f-b43d-1f2f2b5ca9cf","html_url":"https://github.com/batonogov/pine","commit_stats":null,"previous_names":["batonogov/pine"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/batonogov/pine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batonogov%2Fpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batonogov%2Fpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batonogov%2Fpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batonogov%2Fpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batonogov","download_url":"https://codeload.github.com/batonogov/pine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batonogov%2Fpine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appkit","code-editor","liquid-glass","macos","macos-app","native","swift","swiftui","text-editor"],"created_at":"2026-03-12T18:52:30.478Z","updated_at":"2026-04-01T23:50:56.630Z","avatar_url":"https://github.com/batonogov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pine\n\n[![CI](https://github.com/batonogov/pine/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/batonogov/pine/actions/workflows/ci.yml)\n[![Release](https://img.shields.io/github/v/release/batonogov/pine)](https://github.com/batonogov/pine/releases/latest)\n[![Homebrew Cask](https://img.shields.io/badge/homebrew-pine--editor-orange)](https://github.com/batonogov/homebrew-tap)\n[![License: MIT](https://img.shields.io/github/license/batonogov/pine)](https://github.com/batonogov/pine/blob/main/LICENSE)\n[![macOS](https://img.shields.io/badge/macOS-26%2B-blue)](https://github.com/batonogov/pine)\n\n\u003e A minimal native code editor for macOS.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/screenshot-editor.png\" width=\"800\" alt=\"Pine Editor — syntax highlighting, minimap, and Liquid Glass UI\"\u003e\n\u003c/p\u003e\n\nPine is a code editor for developers who want a fast, native Mac app without the overhead of Electron. Built with SwiftUI and AppKit, designed for macOS 26 Liquid Glass. Opens instantly, stays out of your way.\n\n## Features\n\n- **Native macOS** — SwiftUI + AppKit, Liquid Glass UI, system text handling. No browser engine, no runtime\n- **Syntax highlighting** — 37 languages including Swift, TypeScript, Python, Go, Rust, Java, Kotlin, Ruby, C/C++, and more\n- **Built-in terminal** — Full VT100/xterm emulator via [SwiftTerm](https://github.com/migueldeicaza/SwiftTerm). Multiple tabs, colors, TUI apps, oh-my-zsh\n- **Git integration** — File status in sidebar, diff markers in gutter, blame view, branch switching from title bar or search sheet\n- **Symbol navigation** — Jump to functions and classes with Cmd+R\n- **Code folding** — Fold/unfold blocks from the gutter or via menu\n- **Minimap** — Scaled code overview with syntax colors and diff markers. Click to navigate\n- **Find \u0026 replace** — In-file and project-wide search with .gitignore support\n- **Quick Open** — Fuzzy file search with Cmd+P\n- **Markdown preview** — Source, rendered, or side-by-side via [swift-markdown](https://github.com/swiftlang/swift-markdown)\n- **Status bar** — Cursor position, line endings, indentation style, file size\n- **Bracket matching** — Highlights matching pairs while skipping strings and comments\n- **File management** — Reveal in Finder, duplicate files with Finder-like naming\n- **Large file handling** — Progressive loading for 10 MB+ files, optional highlighting disable for 1 MB+\n- **Strip trailing whitespace** — Automatically cleans up on save\n- **Auto-save \u0026 session restore** — Picks up where you left off\n- **Auto-updates** — Built-in via [Sparkle](https://sparkle-project.org)\n- **Localized** — English, German, Spanish, French, Japanese, Korean, Portuguese (BR), Russian, Simplified Chinese\n\n\u003cdetails\u003e\n\u003csummary\u003eScreenshots\u003c/summary\u003e\n\n### Welcome Screen\n\u003cimg src=\"assets/screenshot-welcome.png\" width=\"600\" alt=\"Pine Welcome Screen\"\u003e\n\n### Built-in Terminal\n\u003cimg src=\"assets/screenshot-terminal.png\" width=\"800\" alt=\"Pine Terminal\"\u003e\n\n### Markdown Preview\n\u003cimg src=\"assets/screenshot-markdown.png\" width=\"800\" alt=\"Pine Markdown Preview\"\u003e\n\n\u003c/details\u003e\n\n## Install\n\n**Homebrew** (recommended):\n\n```bash\nbrew tap batonogov/tap\nbrew install --cask pine-editor\n```\n\n**Direct download:** grab the latest `.dmg` from [Releases](https://github.com/batonogov/pine/releases/latest).\n\n## Build from Source\n\nRequires macOS 26+ and Xcode 26+.\n\n```bash\ngit clone https://github.com/batonogov/pine.git\ncd pine\nsudo xcode-select -s /Applications/Xcode.app/Contents/Developer\nxcodebuild -project Pine.xcodeproj -scheme Pine build\n```\n\nDependencies resolve automatically via Swift Package Manager on first build.\n\n## Keyboard Shortcuts\n\n| Shortcut | Action |\n| --- | --- |\n| `Cmd+P` | Quick Open |\n| `Cmd+Shift+O` | Open folder |\n| `Cmd+S` | Save |\n| `Cmd+Option+S` | Save All |\n| `Cmd+Shift+S` | Save As |\n| `Cmd+Shift+D` | Duplicate file |\n| `Cmd+W` | Close tab |\n| `Cmd+F` | Find |\n| `Cmd+Option+F` | Find \u0026 Replace |\n| `Cmd+G` / `Cmd+Shift+G` | Find Next / Previous |\n| `Cmd+E` | Use Selection for Find |\n| `Cmd+L` | Go to Line |\n| `Cmd+R` | Go to Symbol |\n| `Cmd+/` | Toggle comment |\n| `Cmd+Shift+B` | Switch branch |\n| `Cmd+Shift+M` | Toggle minimap |\n| `Cmd+Shift+P` | Markdown preview |\n| `Ctrl+Option+Down` / `Up` | Next / Previous change |\n| `` Cmd+` `` | Toggle terminal |\n| `Cmd+T` | New terminal tab |\n| `Cmd++` / `Cmd+-` | Zoom in / out |\n| `Cmd+0` | Reset font size |\n\n## Architecture\n\nMVVM with SwiftUI views backed by AppKit via `NSViewRepresentable`. The editor core uses the native NSTextStorage/NSLayoutManager/NSTextContainer stack. Syntax highlighting runs asynchronously on a background queue with generation tokens to prevent stale results. Git operations run in parallel via GCD. Project-wide search uses Swift concurrency with sliding-window parallelism.\n\n## Contributing\n\nContributions are welcome. Please open an issue first to discuss what you'd like to change. See the [Issues](https://github.com/batonogov/pine/issues) page.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatonogov%2Fpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatonogov%2Fpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatonogov%2Fpine/lists"}