2 个稳定版本
新 1.3.5 | 2024 年 8 月 11 日 |
---|---|
1.3.4 | 2024 年 4 月 27 日 |
247 在 文本处理 中
每月 105 次下载
95KB
2K SLoC
diary-cli
一个强大的日记记录和保存命令行工具。
如何安装
- 运行
cargo install --locked diary-cli
- 试试看
diary-cli --help`
日记条目的结构
条目元数据
有关该日记条目的有用元数据
uid = "<a unique identifier that is used for `MOC`s and also defines the file name the entry exports as"
date = 1000-01-01 # date that it occured
title = "<the title of the diary entry>"
description = "<description>"
tags = [
"a",
"bunch",
"of",
"tags",
"to",
"attach",
"(used for both `Obsidian.md` and also for `MOC`s)"
]
notes = [
"a bunch of summaries of the entry",
"in case you're lazy",
]
部分
部分是日记条目中的一个段落或主题
[[section]]
title = "title of / the topic of this section"
contents = """
the string contents of this diary entry
yeah
"""
MOC
的结构
MOC
或 '内容映射' 是一个包含指向其他 mocs 或条目的链接的 markdown 文件
有点像目录或文件夹
MOC 元数据
is-moc = true # tells `diary-cli` that this is a `MOC` file
[moc]
title = "MOCs of 2023"
uid = "2023-mocs"
description = "description about this MOC"
notes = ["notes about this MOC"]
tags = [
"Tags for this MOC that allow it to be searchable or indexed by other MOCs",
]
集合
类似于条目部分,但带有 markdown 链接
[[collection]]
title = "title / topic of the collection"
notes = ["notes about this collection section"]
include = [ # tags of entries or `MOC`s to include in the collection
"interesting",
"moc",
]
依赖关系
~4–14MB
~178K SLoC