Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

emacs

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.
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)
like image 870
Sergey Avatar asked Dec 05 '12 10:12

Sergey


1 Answers

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

like image 166
Victor Deryagin Avatar answered Oct 05 '22 17:10

Victor Deryagin