Emacs, How can I display only current task and hide others in org-mode?

為{幸葍}努か 提交于 2019-12-31 10:46:12

问题


Org-mode.
I have a big tasks tree and I want to select only 1 in buffer (write notes just for it) and hide others while editing.
How can I do this?

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

For example I want to display for me only:

subtask-1.2
(notes for this subtask)

回答1:


Use narrow-to-defun or org-narrow-to-subtree command with point in task. (widen to move back to whole buffer content).

Default shortcuts:

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




回答2:


You also have org-tree-to-indirect-buffer, or C-c C-x b, which will create a new buffer with only this subtree, and reflect any change in one buffer into the other.



来源:https://stackoverflow.com/questions/13720898/emacs-how-can-i-display-only-current-task-and-hide-others-in-org-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!