/xnote

A note taking package in emacs.

Primary LanguageEmacs Lisp

模型设计

  • note表
字段含义约束类型备注
id笔记唯一id主键字符串uuid
status笔记状态非空数值原始笔记(0),进化笔记(1)
content笔记内容非空字符串
resume笔记概要可空字符串
child进化笔记可空字符串进化后的笔记id
refs笔记引用可空列表引用一个或多个笔记id
tag笔记标签可空列表
time笔记创建时间非空数值取秒数

功能设计

  • timeline 时间轴
  • tree 进化树
  • content 笔记内容
命令参数功能交互/备注
xnote-show显示主界面时间轴,进化树,笔记内容
xnote-timeline-show显示时间轴时间轴中显示当前日期的所有原始笔记时间点
xnote-tree-showtime显示进化树进化树中笔记只展示摘要(title)
xnote-content-showtime显示笔记内容默认显示当前原始笔记的内容,命令选择显示进化树中笔记内容
xnote-timeline-current跳转到当前日期
xnote-timeline-next跳转到下一个日期
xnote-timeline-previous跳转到上一个日期
xnote-timeline-jump跳转到指定日期(日历选择)
xnote-tree-evolveid新增(修改)当前笔记的进化新增:针对进化树上最新的进化笔记;修改:针对历史进化笔记,弹出引用笔记列表,选择一个作为进化
xnote-tree-referid给当前笔记添加引用对于历史进化笔记,添加新的笔记是否需要重新 修改 它的进化?
xnote-tree-reversetime进化树倒排序和正排序默认排序方式用变量控制(asc/desc)
函数参数功能emacsql sql
xnote-time-listdate返回特定日期的所有原始笔记timeselect time from note where (and (= flag 0) (> time date) (< time date+1))
xnote-tree-listtime返回当前时间原始笔记的进化树列表select resume from note where (and (= flag 1) (= time time)) 根节点
xnote-content-detailid返回特定笔记的内容select content from note where (= id id)