fzf image previews

This commit is contained in:
andrzej 2024-10-14 21:40:08 +02:00
parent 7cb2f9cea3
commit 9e801ee1bc
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,15 @@ alias devsesh="$HOME/scripts/tmux-dev-session.sh"
alias slides="nohup ${HOME}/scripts/hyprland-slideshow.sh"
alias ls="ls --color=auto"
alias fzf='fzf --preview='\''
if file --mime-type {} | grep -qF '\''image/'\''; then
kitty icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {}
else
batcat --color=always {}
fi
'\'''
export SUDO_EDITOR="nvim"
##suffix aliases