一个沉浸式的命令行小说写作工具 (A text-immersive CLI novel writing tool)
Project description
momo writer
命令行写作工具,用于小说创作与管理。
安装
本地开发安装(可编辑模式,修改代码立即生效):
python -m pip install -e .
安装完成后可直接使用 momo 命令:
momo
快速开始
momo init
momo
命令
/catlog或/catalog:查看目录并用方向键选择/new <标题>:新建章节/open <编号>:直接打开指定章节/latest:打开最新一章/del <编号>:删除章节/rename <编号> <标题>:重命名章节/stats:字数统计/find <关键词>:搜索/exit:退出
章节内命令:
/w:逐行写作(每行回车自动保存成段落,输入exit结束)/show [行数]:预览章节内容(默认 5 行)/back:返回上级/exit或/q:退出 momo
全局配置
全局配置文件:~/.momo/config.json
# 查看配置
momo config
# 设置默认小说目录
momo config root D:\novels
# 在默认目录下创建新小说
momo init "我的小说"
当你在非项目目录运行 momo 时,会列出已登记小说并选择进入。
交互式初始化
直接运行 momo init 会进入选择流程:
- 在默认目录创建(输入书名)
- 在当前目录创建(输入书名)
- 指定路径创建(输入路径 + 书名)
- 退出
Notes
- On first run, the tool uses the current folder name as the novel title.
- Chapters live under
.momo/chaptersand are plain markdown files. - The chapter picker uses
prompt_toolkitif available; otherwise it falls back to numeric input.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
momo_writer-0.1.0.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file momo_writer-0.1.0.tar.gz.
File metadata
- Download URL: momo_writer-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
475304b439dce8b3ec2a46770f92e25ab11a2af4754734e508734227cfca48f8
|
|
| MD5 |
a6f72fdc0225143af2f408cec924144d
|
|
| BLAKE2b-256 |
a1f2fe087b502dcac1cfa55f1b76363715f4e12a39e9faa44c0e699d0228b9d0
|
File details
Details for the file momo_writer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: momo_writer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef5486f876ad75e36de9a06c0676c335a24688849408acaeceda78f360242342
|
|
| MD5 |
3d943fd774202a24b082a7d75902bb38
|
|
| BLAKE2b-256 |
388a1ee55c35aeb714a29ad7a75350430ea9570444745e855420b4c58f676d3a
|