1 技巧
分享一下平时使用 dired-mode
批量修改文件名的技巧:
C-x C-f
指定的文件目录,进入dired-mode
C-x C-q
dired-toggle-read-only
: Edit Dired buffer with Wdired.- 批量修改,手段有
- 使用
query-replace
批量修改文件名 - 使用evil的多行编辑模式
- 使用
rectangle-command
:C-x r t
string-rectangle
- 使用
C-c C-c
提交修改或C-c C-k
放弃修改

Figure 1: 使用 rectangle-command
进行批量修改

Figure 2: 使用 evil的多行编辑模式进行批量修改
