#diary #keeping #markdown #section #entries #documenting #links

bin+lib diary-cli

一个强大的日记记录和保存命令行工具

2 个稳定版本

1.3.5 2024 年 8 月 11 日
1.3.4 2024 年 4 月 27 日

247文本处理

Download history 137/week @ 2024-04-26 6/week @ 2024-05-03 1/week @ 2024-06-28 6/week @ 2024-07-05 7/week @ 2024-07-26 1/week @ 2024-08-02 97/week @ 2024-08-09

每月 105 次下载

GPL-3.0 许可证

95KB
2K SLoC

diary-cli


一个强大的日记记录和保存命令行工具。

如何安装


  1. 运行
        cargo install --locked diary-cli
    
  2. 试试看
        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