简体   繁体   English

Emacs,如何在组织模式下仅显示当前任务并隐藏其他任务?

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

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.我有一个很大的任务树,我只想在缓冲区中选择 1 个(只为它写笔记)并在编辑时隐藏其他人。
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)

Use narrow-to-defun or org-narrow-to-subtree command with point in task.narrow-to-defunorg-narrow-to-subtree命令与任务点一起使用。 ( widen to move back to whole buffer content). widen以移回整个缓冲区内容)。

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 手动的

您还有org-tree-to-indirect-bufferCc Cx b ,它将创建一个仅包含此子树的新缓冲区,并将一个缓冲区中的任何更改反映到另一个缓冲区中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM