Add some configuration
Added config for: - Bat - Lf
This commit is contained in:
parent
dbd63f64a3
commit
4accde5ee0
11 changed files with 4611 additions and 0 deletions
18
config/lf/preview.sh
Executable file
18
config/lf/preview.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Five arguments are passed to the file:
|
||||
# (1) current file name
|
||||
# (2) width
|
||||
# (3) height
|
||||
# (4) horizontal position
|
||||
# (5) vertical position of preview pane
|
||||
|
||||
case "$1" in
|
||||
jpg | jpeg | png) vimiv "$1" ;;
|
||||
*.tar*) tar tf "$1" ;;
|
||||
*.zip) unzip -l "$1" ;;
|
||||
*.rar) unrar l "$1" ;;
|
||||
*.7z) 7z l "$1" ;;
|
||||
*.pdf) pdftotext "$1" - ;;
|
||||
*) bat --force-colorization --line-range ":$3" --pager never --terminal-width "$2" "$1" ;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue