# Power Editor — Lightning-Fast Large File Text Editor & Real-Time Markdown Preview

> **100% Free & Open Source (MIT License)**  
> Engineered with **Rust** and **Tauri 2.0**. Instant-open 100MB+ and multi-gigabyte logs with zero lag, and edit Markdown with synchronized dual-pane live preview.

- **Official Website**: https://powereditor.noedge.org
- **GitHub Repository**: https://github.com/RaiderWang/power-editor
- **License**: MIT Permissive License (Free for personal and commercial enterprise use)
- **Latest Version**: v0.3.2 (Released Nov 17, 2026)
- **Supported Platforms**: Windows 10/11 (x64), macOS 11+ (Apple Silicon & Intel), Linux x64 (AppImage & DEB)

---

## 1. Why Power Editor?

Most text editors and note-taking apps struggle — or outright crash — when opening multi-hundred-megabyte log files, database dumps, or source bundles. Heavyweight electron-based tools consume 500MB+ RAM merely to display a few notes.

Power Editor is purpose-built to solve both challenges:
1. **Big Data & Huge Logs**: Uses OS memory mapping (`memmap2`) and an immutable B-Tree Rope buffer (`ropey`) to stream files of any size without loading the entire content into contiguous RAM.
2. **Technical Writing & Note-Taking**: Built-in dual-pane Markdown editor with real-time synchronized preview (`Ctrl+Shift+V`), full GitHub Flavored Markdown (GFM) support, local image asset rendering, and fenced code syntax highlighting.
3. **Legacy Workflow Compatibility**: Full native parser for UltraEdit `.uew` Wordfiles, allowing seamless migration of custom syntax definitions.
4. **Privacy & Offline First**: Zero telemetry, zero analytics, zero network background tracking. All data remains strictly local.

---

## 2. Core Capabilities

### ⚡ Instant-Open Files of Any Size (100MB ~ Multi-Gigabytes)
- Opens 100MB+ logs in under 0.3s, and 2.6GB+ production files in ~1.1s.
- Two-phase streaming: renders the first 4MB visible viewport immediately while background threads stream the remainder non-blockingly.
- Memory consumption typically stays below 95MB regardless of file size.

### 📝 Real-Time Markdown Split Preview & Scroll Sync (`Ctrl+Shift+V`)
- **Dual-Pane Viewport**: Toggle split preview via `Ctrl+Shift+V`, View menu, or the toolbar book icon.
- **Smooth Line-Interpolated Scroll Sync**: Accurately maps the cursor and visible editor line to the preview pane, maintaining perfect reading alignment as you write. Scroll sync can be toggled on or off with a single click.
- **Full GFM Support**: Flawlessly renders GFM tables, task checklists (`- [x]`), blockquotes, strikethroughs, and typographical elements.
- **Local Relative Images**: Safely resolves local relative images via Tauri's asset protocol.
- **Fenced Code Highlighting**: Automatically formats and syntax-highlights multi-language code snippets (JavaScript, TypeScript, Python, Rust, SQL, HTML, CSS, C++, etc.).
- **Lightweight Startup**: Instant launch without the latency, electron bloat, or memory leaks common to heavy note-taking apps.

### 🔗 Obsidian Wikilinks & Vault Folder Editing
- **Open Your Vault as a Folder**: Use **File → Open Folder** on any folder inside an Obsidian vault and edit notes as a fast, lightweight Markdown notes editor. Notes remain plain `.md` files.
- **Clickable Wikilinks**: `[[note]]`, `[[folder/note]]`, `[[note#Heading|alias]]` and `[[#Heading]]` open the target note inside Power Editor (preview stays open). Obsidian-style vault-relative and shortest-path names (including dotted names like `[[2026.11.09]]`) are resolved.
- **Image Embeds**: `![[image.png]]`, `![[image.png|300]]`, `![[image.png|300x200]]` and captions render in preview and print; vault-root paths are detected via the `.obsidian` folder.
- **Ctrl/Cmd+Click in the Editor**: Follow `[[wikilinks]]`, `[text](url)` and bare URLs directly while writing.

### 🔍 Hardware SIMD Regex Search Engine
- Accelerated by AVX2 and NEON SIMD vector instructions.
- Full-text search and replace across 100MB+ logs completes in under 1.4 seconds with zero UI freeze.
- Matches are listed with line numbers and preview snippets for instant navigation.

### 🎨 UltraEdit Wordfile (.uew) Syntax Highlighting
- Drop any `.uew` file into the application `wordfiles/` directory or import on-the-fly via **Language → Import Wordfile (.uew)...**.
- Native parser processes comment delimiters, escape characters, keywords groupings, and folding rules without format conversion.
- Built-in CodeMirror Markdown language highlighting natively takes precedence over custom wordfiles to ensure optimal rendering.

### 🌐 Smart Lossless Encoding Detection & Reload
- Automatically detects file encoding (UTF-8, GBK, Big5, Shift_JIS, ISO-8859) using `chardetng` and `encoding_rs`.
- Reopen files under a chosen encoding directly from the status bar dropdown without file corruption or restarting.

### ↕ LF ↔ CRLF Line Ending Conversion
- Seamless one-click conversion between Unix LF and Windows CRLF line endings.

