3

org module之org-id

 3 years ago
source link: https://www.lujun9972.win/blog/2020/02/10/org-module%E4%B9%8Borg-id/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

org module之org-id

org-id为每个Org项实现了生成/获取/查找全局唯一性标识的功能,该标识通常存储在 :ID: 属性中。

标识符可以使用同一个前缀(该前缀由变量 org-id-prefix 指定,nil表示没有前缀) 后面的唯一性部分的产生方式则由变量 org-id-method 决定.

目前org-id支持的生成唯一性表示的方法有三个:

org使用内置方法,根据生成ID的当前时间(精确到毫秒)和电脑的域名(若设置了变量 org-id-include-domain 的话)来生成 uuid使用外部程序(若设置了 org-id-uuid-program 的话),或内部函数创建随机UUID(Version 4) ts以ISO8601时间戳作为ID,精确到秒

org-id提供了如下命令以供使用:

org-id-get-create为光标处的Org条目创建ID(若ID不存在),并返回其ID. 通过 prefix 参数可以强行创建ID

org-id-get获取当前Org条目的ID

org-id-goto跳转到指定ID的Org条目处

org-id-get-with-outline-path-completion以大纲路径作为补全项,让你选择要获取ID的条目,并返回ID. 该函数支持多个Org文件

org-id-get-with-outline-drilling以大纲路径作为补全项,让你选择要获取ID的条目,并返回ID. 该函数只支持当前Org文件

org-id-find找到指定ID所属条目的位置


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK