AI Novel Editor
An AI-assisted novel editor based on PyQt6, offering professional writing tools such as intelligent autocompletion, project management, and concept organization.
Installation
- Clone the project
git clone https://github.com/inliver233/Ai-Novel-Editor.git
cd ai-novel-editor- Create a virtual environment
python -m venv venv
venv\Scripts\activate # Windows
Using uv
uv venv -p 3.11
- Install Dependencies
pip install -r requirements.txt
Using uv
uv sync- Run the Program
python -m srcMain Features
Project Management
- Hierarchical document structure (Work > Chapter > Scene)
- Project import and export (supports TEXT, MARKDOWN, DOCX, PDF, HTML formats)
- Automatic backup and version control
- Multi-project management
AI Completion Function
- Three completion modes: Auto-completion, Manual completion (Recommended: press Tab once to trigger, press Tab again to apply completion), and Disable completion
- Three context modes:
- Fast mode: Lightweight context, fast response
- Balanced mode: Moderate context, balance between quality and speed
- Global mode: Complete project context, best results
- Supports multiple AI services: OpenAI, Claude, Tongyi Qianwen, Zhipu AI, DeepSeek, Groq, etc.
Outline Management
- Visualized outline tree structure
- Drag-and-drop sorting and hierarchy adjustment
- Quick document navigation
- Outline analysis and optimization suggestions
API Configuration
- Unified AI configuration center
- Preset configurations for multiple service providers
- Connection testing function
- Save, import, and export configuration schemes
Intelligent Auto-Completion Settings
- Adjustable trigger delay
- Completion length limit
- Context length configuration
- Streaming response support
Prompt Editing
- Built-in multiple writing templates
- Custom prompt templates
- Template category management
- Mode-specific template configuration
Interface Features
- Light and dark dual themes
- Three-pane layout (project tree, editor, concept panel)
- Collapsible sidebar
- Full-screen writing mode
- Focus modes (sentence, paragraph, typewriter, zen mode, immersive mode)
Search and Replace
- Full-project text search
- Regular expression support
- Batch replacement function
- Advanced search options
Concept Management
- Automatic detection of characters, locations, items
- Concept relationship management
- Tag and categorization system
- Quick concept insertion
Shortcuts
Ctrl+N: New projectCtrl+O: Open projectCtrl+S: Save documentF11: Full screen modeTab: Manually trigger AI completion (in manual mode)Ctrl+F: FindCtrl+H: Find and replaceCtrl+Shift+H: Advanced find and replace
System Requirements
- Python 3.8+
- PyQt6
- Operating System: Windows, macOS, Linux
Author
inliver
- Email: inliverapi@outlook.com
- GitHub: https://github.com/inliver233