1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

setup pistol

This commit is contained in:
Ryan Kes 2020-02-23 02:56:07 +01:00
parent 2ebb412c5e
commit 3b814fb4f4
3 changed files with 7 additions and 27 deletions

View File

@ -0,0 +1,3 @@
text/* bat --paging=never --color=always %s
text/html w3m -T text/html -dump %s
inode/directory ls -l --color=always %s

View File

@ -159,6 +159,7 @@ command! FZFfind :set noquickview | :execute 'goto "'.system('find | fzf --heigh
" You can also add %CLEAR if you want to clear screen before running FUSE
" program.
" Inline previews
fileviewer *.pdf
\ vifmimg pdfpreview %px %py %pw %ph %c
\ %pc
@ -192,6 +193,8 @@ fileviewer *.ico
fileviewer *.mp3 mp3info
fileviewer *.flac soxi
fileviewer *.zip,*.tgz,*.tar.gz,*.rar pistol %c
" Man page
filetype *.[1-8] man ./%c
fileviewer *.[1-8] man ./%c | col -b
@ -229,46 +232,19 @@ filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
\ zip -sf %c | less,
\ {Extract here}
\ tar -xf %c,
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
" ArchiveMount
filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
\ {Mount with archivemount}
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
fileviewer *.tgz,*.tar.gz tar -tzf %c
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
fileviewer *.tar.txz,*.txz xz --list %c
fileviewer *.tar tar -tf %c
" Rar2FsMount and rar archives
filetype *.rar
\ {Mount with rar2fs}
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
fileviewer *.rar unrar v %c
" IsoMount
filetype *.iso
\ {Mount with fuseiso}
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
" SshMount
filetype *.ssh
\ {Mount with sshfs}
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
" FtpMount
filetype *.ftp
\ {Mount with curlftpfs}
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
" Fuse7z and 7z archives
filetype *.7z
\ {Mount with fuse-7z}
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
fileviewer *.7z 7z l %c
" Office files
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ods libreoffice %f %i &
fileviewer *.doc catdoc %c
fileviewer *.docx docx2txt.pl %f -
fileviewer *.odt,*.ods,*.odp,*.sxw odt2txt %c
@ -299,6 +275,7 @@ fileviewer *.odt,*.ods,*.odp,*.sxw odt2txt %c
" for unknown file types.
" For *nix:
filetype * gio open
fileviewer * pistol | head -n 50
" ------------------------------------------------------------------------------