vifm: Move external file operations to localleader prefix

This commit is contained in:
Marty Oehme 2023-03-19 14:55:26 +01:00
parent 3795b20a59
commit 384ff59a3f
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -276,15 +276,15 @@ nnoremap zc zm
" external commands
" extract currently selected file(s)
noremap xx :!atool -x %f<cr>
noremap ,xx :!atool -x %f<cr>
" compress currently selected file(s)
noremap xc :!atool -a %c:r.tar.gz %f<cr>
noremap ,xc :!atool -a %c:r.tar.gz %f<cr>
" archive currently selected file(s)
noremap xa :!atool -a %c:r.tar %f<cr>
" archive currently selected file(s)
noremap xz :!atool -a %c:r.zip %f<cr>
noremap ,xa :!atool -a %c:r.tar %f<cr>
" zip currently selected file(s)
noremap ,xz :!atool -a %c:r.zip %f<cr>
" combine selected PDFs into single one (named output.pdf)
noremap gc :!pdftk %f cat output output.pdf
noremap ,pc :!pdftk %f cat output output.pdf
" fzf movements
nnoremap <space>f :fzf<cr>
@ -294,8 +294,8 @@ nnoremap <space>F :grep<space>
" preview thumbnails of current folder
" select thumbnails with m/M in nsxiv
" to generate a filtered view on them
nnoremap <space>t :!vifm-thumbnailer -t %u %c<cr>
nnoremap <space>T :!vifm-thumbnailer -r -t %u %c<cr>
nnoremap ,t :!vifm-thumbnailer -t %u %c<cr>
nnoremap ,T :!vifm-thumbnailer -r -t %u %c<cr>
" allows preview to work for normal view and single pane view
noremap <silent> w : if &quickview && !layoutis('only')