Emacs,如何只显示当前任务并在org-mode中隐藏其他任务?

时间:2012-12-05 10:19:21

标签: emacs org-mode

ORG-模式。
我有一个很大的任务树,我想在缓冲区中只选择1个(只为它编写注释)并在编辑时隐藏其他树 我怎么能这样做?

task-1
  subtask-1.1
  subtask-1.2
task-2
  subtask2.1
...
...

例如我想只为我显示:

subtask-1.2
(notes for this subtask)

2 个答案:

答案 0 :(得分:19)

在任务中使用narrow-to-defunorg-narrow-to-subtree命令。 (widen返回整个缓冲区内容。)

默认快捷方式:

C-x n s      # org-narrow-to-subtree (bound in org-mode)
C-x n d      # narrow-to-defun
C-x n w      # widen

Manual

答案 1 :(得分:0)

您还有org-tree-to-indirect-bufferC-c C-x b,它们将仅使用此子树创建一个新的缓冲区,并将一个缓冲区中的任何更改反映到另一个缓冲区中。

相关问题