之前的话我都是在 Dired 里 mark 相关文件,然后再在 minibuffer 里找到 dst ,如果 src 和 dst 离得比较远,整个过程会非常枯燥、低效,今天尝试 Google 了一下这个问题 打开两个 Dired 窗口,分别对应 src 目录与 dst 目录 2. 在 src 里 mark 文件后,按 C 拷贝时,提示的目录默认就是 dst 3. 直接回车即可复制文件 设置 (setq dired-dwim-target t) 即可使用上述功能。Emacs is amazing! script-commands [3] 这个问题: https://emacs.stackexchange.com/questions/5603/how-to-quickly-copy-move-file-in-emacs-dired
在最近一段时间的使用过程中,发现 Evil 虽然在某些时候要比 Emacs 的操作更方便,但是在一些 Emacs 的默认使用过程中,还是 Emacs 的更好用,比如说 dired 中。 (use-package evil :config (evil-set-initial-state 'dired-mode 'emacs)) 这样就可以让我们在使用过程中更适合的方式操作了。
project-query-replace-regexp,在项目中执行正则替换 • project-shell-command,执行 shell 命令 • project-eshell,在根目录打开 eshell • project-dired ,在根目录打开 dired • project-find-dir,在项目指定目录打开 dired • project-switch-to-buffer,切换到项目中已经打开的 buffer 扩展命令
恢复光标移动 关闭 evil 功能 在最近一段时间的使用过程中,发现 Evil 虽然在某些时候要比 Emacs 的操作更方便,但是在一些 Emacs 的默认使用过程中,还是 Emacs 的更好用,比如说 dired (use-package evil :config (evil-set-initial-state 'dired-mode 'emacs)) 这样就可以让我们在使用过程中更适合的方式操作了。
例如,给定以下命令: ls --help | grep "dired" 这会过滤ls命令帮助文本的输出并查找“dired”,并将它们输出到标准输出: -D, --dired generate output designed for Emacs' dired mode 正则表达式概述 虽然简单的模式匹配对于某些过滤任务已经足够,但grep真正的强大之处在于它能够使用正则表达式进行复杂的模式匹配。
memory-report • 新增命令 submit-emacs-patch • 在没有设置 LANG 时,默认采用 UTF8 编码,之前是 ISO-8859-1 特定 mode 变更 • 新配置 dired-kill-when-opening-new-dired-buffer 默认 false • 新配置 dired-compress-directory-default-suffix 控制压缩目录的默认后缀,nil 表示 tar.gz • 新配置 dired-copy-dereference
-D, --dired 产生适合 Emacs 的 dired 模式使用的结果。 -f 不进行排序,-aU 选项生效,-lst 选项失效。
-D,--dired 产生适合 Emacs 的 dired 模式使用的结果。
-D, –dired 产生适合 Emacs 的 dired 模式使用的结果 -f 对输出的文件不进行排序,-aU 选项生效,-lst 选项失效 -g 类似 -l,但不列出所有者 -G, –no-group
显示符号链接文件本身,而不显示其所指向的目录或文件; -D, --dired:以Emacs的dired模式输出; -f:此参数的效果和同时指定“aU”参数相同,并关闭“-ls --color”参数效果
-D, –dired 产生适合 Emacs 的 dired 模式使用的结果 -f 对输出的文件不进行排序,-aU 选项生效,-lst 选项失效 -g 类似 -l,但不列出所有者 -G, –no-group
显示符号链接文件本身,而不显示其所指向的目录或文件; -D, --dired:以Emacs的dired模式输出; -f:此参数的效果和同时指定“aU”参数相同,并关闭“-ls --color”参数效果
-D, –dired 产生适合 Emacs 的 dired 模式使用的结果 -f 对输出的文件不进行排序,-aU 选项生效,-lst 选项失效 -F, –classify 加上文件类型的指示符号
-D, –dired 产生适合 Emacs 的 dired 模式使用的结果 -f 对输出的文件不进行排序,-aU 选项生效,-lst 选项失效 -g 类似 -l, 但不列出所有者 -G, –no-group
-D, –dired 产生适合 Emacs 的 dired 模式使用的结果 -f 对输出的文件不进行排序,-aU 选项生效,-lst 选项失效 -g 类似 -l,但不列出所有者 -G, –no-group
directory list directory entries instead of contents, and do not dereference symbolic links -D, --dired generate output designed for Emacs' dired mode -f do not sort, enable -aU, disable -ls --color
WHEN 可以是 “never”(默认)、”always”或”auto”其中之一 -d, –directory 当遇到目录时列出目录本身而非目录内的文件 -D, –dired 产生适合Emacs 的dired
more info below -d, --directory list directories themselves, not their contents -D, --dired generate output designed for Emacs' dired mode -f do not sort
在 Dired 中标记某些文件,再将它们添加到正在撰写的电子邮件当中。Dired 可以逐个标记条目,也可以使用正则表达式和其他高级命令。 记录一组以 Dired 为起点的操作(「键盘宏」),跳转至特定文件,执行某些变更、返回文件管理器,再在下一个文件中重复这个过程。 在以上各种用例中,用户完全不需要学习任何新知识。
shell-mode,新写的 shellcop[13] 插件可以根据 shell output 的文本内容,来快速跳转文件 • counsel + ivy • 收发邮件使用 gnus[14] • 使用 dired