vifm: Add batch file modification shortcut

Use `,r` to enter an $EDITOR instance in which you can
rename/delete/modify the files in the current directory. (using vidir
program under the hood)
This commit is contained in:
Marty Oehme 2024-07-20 16:45:55 +02:00
parent 9a7b8c824d
commit 9deacabbef
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -322,6 +322,9 @@ noremap ,pc :!pdftk %f cat output output.pdf
nnoremap ,t :!vifm-thumbnailer -t %u %c<cr>
nnoremap ,T :!vifm-thumbnailer -r -t %u %c<cr>
" batch rename or delete files in current dir
nnoremap ,r :!vidir<cr>
" allows preview to work for normal view and single pane view
noremap <silent> w : if layoutis('only')
\| if &lines + 50 < &columns | vsplit | else | split | endif