<p align="center">
  <img src="assets/icons/Light-Fount Banner.png" alt="Fount Banner" width="100%">
</p>

# Fount
**Fount** is a minimal, distraction-free Fountain screenplay editor built for writers who live in the terminal. It blends the raw efficiency of Rust with a "Zen Studio" aesthetic, providing a writing experience that feels professional, focused, and deeply personal.

---

## 🚀 Installation

### Linux
- **Arch Linux (AUR)**:
  ```bash
  yay -S fount-bin
  ```
- **Debian / Ubuntu**: Download the latest `.deb` package from the [Releases](https://github.com/BeetleBot/FountCLI/releases) page.
- **Fedora / RHEL**: Download the latest `.rpm` package from the [Releases](https://github.com/BeetleBot/FountCLI/releases) page.

### Any Platform (via Cargo)
```bash
cargo install fount
```

### Windows & macOS
- **Windows**: `cargo install fount` (requires [Rust](https://rustup.rs/))
- **macOS**: `cargo install fount` (for best results, use a terminal with Truecolor support like iTerm2 or Ghostty)

---

## ✍️ Developer's Note

> [!NOTE]
> **A Letter from the Creator**
> 
> As a credited Tamil/Indian screenwriter—writing predominantly in **English and Tanglish**—I found myself at a crossroads when I transitioned to Linux. I deeply missed **[Beat](https://github.com/lmparppei/Beat)**, my long-time companion for storytelling, and couldn't find a minimalist alternative that felt "right" in the terminal.
> 
> My search led me to **[Lottie](https://github.com/coignard/lottie)**, whose elegance immediately captivated me. I cloned the project and began shaping it into the tool I needed. While I possess a moderate grasp of Rust, this journey was significantly smoothed by the partnership of **AI Agents like Claude and Gemini**. 
> 
> AI was instrumental in helping me overcome technical hurdles, complicated logic, and the often frustrating nuances of software release workflows. Fount is the result of my creative vision and little bit of coding background, the open-source code that inspired me, and the intelligence of the agents that helped me build it. It is a tool I use daily, and I hope it serves you just as well.

---

## 🎞️ The Zen Experience

Fount is a dedicated writing environment designed to disappear while you work.

- **Adaptive Interior**: Automatically detects your terminal's background to maintain contrast.
- **Unified Vision**: A single-line footer displays real-time **Word Counts**, **Page Numbers**, and **Status**.
- **Story-Map Navigation**: Toggle the **Scene Navigator (`Ctrl+H`)** to see your screenplay's structure.
- **Ensemble Management**: Use the **Character Sidebar (`Ctrl+L`)** to analyze character distribution.
- **Index Cards**: A grid-based **Index Cards (`/ic`)** for high-level plotting.
- **Multi-Scripts Workflow**: Open and switch between multiple scripts seamlessly.

---

## 🏛️ Inspiration & Credits

Fount stands on the shoulders of giants. This project would not have been possible without the inspiration and foundational work of the following:

1.  **[Lottie](https://github.com/coignard/lottie)**: My immediate inspiration. Fount began as a fork and evolution of this beautiful terminal editor.
2.  **[Beat](https://github.com/lmparppei/Beat)**: The gold standard for minimalist screenwriting software. Fount is my attempt to bring the spirit of Beat to the Linux terminal.
3.  **[Fountain.io](https://github.com/nyousefi/Fountain)**: The universal screenplay format that powers modern independent screenwriting.

> [!IMPORTANT]
> A massive thank you to the creators of these tools. Their commitment to the craft of writing and software design continues to inspire creators worldwide.

---

*Crafted for the screenwriting community with 75% Human Spirit and 25% AI Assistance.*
