From d4ee27174050212947f6c5d1e686c9dcee86974e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 13 Jul 2022 12:14:39 +0200 Subject: [PATCH] zsh:alias:qmv: Use `destination-only` edit format Use the `destination-only` edit format when renaming files with `qmv`. `dual-column` mode got on my nerves as I tend to forget with side is source and which is destination. On top, the `swap` option breaks as soon as I change the length of a filename. `single-column` mode is useless for me, as I tend to make changes in visual block mode. --- .config/zsh/zshrc.d/30-alias.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/zsh/zshrc.d/30-alias.zsh b/.config/zsh/zshrc.d/30-alias.zsh index ae09dd1..01b8886 100644 --- a/.config/zsh/zshrc.d/30-alias.zsh +++ b/.config/zsh/zshrc.d/30-alias.zsh @@ -38,8 +38,9 @@ fi add_flags feh -. # Use multiple jobs when making add_flags make -j - # Bulk renaming with all files and spaces between swapped columns - add_flags qmv -Ao swap,spaces + # Bulk renaming with (almost) all files and directly modifying the + # destination. + add_flags qmv -Af destination-only # XDG Base Directory Specification add_flags tmux -f "${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf"