Skip to main content

一个沉浸式的命令行小说写作工具 (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 会进入选择流程:

  1. 在默认目录创建(输入书名)
  2. 在当前目录创建(输入书名)
  3. 指定路径创建(输入路径 + 书名)
  4. 退出

Notes

  • On first run, the tool uses the current folder name as the novel title.
  • Chapters live under .momo/chapters and are plain markdown files.
  • The chapter picker uses prompt_toolkit if available; otherwise it falls back to numeric input.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

momo_writer-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for momo_writer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 475304b439dce8b3ec2a46770f92e25ab11a2af4754734e508734227cfca48f8
MD5 a6f72fdc0225143af2f408cec924144d
BLAKE2b-256 a1f2fe087b502dcac1cfa55f1b76363715f4e12a39e9faa44c0e699d0228b9d0

See more details on using hashes here.

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

Hashes for momo_writer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef5486f876ad75e36de9a06c0676c335a24688849408acaeceda78f360242342
MD5 3d943fd774202a24b082a7d75902bb38
BLAKE2b-256 388a1ee55c35aeb714a29ad7a75350430ea9570444745e855420b4c58f676d3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page