url - 如何在 Emacs 缓冲区中同时打开多个 URL?

标签 url emacs org-mode

我将 Emacs 编辑器与 org-mode 和 evil-mode 一起使用,主要用于文本处理和文档编制。通常有几个不同的网站 URL 属于一个主题。

示例:我有一个关于如何安装 Emacs 的文本片段:

*** install emacs

emacs - I want to try org-mode. What's the shortest path from zero to typing? - Stack Overflow
https://stackoverflow.com/questions/4940680/i-want-to-try-org-mode-whats-the-shortest-path-from-zero-to-typing

Index of /gnu/emacs/windows/emacs-26
http://ftp.gnu.org/gnu/emacs/windows/emacs-26/emacs-26.3-x86_64.zip

Installation target:
file://C:\Lupo_Pensuite\MyApps\emacs

How to
file://C:\Lupo_Pensuite\MyDocs\howto.txt

是否可以选择区域并在我的默认网络浏览器中打开所有 URL?并且文件链接正在被 Windows 资源管理器打开?文本文件是用关联的编辑器打开的吗?

或者甚至更好:emacs 知道 a.m. 文本片段实际上是一个 org-mode 章节。而且无论光标位于该章节中的什么位置,诸如 M-x open-all-links-in-chapter 之类的东西都是...打开当前章节中提到的所有链接。

优先级 1:emacs/org-mode/evil-mode 中是否已经存在类似的东西?

优先级 2:是否有您知道的 elisp 函数可以实现此用例?

环境:Windows 10下的Cygwin,emacs 26.3,org-mode 9.1.9

最佳答案

事实证明,org-mode 已经内置了这个!

今天我正在浏览 org-mode 的文档,想知道究竟 C-c C-o 是如何工作的。该组合键调用 emacs 组织模式函数“org-open-at-point”。 org-open-at-point 正在打开光标(在 emacs 中:点)所在的 URL。

现在,如果在标题 上按下C-c C-o,那么该标题下的所有 URL 都会打开!这正是我从一开始就要求的。 NickD,非常感谢您的建设性贡献!

这里是原始帮助文本:

当点在标题上时,显示条目中每个链接的列表,因此可以选择一个或所有链接。

关于url - 如何在 Emacs 缓冲区中同时打开多个 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61621608/

相关文章:

正则表达式字符集(例如 [[ :word:]]) and backslash construct (e. g.\sw): is there preference of one over the other?

django - 小马模式可以与 django-html-mumamo-mode 一起使用吗?

emacs - 如何在emacs org-mode中将子标题移动到其他标题下

emacs - 如何防止Emacs组织模式分割窗口?

Emacs 填充段落没有在预期的地方断行

emacs - 使用Emacs的org模式的漂亮网站

asp.net - 如何在 ASP.NET WebForms 中操作 url?

javascript - Angular js - 可选的动态 url 参数

.htaccess - htaccess SEO Url 友好

php - 在PHP中存储上一页的URL?