From 3b814fb4f422da66f655af4e62287cd535121ea4 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 23 Feb 2020 02:56:07 +0100 Subject: [PATCH] setup pistol --- newsboat/{ => .local/bin}/linkhandler | 0 pistol/.config/pistol/pistol.conf | 3 +++ vifm/.config/vifm/vifmrc | 31 ++++----------------------- 3 files changed, 7 insertions(+), 27 deletions(-) rename newsboat/{ => .local/bin}/linkhandler (100%) create mode 100644 pistol/.config/pistol/pistol.conf diff --git a/newsboat/linkhandler b/newsboat/.local/bin/linkhandler similarity index 100% rename from newsboat/linkhandler rename to newsboat/.local/bin/linkhandler diff --git a/pistol/.config/pistol/pistol.conf b/pistol/.config/pistol/pistol.conf new file mode 100644 index 0000000..a87bdd3 --- /dev/null +++ b/pistol/.config/pistol/pistol.conf @@ -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 diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index 1f24345..5de9946 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -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 " ------------------------------------------------------------------------------