2 个版本
0.1.1 | 2022年2月12日 |
---|---|
0.1.0 | 2022年2月8日 |
#97 在 #notes
26KB
761 代码行
ctxnote
思绪混乱。将你的想法放入上下文中!
这是一个简单的命令行工具,在命令行工作中记录笔记,无需打断流程。最重要的是,轻松地将笔记放入合适的上下文中。
⚠️ 进行中。以下内容均为意向,可能尚未实现。
CLI 结构
|- note [-c <context>]
| |- add <entry>
| |- get <pattern>
| |- init (alias: note ctx init)
| |- conf
| | |- get <key>
| | |- set <key> <val>
| |- ctx
| | | <name>
| | |- init [-n <name>] [-b]
| | |- get <pattern>
| | |- rm <name>
| | |- mv <name> <newname>
用法
选项
-c
--context
设置内联上下文。
note add
note add <entry>
将笔记条目添加到当前上下文。
示例
$ note add "this is an example entry"
[default] added entry: this is an example entry
$ note add "this is an example entry in another context" -c examples
[examples] added entry: this is an example entry in another context
note get
note get <pattern>
获取所有与给定模式相对应的条目。
依赖
~3.5–4.5MB
~78K SLoC