Difference between revisions of "How to use atool to work with archives"

From Vifm Wiki
Jump to: navigation, search
(Initial version of the page)
 
m (Add support for multiple archives at once.)
 
Line 7: Line 7:
 
         \ als %f | less
 
         \ als %f | less
 
" silently extract selected archives in background
 
" silently extract selected archives in background
command extract aunpack %f &>/dev/null &
+
command extract aunpack -e %f &>/dev/null &
 
" map extraction command
 
" map extraction command
 
nnoremap ex :extract<CR>
 
nnoremap ex :extract<CR>

Latest revision as of 05:08, 22 January 2020

Example configuration[edit]

" view contents of archive files on opening them
filetype *.7z,*.bz2,*.cab,*.cpio,*.deb,*.gz,
        \*.msi,*.pkg,*.rar,*.tar,*.tgz,*.xz,*.zip
        \ als %f | less
" silently extract selected archives in background
command extract aunpack -e %f &>/dev/null &
" map extraction command
nnoremap ex :extract<CR>

Source[edit]

Issue #386 on GitHub