![](/img/trans.png)
[英]How to print a function output to a new file?
我只是想將標記文件的文件名從 Dired 緩沖區導出到新的文本文件。 查看手冊,我找到了 function (dired-get-marked-files) 。 在 Dired 緩沖區中,在標記三個文件用於測試目的之后,評估: (dired-get-marked-files 'verbatim n ...
[英]How to print a function output to a new file?
我只是想將標記文件的文件名從 Dired 緩沖區導出到新的文本文件。 查看手冊,我找到了 function (dired-get-marked-files) 。 在 Dired 緩沖區中,在標記三個文件用於測試目的之后,評估: (dired-get-marked-files 'verbatim n ...
[英]Using evil-mode in dired or disable evil-mode in dired
我一直在使用 emacs 在 org 模式下做筆記。 我不喜歡其他筆記應用程序。 我也開始喜歡 emacs 來完成其他任務。 但是,我在使用邪惡模式導航 dired 時遇到了麻煩。 每次我想打開一個新目錄或文件時,我都必須按 Ctrl-z,這很煩人。 有沒有一種方法可以讓我在邪惡模式下導航 dire ...
[英]Showing line numbers in dired file browser in Emacs
使用 Dired 瀏覽文件時,我無法在 Emacs 中顯示行號。 但沒有顯示行號。 知道如何在 Dired 中啟用行號嗎? ...
[英]Dired appears with 015 (Octal?)
最近,我在 Emacs 中的Dired列表開始出現在每行末尾的015 : 我不確定是什么引起的。 我一直在對我的 Spacemacs 層進行一些更改,但從那時起,我就采用了完全開箱即用的 Spacemacs 配置,並且015仍然存在。 它使Dired幾乎毫無用處,因為如果我嘗試 select 一個 ...
[英]In Dired, how do I add the file path to the kill ring with relevant characters escaped?
正如這個答案所解釋的,Dired function dired-copy-filename-as-kill ( 0 w ) 允許將文件的路徑添加到殺傷環。 但是,我想在 Eshell 上使用此路徑,其中需要對 SPC 等字符進行轉義。 有沒有辦法復制相關角色逃脫的殺戮環的路徑,或者轉換以前的殺戮以 ...
[英]How can I run recursive `dired-maybe-insert-subdir` while abiding by `.gitignore`?
一個 Emacs 用於~/. 開了。 我將 cursor 移動到~/proj並進行Cu i -alR舞蹈(遞歸dired-maybe-insert-subdir )。 但是文件夾~/proj有一個子文件夾~/proj/.git和一個文件~/proj/.gitignore 。 如何在忽略~/proj ...
[英]workflow/usecase for dired-do-redisplay in emacs?
dired-do-redisplay的用例是什么? 我正在閱讀 Emacs Dired 文檔並試圖了解用例/工作流程。 請參閱Dired 文檔 ...
[英]How to list files in emacs
我想列出目錄中的文件,如下圖所示 來源: https : //stackoverflow.com/a/49472114/6747994作者: @ocodo許可證: CC-BY-SA 4.0 ...
[英]Emacs `dired` error when renaming file using Helm: `apply` wrong number of arguments
我不經常使用dired模式,但是嘗試了一些練習。 因此,我創建了一些空的練習文本文件,並用通常的下沉快捷鍵進行了標記。 然后,我嘗試使用“ R”命令重命名文件-以便將文件移動到新文件夾。 我收到這個奇怪的錯誤,該操作未成功。 嘗試使用“ C”命令進行復制時遇到了相同的錯誤。 但是 ...
[英]How to hide one dot (current directory) in Dired mode
雙點 ( .. ) 很有用,因為它允許向上導航一層。 但我不需要單點......是否可以隱藏它? Windows 7、Emacs 25.1、Dired+。 ...
[英]Emacs, Dired+. What mean one dot in dired mode?
窗口7,Emacs 25.1,Dired +模式。 路徑:d:\\ temp \\ test \\ test2 \\ test3 \\ 在文件夾test3中有3個文件:file1.txt,file2.txt,file3.txt。 當我在文件夾test3中並單擊兩個點時,我處於一 ...
[英]How can I create a file in a sub-directory in Emacs Dired?
我使用dired瀏覽帶有i的目錄及其子目錄( dired-maybe-insert-subdir ) 當光標位於子目錄中並且我執行Cx Cf ,默認目錄是緩沖區的根目錄,是否可以更改該目錄? 因此,如果我訪問/ foo / bar,然后在bar的緩沖區中插入/ foo / bar / ...
[英]Emacs Dired not working - Searching for program: no such file or directory, ls
當我打開 emacs 並輸入Cx Cf RET時,迷你緩沖區會說 當我在輸入任何目錄名稱后按回車鍵時也會發生這種情況。 當我使用Cx d時,Dired 也不起作用。 查找文件工作正常。 我正在使用 mac os x 10.11 和 GNU Emacs 24.5.1。 有什么東西可以放在.ema ...
[英]Emacs disable mouse-1 in dired
在Dimac模式下的Emacs 23.2.1中,mouse-1(鼠標左鍵) visit file in other window執行visit file in other window 。 當光標懸停在文件名上時,它也會改變手指的形狀並突出顯示文件名。 如何禁用visit file和文件名突 ...
[英]Emacs Dired: Retain lines instead of dired-do-kill-lines?
您可以通過鍵入k或運行命令dired-do-kill-lines輕松殺死Emacs Dired 中標記的行。 是否也可以保留標記的文件並殺死其余的文件? ...
[英]open a zipped file in Dired
我正在尋找一種打開壓縮文件中的文件的方法,因為Vim可以使用其默認配置來做到這一點。 Dired僅顯示壓縮文件列表,但在vim可以執行的情況下無法打開它。 您知道如何使其像Vim一樣起作用嗎? 那我可以給你小費嗎? ...
[英]Emacs Dired - C-x C-f to create a new file gives me suggestions of existing files
我正在嘗試在emacs中以dired模式創建一個文件。 我在正確的目錄中,當我按照其他地方的建議按Cx Cf並鍵入'img'(這是我要創建的文件的名稱)時,它會嘗試從其他目錄中查找現有文件,包括模式'img' 。 然后我就像我按下回車一樣卡住,它將打開包含其他目錄中的模式'img'的第一個建 ...
[英]Org-contacts and dired+
我在emacs 24.5.1中使用org-contacts和dired +有問題。 當組織聯系人或Dired +活動Dired僅顯示文件名時,沒有權限,大小和所有者。 當我在.emacs文件中評論組織聯系人或dired +時,一切都很好。 可能有人知道為什么會發生這種情況,我需要怎么做才能 ...
[英]Evil in dired/dired+ keymapping
我正在尋找一種像vim netrw一樣通過使用'h''j''k''l'在dired / dired +和邪惡模式下導航的方法。 我找到了一些輕快的短語並加以應用,但這些根本不起作用。 例如, Emacs只是運行“ dired-do-kill-lines”,好像它無法識別我的配 ...
[英]Launch magit directly from ido in Emacs
我想推出magit直接從IDO 。 即,我想用ido-find-file啟動ido,導航到我要運行magit的目錄,按一些組合鍵,例如Cx g ,並退出ido並在該目錄中打開magit。 我目前只是按Cd打開目錄中的dired,然后按Cx g打開magit,但我想避免使用多余的Cd 。 ...