### ▦ Rectangular Column Mode Editing (Alt + Drag)
- Hold `Alt` and drag to select rectangular text columns across multiple lines for editing tabular data, aligned logs, or fixed-width columns.

### 🗂 Multi-Tab Workspace & Session Recovery
- Open and switch across multiple large files with tab context menus (Save As, Close Others, Copy Path).
- Previous tab states restore automatically upon relaunching the editor.

### 🔔 Live External Modification Watching
- Monitors open files using Rust `notify` and asynchronous `tokio`.
- Silently reloads active log files when tailing, or prompts to preserve local unsaved edits when external changes are detected.

---

## 3. Performance Benchmarks

Tested on Intel i7-13700H, 32GB RAM, Windows 11 (equivalent performance ratios on macOS and Linux):

### 100MB Server Log
| Metric | Power Editor (Open Source) | VS Code | Notepad++ | UltraEdit (Commercial) |
| :--- | :--- | :--- | :--- | :--- |
| **Open Latency** | **0.28s (Fastest)** | 4.8s (Laggy) | 2.1s | 1.2s |
| **RAM Footprint** | **86 MB (Minimal)** | 680 MB | 340 MB | 180 MB |
| **Regex Search** | **1.4s (SIMD Speed)** | 12.5s | 6.8s | 3.1s |
| **Price / License** | **Free (MIT License)** | Free (Telemetry) | Free (GPL) | $99.95 / year |

### 500MB Database Dump
| Metric | Power Editor | VS Code | Notepad++ | UltraEdit |
| :--- | :--- | :--- | :--- | :--- |
| **Open Latency** | **0.62s** | Warning (>500MB) | 18.4s (UI hang) | 4.5s |
| **RAM Footprint** | **110 MB** | 1.4 GB (Freezes) | 890 MB | 420 MB |
| **Regex Search** | **3.2s** | Timed Out | 28.0s | 9.4s |

### 2.4GB+ Production Huge Log
| Metric | Power Editor | VS Code | Notepad++ | UltraEdit |
| :--- | :--- | :--- | :--- | :--- |
| **Open Latency** | **1.1s (Instant Stream)** | FAILED (Exceeds buffer) | FAILED (File too large) | 12.8s |
| **RAM Footprint** | **145 MB** | Crash / OOM | Crash | 850 MB |
| **Regex Search** | **6.9s** | N/A | N/A | 34.2s |

---

## 4. Download & Installation

Current Stable Version: **v0.3.2**

### macOS
#### Option A: Homebrew Cask (Recommended)
Automatically clears macOS Gatekeeper quarantine flags so you can launch immediately without security warnings:
```bash
brew install --cask raiderwang/tap/power-editor
```
To update later:
```bash
brew upgrade --cask power-editor
```

#### Option B: Manual .dmg Download
Download from GitHub Releases:
- **Apple Silicon (M1/M2/M3/M4)**: `Power.Editor_0.3.2_aarch64.dmg`
- **Intel x64**: `Power.Editor_0.3.2_x64.dmg`

*If macOS reports "damaged and can't be opened" for manual DMG:*
```bash
xattr -cr "/Applications/Power Editor.app"
```

### Windows
- **NSIS Setup Installer**: `Power.Editor_0.3.2_x64-setup.exe` (Windows 10 / 11 64-bit)
- **Enterprise MSI Package**: `Power.Editor_0.3.2_x64_en-US.msi` (Silent installation ready)

### Linux
- **Standalone AppImage**: `Power.Editor_0.3.2_amd64.AppImage` (`chmod +x` and run)
- **Debian / Ubuntu Package**: `Power.Editor_0.3.2_amd64.deb` (`sudo dpkg -i power-editor.deb`)

---

## 5. Frequently Asked Questions

**Q: Is Power Editor free for commercial and enterprise use?**  
A: Yes, 100%. Power Editor is licensed under the MIT License. You can use it freely in commercial environments, personal projects, or enterprise infrastructure without subscription fees or licensing audits.

**Q: How does the Markdown preview compare to tools like Obsidian or Typora?**  
A: Power Editor focuses on lightweight, high-performance Markdown editing and previewing without sluggish startup times, background indexing overhead, or heavy memory footprints. It offers split-view editing with smooth scroll sync, GFM support, and local image rendering, making it ideal for technical documentation, README files, and rapid note-taking.

**Q: Can I use Power Editor to edit my Obsidian vault? Are `[[wikilinks]]` supported?**  
A: Yes. Open a folder from your Obsidian vault via File → Open Folder and edit notes as plain Markdown. `[[wikilinks]]` (with headings and aliases) and `![[image]]` embeds are clickable/rendered in the preview, and Ctrl/Cmd+Click follows links in the editor. Obsidian-index features such as backlinks, graph view, and plugins are not included.

**Q: Does Power Editor upload data or send telemetry?**  
A: No. It operates completely offline with zero telemetry, zero analytics, and zero network calls during editing.

---

## 6. Project Links

- **Website**: https://powereditor.noedge.org
- **LLM Metadata**: https://powereditor.noedge.org/llms.txt
- **GitHub**: https://github.com/RaiderWang/power-editor
- **Releases**: https://github.com/RaiderWang/power-editor/releases
