我在 emacs 中使用 helm-mode 打开文件。但是,当我尝试通过鼠标左键单击并按住以将其粘贴到终端中来复制文件的路径(例如/home/user1/Documents/file1.txt)时,我收到一条消息说<down-mouse-1> is undefined
我猜 helm 不支持所描述的鼠标操作 here ,在这种情况下,如何从 emacs(在 helm 模式下)复制文件的路径以将其粘贴到终端中
最佳答案
给出的答案in this other thread可能看起来更直接。
简而言之:在 minibuffer 中选择的文件使用 C-u C-c C-k
.这会调用 helm-kill-selection-and-quit
.文件的完整路径被复制到 kill ring 并且可以粘贴到 Emacs 或其他地方。
关于emacs - 如何在emacs helm-mode中复制文件的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32722703/