Doc-Forg helps you quickly combine multiple markdown/text documents into one polished DOCX file — right from a nice terminal interface (TUI).
Requirements
- Python 3.11 or newer
- Node.js 18 or newer
- uv (Python package manager – get it here)
One-time setup (do this once in the project folder):
# Install Python dependencies
uv sync
# Install the DOCX converter (needs to be done only once)
cd converter
npm install
cd ..Launch the app
uv run -m src.main→ You'll see a friendly terminal interface (TUI)
-
Give your document a title
Type:/title Your Amazing Report -
Add sections (you can add as many as you want)
- Introduction:
/intro ID - Chapter 1:
/chapter ID - Another part:
/chapter ID
(replace with your actual document IDs)
- Introduction:
-
Generate & preview the result
Type:/forge -
Preview mode appears
→ You'll see the proposed combined markdown file
→ You can review it before anything is created -
What to do next?
- Looks good? → type
/accept - Not happy? → type
/cancel - Want to tweak something? → open the file shown in the path with your favorite editor (VS Code, vim, etc.), make changes, save, and type
/accept
- Looks good? → type
Already have a document.md created with Doc-Forg? Great!
-
Load it back:
Type:/import -
Add more chapters if needed:
/chapter 101
/chapter 202
etc. -
Generate updated version:
/forge→ review →/acceptor/cancel
That's it!
Tips:
- All commands start with
/(slash)- You can type
/helpanytime for available commands
Happy forging! 📄➜✨
