[英]is there an Emacs org-mode command to jump to an org heading?
在 Emacs org-mode 中,是否有類似 org-goto-heading 的命令?
在一個長的 org-mode 文件中,我有一個朝向底部的標題,如下所示:
* questions
我想跳到那個標題,而不必費力瀏覽單詞questions
所有其他實例。
有沒有這樣的命令:
基本上我想使用這樣的東西導航到那個標題: Mx org-goto-heading questions <RET>
這是組織郵件列表中討論導航的有趣主題。
本質上,將其添加到您的 init 文件中:
(setq org-goto-interface 'outline-path-completion
org-goto-max-level 10)
您可以使用org-goto
命令Cc Cj跳轉到標題。 您還可以通過將以下內容添加到您的 init 文件來使用Cu Cc Cw org-refile
:
(setq org-outline-path-complete-in-steps nil)
不確定這是否適合您,但有一個org-goto
功能Cc Cj
。
調用它后,您可以使用向上和向下鍵或使用搜索Cs
滾動樹。
這是文檔中的一個片段。
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
我將此命令綁定到Mo
: (imenu-anywhere)
。
它允許您快速跳轉到部分(從所有部分的列表中選擇)。 它不僅適用於組織模式,也適用於許多其他模式。
然后是org-occur-goto ,它對所有組織模式緩沖區進行多次搜索,並在您鍵入時動態顯示結果。
適用於任何文本(不僅是標題)。
如果您要查找議程文件中的標題, helm-org-agenda-files-headings
是一個非常有用的命令。 它是helm
包的一部分,可通過 MELPA 獲得。
您還可以對"^* questions"
進行簡單的正則表達式搜索 ( isearch-forward-regexp
)。
即類型
Mx isearch-forward-regexp
然后 Emacs 會提示你輸入一個字符串來搜索(迷你緩沖區會提示:“I-search”)。 然后您只需鍵入:
^* 問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.