将关键字(既不是标题也不是名称)与内部链接匹配

Match keywords (which are neither of heading or names) with internal links

外部链接与模式完全匹配

file:projects.org::some words= (text search)

相比之下,内部链接只有 header 和名称匹配模式。

假设放置一个带有 "foo.org"

的函数
 (defun bisect-search ...)

在下面的文件中,引用它,我必须按字面意思命名 #+姓名:bisect-search

并设置
<<bisect-search>> 对于琐碎或难以命名的关键字,我尝试了

   file:current_file.org::keywords

得到了,但是有错误。

可能有一个使用 elisp 命令的解决方案

   elisp:(command )

能否请您提供任何提示以匹配当前文件中的关键字?

内部 links 的匹配行为由变量 org-link-search-must-match-exact-headline 控制,其文档字符串为:

org-link-search-must-match-exact-headline is a variable defined in ‘ol.el’.

Its value is ‘query-to-create’ ...

Documentation: Non-nil means internal fuzzy links can only match headlines.

When nil, the a fuzzy link may point to a target or a named construct in the document. When set to the special value ‘query-to-create’, offer to create a new headline when none matched.

如果您将此变量设置为 nil,那么像 [[bisect-search]] 这样的 link 将匹配文件中 bisect-search 的第一个实例(除了它不会自匹配)。 IMO 这是一个相当高的价格,你必须支付只是为了避免 #+NAME:ing 某些东西,但是 YMMV。