组织模式:在抽屉中使用特殊属性 [英] Org-mode: using special properties in the drawer

查看:120
本文介绍了组织模式:在抽屉中使用特殊属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

组织手册说特殊属性不应该用作属性抽屉中的键。但是,我想在更高级别使用组织模式,我想将所有特殊属性放在中:PROPERTIES: drawer。

Org manual says special properties "should not be used as keys in the properties drawer". However i want to use org-mode on a more high level and i want to put all special properties in the :PROPERTIES: drawer.

这可以用于很多原因,例如,我可以编写一个外部解析器,可以了解组织模式文件,它只包含带有属性的条目,而不需要了解TODO,标签,优先级和他们在标题中的语法。这应该改变所有org-mode命令的行为,通常遵循ad hoc组织模式语法。例如, org-todo 将在抽屉中更改 TODO 属性,而不是更改标题,等等

This can be used for many reasons, for example, i can write an external parser, that can understand org-mode files, that consist of only entries with properties, without needing to know about TODO, tags, priorities and their syntax in the headline. This should change the behavior of all org-mode commands, that usually obey the ad hoc org-mode syntax. For example, org-todo would change a TODO property in the drawer, instead of changing the headline, and so on.

换句话说,我想将org-mode语法概括一下。我如何在理论和实践中做到这一点?我需要知道和做什么?

推荐答案

唯一的方法(理论上和实际上)都是重写组织模式启用。特殊属性(关闭,预定等)由现有代码假定为外部抽屉,紧接在标题下方,项目必须在星号之后立即;•标签:在第一行。
标签应该是最简单的重新路由到抽屉,因为一些功能已经这样做了。关闭,计划和截止日期是明确的和可移动的。在抽屉中放置待办事项可能是一个很大的工作。

The only way (both theoretically and practically) is to rewrite org-mode to enable that. The special properties (closed, scheduled etc) are assumed by existing code to be outside drawers, immediately below the header, todo items must be immediately after the stars and :tags: on the first line. Tags should be easiest to reroute to a drawer as some functionality does this already. Closed, scheduled and deadline are well defined and movable. Placing todo status in drawers may be a big job.

这篇关于组织模式:在抽屉中使用特殊属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