2013-02-21 83 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獲得。