AI Novel Editor
An AI-assisted novel editor based on PyQt6, providing professional writing tools such as smart completion, 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- Install dependencies
pip install -r requirements.txt- Run the program
python src/main.pyMain 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 Features
- Three completion modes: Auto Complete, Manual Complete (recommended: press tab once to trigger, press again to apply completion), Disable Completion
- Three context modes:
- Quick Mode: Lightweight context, fast response
- Balanced Mode: Moderate context, balance of quality and speed
- Global Mode: Full project context, best results
- Supports multiple AI services: OpenAI, Claude, Tongyi Qianwen, Zhipu AI, DeepSeek, Groq, etc.
Outline Management
- Visual outline tree structure
- Drag-and-drop sorting and hierarchy adjustment
- Fast document navigation
- Outline analysis and optimization suggestions
API Configuration
- Unified AI configuration center
- Multiple provider preset configurations
- Connection test function
- Configuration plan save, import, and export
Intelligent Completion Settings
- Adjustable trigger delay
- Completion length limit
- Context length configuration
- Streaming response support
Prompt Editing
- Built-in writing templates
- Custom prompt templates
- Template category management
- Mode-specific template configuration
Interface Features
- Dual light and dark themes
- Three-column 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 replace functionality
- 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