zord-gui 0.1.2

A minimal text editor built with GPUI
# Zord Usage Guide

## Quick Start

```bash
# Install TUI (terminal) editor
cargo install --path zord

# Run it
zord
```

The `zord` command opens your scratchpad at `~/.config/zord/default.txt`

## Shared State

Both the TUI and GPUI versions work on the **same file**: `~/.config/zord/default.txt`

- Changes auto-save after every keystroke
- Switch between editors seamlessly
- Your work is always persisted

## Running Both Editors

### Terminal (TUI)
```bash
zord              # Exit with Ctrl+W
```

### GUI (GPUI)
```bash
cargo run -p zord-gui
```

## Keyboard Shortcuts

All shortcuts work identically in both editors:

| Action | Shortcut |
|--------|----------|
| **Text** | |
| Type | Any key |
| New line | Enter |
| Delete backward | Backspace |
| Delete forward | Delete |
| **Cursor** | |
| Move | Arrow keys |
| Line start | Home or Cmd+Left |
| Line end | End or Cmd+Right |
| Word jump | Alt+Left/Right |
| **Selection** | |
| Select | Shift+Arrows |
| Select word | Shift+Alt+Left/Right |
| Select all | Ctrl+A |
| **Editing** | |
| Undo | Ctrl+Z |
| Redo | Ctrl+Shift+Z |
| Delete line | Ctrl+Shift+K |
| Move line up | Alt+Up |
| Move line down | Alt+Down |
| Tab | Tab |
| Outdent | Shift+Tab |
| **View (GPUI only)** | |
| Bigger font | Ctrl+= |
| Smaller font | Ctrl+- |

## List Continuation

Smart list continuation works in both editors:

```
Type: - First item
Press Enter
→ Automatically creates: -

Type: 1. First item
Press Enter
→ Automatically creates: 2.
```

## Example Workflow

```bash
# Morning: Quick notes in terminal
zord
# Type meeting notes
# Ctrl+W to quit (auto-saved)

# Afternoon: Expand in GUI with nice font
cargo run -p zord-gui
# Continue editing same file
# Close window (auto-saved)

# Evening: Review in terminal
zord
# All your work from both sessions is there
```

## File Location

Your scratchpad file: `~/.config/zord/default.txt`

You can directly edit this file or use either editor - they all stay in sync.