[分享] 通过 dired + consult-file-externally 快速打开当前文件或文件夹

Emacs 30 已经内置了一个新的命令 dired-do-open,在 dired 中按 E 就可以触发。

embark-open-externally 可以不用了。

*** New command ‘dired-do-open’. This command is bound to ‘E’ (mnemonics “External”). Also it can be used by clicking “Open” in the context menu; it “opens” the marked or clicked on files according to the OS conventions. For example, on systems supporting XDG, this runs ‘xdg-open’ on the files.

2 个赞