From e860d9a8f7ca586fa88ba2f0b1325377ebb14615 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 8 Oct 2020 01:53:07 -0400 Subject: dwmblocks scripts --- .config/vifm/vifmrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.config/vifm/vifmrc') diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 25da74f..b7ea213 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -137,7 +137,7 @@ set rulerformat= " CSV/Excel -filetype *.csv,*.xlsx libreoffice %c %i +filetype *.xlsx libreoffice %c %i fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw " HTMLs @@ -145,8 +145,8 @@ fileviewer *.html w3m -dump %c filextype *.html,*.htm firefox %f 2>/dev/null & " Text based files -filetype nvim -fileviewer env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p +filetype <*.csv,text/*> nvim +fileviewer <*.csv,text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p " PDFs @@ -260,7 +260,7 @@ nnoremap gb :file &l nnoremap yd :!echo %d | xclip -i -selection clipboard %i " Yank current file path into the clipboard -nnoremap yf :!echo %c:p | xclip -i -selection clipboard %i +nnoremap yf :!echo %c:p | xsel -b %i " Mappings for faster renaming nnoremap I cw @@ -270,6 +270,9 @@ nnoremap A cw " Extract an archive nnoremap x :!/home/siddharth/bin/utils/extract %f & +" Share Files with dropbox + nnoremap s :!dbshare %d/%b & + " Make a new directory nnoremap mkd :mkdir "}}} -- cgit v1.2.3