仅显示组织模式下的注释,而不显示组织模式相关信息?
我怎样才能只从组织模式标题中获取注释而无需任何“技术”内容? 我的意思是,我想要类似的东西
* Some project
- some note 1
- some note 2
** some chapter
- another note
- noooote
** TODO some big todo
- something to note for the task
- another thing
** some chapter
而不是
* Some project
- some note 1
- some note 2
** some chapter
- another note
- noooote
** TODO some big todo
CLOSED: [2011-11-10 Thu 19:51]
- State "DONE" from "STARTED" [2011-11-10 Thu 19:51]
CLOCK: [2011-11-10 Thu 19:33]--[2011-11-10 Thu 19:51] => 0:18
CLOCK: [2011-11-04 Fri 15:29]--[2011-11-04 Fri 15:29] => 0:00
:PROPERTIES:
:Effort: 0:30
:END:
[2011-11-04 Fri 15:29]
- something to note for the task
- another thing
** some chapter
编辑:我发现我可以使用导出来实现这一点(使用 #+OPTIONS: <:nil d:nil
),但它并不是很方便 -我的意思是,我需要按 Ctrl-c Ctrl-e u
,然后切换到新缓冲区 Ctrl-b temp-buffer
,然后删除其中的所有内容 Ctrl -x h
Ctrl-w
,然后添加我的导出 Ctrl-y Meta-y
。要按很多键。
除此之外,我无法摆脱像 - State "DONE" from "STARTED" [2011-11-10 Thu 19:51]
这样的东西,因为形式上它只是一个注释 - 正是这样的东西我“想”保留。
How can I get just the notes from org-mode heading without any "technical" stuff?
I mean, I want something like that
* Some project
- some note 1
- some note 2
** some chapter
- another note
- noooote
** TODO some big todo
- something to note for the task
- another thing
** some chapter
instead of that
* Some project
- some note 1
- some note 2
** some chapter
- another note
- noooote
** TODO some big todo
CLOSED: [2011-11-10 Thu 19:51]
- State "DONE" from "STARTED" [2011-11-10 Thu 19:51]
CLOCK: [2011-11-10 Thu 19:33]--[2011-11-10 Thu 19:51] => 0:18
CLOCK: [2011-11-04 Fri 15:29]--[2011-11-04 Fri 15:29] => 0:00
:PROPERTIES:
:Effort: 0:30
:END:
[2011-11-04 Fri 15:29]
- something to note for the task
- another thing
** some chapter
EDIT: I figured out I can accomplish that using exports (with #+OPTIONS: <:nil d:nil
), but its not really convenient - I mean, I need to press Ctrl-c Ctrl-e u
, then switch to new buffer Ctrl-b temp-buffer
, then delete everything from it Ctrl-x h
Ctrl-w
, then add my export Ctrl-y Meta-y
. Thats a LOT of keys to press.
Besides that, I couldn't get rid of stuff like - State "DONE" from "STARTED" [2011-11-10 Thu 19:51]
because formally it is just a note - exactly the thing I "wanted" to keep.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管您需要手动修复大部分现有的组织文档,但解决方案是使用日志抽屉。
要将待办事项状态更改归档到抽屉中(默认为日志),您可以使用(请参阅跟踪 TODO 状态更改):
(setq org-log-into-drawer t)
或:LOG_INTO_DRAWER: t
作为标题上的属性。您还可以使用
(setq org-clock-into-drawer t)
将所有CLOCK:
行放入:LOGBOOK:
中。如果您希望时钟采用单独的值,请将t
替换为您想要作为抽屉标题的字符串(例如(setq org-clock-int-drawer "CLOCK")
然后,当您导出
#+OPTIONS: d:nil
时,将阻止导出任何这些抽屉,因此不会出现任何信息。Although you'll need to manually repair much of your existing org-document, the solution would be to use Logbook drawers.
To file your todo-state changes into a drawer (default to LOGBOOK) you can use (see Tracking TODO state changes):
(setq org-log-into-drawer t)
or:LOG_INTO_DRAWER: t
as a property on the headline.You can also use
(setq org-clock-into-drawer t)
to place all yourCLOCK:
lines into the:LOGBOOK:
as well. If you want your clocking to go in a separate value, replacet
with the string you want as your drawer title (e.g.(setq org-clock-int-drawer "CLOCK")
Then when you export your
#+OPTIONS: d:nil
will prevent any of those drawers from being exported, so none of that information will appear.