2013-02-21 82 views
11

在Emacs组织模式下,是否有像org-goto-heading这样的命令?是否有Emacs组织模式命令跳转到组织标题?

在一个长长的组织模式文件,我已经朝着底部这样的标题:

* questions 

我想跳转到该标题,而不必通过单词的其他所有实例来趟questions

是否有一个命令,如:

基本上我想导航到使用这样的事情该标题:M-x org-goto-heading questions <RET>

回答

12

以下是来自org邮件列表discussing navigation的有趣线索。

从本质上讲,它添加到您的init文件:

(setq org-goto-interface 'outline-path-completion 
     org-goto-max-level 10) 

而且你可以跳转到与org-goto命令C-C C-J标题。 您还可以使用铜抄送CWorg-refile加给你的 init文件:

(setq org-outline-path-complete-in-steps nil) 
6

不知道这是否适用于你,但有一个org-goto功能C-c C-j

一旦你调用它,你可以使用向上和向下键或使用搜索C-s滚动树。

以下是docs的摘录。

C-c C-j  (org-goto) 

Jump to a different place without changing the current outline visibility. 
Shows the document structure in a temporary buffer, where you can use the 
following keys to find your destination: 

      <TAB>   Cycle visibility. 
      <down>/<up> Next/previous visible headline. 
      <RET>   Select this location. 
     /   Do a Sparse-tree search 
      The following keys work if you turn off org-goto-auto-isearch 
      n/p  Next/previous visible headline. 
      f/b  Next/previous headline same level. 
      u   One level up. 
      0-9   Digit argument. 
      q   Quit 
6

我有这样的命令势必M-o(imenu-anywhere)

它允许您快速跳到部分(从所有部分列表中选择)。它不仅在组织模式下工作,而且在许多其他模式下工作。

5

再有就是org-occur-goto,这使得在所有的组织模式缓冲区并显示结果多会出现搜索动态地你输入。

用于任何文本(不仅标题)。

4

如果您正在寻找议程文件中的标题,helm-org-agenda-files-headings是一个非常有用的命令。它是helm包的一部分,可通过MELPA获得。