summaryrefslogtreecommitdiff
path: root/.config/vifm/vifmrc
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
commite860d9a8f7ca586fa88ba2f0b1325377ebb14615 (patch)
tree22775fb8343e95ae56b26a8207b6a31c857ee419 /.config/vifm/vifmrc
parentc295d8331ff5193cb97b1e3f6b15836654b010cc (diff)
dwmblocks scripts
Diffstat (limited to '.config/vifm/vifmrc')
-rw-r--r--.config/vifm/vifmrc11
1 files changed, 7 insertions, 4 deletions
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 <text/*> nvim
-fileviewer <text/*> 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 &<cr>l
nnoremap yd :!echo %d | xclip -i -selection clipboard %i<cr>
" Yank current file path into the clipboard
-nnoremap yf :!echo %c:p | xclip -i -selection clipboard %i<cr>
+nnoremap yf :!echo %c:p | xsel -b %i<cr>
" Mappings for faster renaming
nnoremap I cw<c-a>
@@ -270,6 +270,9 @@ nnoremap A cw
" Extract an archive
nnoremap x :!/home/siddharth/bin/utils/extract %f &<cr>
+" Share Files with dropbox
+ nnoremap s :!dbshare %d/%b &<cr>
+
" Make a new directory
nnoremap mkd :mkdir<space>
"}}}