-
Couldn't load subscription status.
- Fork 6
Home
AI Text Editor is a cross-platform, Python-powered desktop app built with PyQt6. It combines all the essentials of a modern text editor with powerful AI-driven writing assistance and seamless GitHub integration.
- Introduction
- Key Features
- Architecture Overview
- Installation
- Getting Started
- Usage
- Extending the Editor
- Contributing
- License
- Contact
Welcome to the AI Text Editor!
Harness the power of AI to improve your writing, translate, summarize, or autocorrect text—right inside your favorite desktop editor. Built on PyQt6, with an intuitive ribbon interface, tabbed editing, and first-class GitHub OAuth support, it’s everything you need to write, edit, and manage projects.
- New/Open/Save files (TXT, all formats)
- Tabbed interface with closeable tabs
- Undo/Redo, Find & Replace, Search Word
- Live word, character & line count in the status bar
- Bold, Italic, Underline
- Increase/Decrease font size, text color & highlight
- Bulleted & numbered lists, indentation, alignment
- Export as DOCX, TXT; Print support
(Requires Ollama)
- Autocorrect selection
- Improve writing
- Summarize text
- Translate selection (choose target language)
- Custom AI prompt on selected text
- OAuth login via embedded Flask server (
auth.py) - List your repositories & open files directly from GitHub
- Save & upload new files back to your repo
┌─────────────┐ ┌─────────────┐ ┌──────────────┐
│ auth.py │─OAUTH│ Flask App │─HTTPS│ GitHub REST │
└─────────────┘ └─────────────┘ └──────────────┘
│ ↓
│ ┌─────────────────────┐
└─────────▶│ UI Layer │
│ (ui/ui.py + ui.py) │
│ • Ribbon & Toolbar │
│ • Tabbed QTextEdit │
│ • Status Bar │
└─────────────────────┘
↓
┌─────────────────────────┐
│ ai.py (Ollama) │
│ • PROMPTS templates │
│ • get_ollama_response │
└─────────────────────────┘
For full details see:
-
Clone the repo
git clone https://github.com/<your-org>/Text-Editor.git cd Text-Editor
-
(Optional) Create a virtualenv
python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\Activate.ps1 # Windows PowerShell
-
Install dependencies
pip install -r requirements.txt
-
Configure OAuth
Copyenv.example→.envand set:GITHUB_CLIENT_ID=… GITHUB_CLIENT_SECRET=… OAUTH_REDIRECT_URI=http://127.0.0.1:5000/callback -
Install Ollama (for AI features)
Follow instructions at https://github.com/jmorganca/ollama.
- Launch the app:
python main.py
- Use File ▶ New/Open/Save to manage local files.
- Flip on AI ▶ Enable AI Tools to unlock AI actions.
- For GitHub, go to Projects ▶ Login, complete OAuth, then browse your repos.
Right-click selected text (with AI enabled) for:
Improve Writing ▶ Summarize ▶ Translate ▶ Custom Prompt
Use the Ribbon toolbar for formatting, export, and print.
- Add new AI prompts in
ai.py→PROMPTS - Customize the ribbon in
ui/tools/toolbar.py - Hook deeper into OAuth in
auth.py
More in Architecture Overview.
- Fork & branch (
feature/…) - Code & tests
- PR →
main - Pass lint & formatting
See CONTRIBUTING.md.
Licensed under the MIT License.
Built by SchBenedikt · GitHub Repo
Questions? Open an Issue.
Happy writing! 🚀
visit our website
Nextcloud, Wordpress, Linux & Co. Tutorials
https://technik.schächner.de