diff --git a/home/.bashrc-bloated b/home/.bashrc-bloated index be24f33..344cd3e 100644 --- a/home/.bashrc-bloated +++ b/home/.bashrc-bloated @@ -60,7 +60,7 @@ export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info export FZF_DEFAULT_COMMAND="fd --type f --follow --hidden --exclude .git" export FZF_CTRL_T_OPTS="--no-height --preview-window 'left:60%' --preview '$HOME/.local/bin/garbage/preview {} 2>/dev/null'" export FZF_CTRL_T_COMMAND="fd --follow --hidden --exclude .git" -export FZF_ALT_C_OPTS="--preview 'tree -La 1 -C --dirsfirst {} 2>/dev/null'" +export FZF_ALT_C_OPTS="--preview 'exa -1a --color always --icons {} 2>/dev/null'" export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git" export FZF_TMUX=1 # ibus diff --git a/home/.config/fish/conf.d/env.fish b/home/.config/fish/conf.d/env.fish index 3c732ac..d268039 100644 --- a/home/.config/fish/conf.d/env.fish +++ b/home/.config/fish/conf.d/env.fish @@ -66,7 +66,7 @@ set -gx FZF_DEFAULT_OPTS "--multi --layout=reverse --inline-info set -gx FZF_DEFAULT_COMMAND "fd --type f --follow --hidden --exclude .git" set -gx FZF_CTRL_T_OPTS "--no-height --preview-window 'left:60%' --preview '$HOME/.local/bin/garbage/preview {} 2>/dev/null'" set -gx FZF_CTRL_T_COMMAND "fd --follow --hidden --exclude .git" -set -gx FZF_ALT_C_OPTS "--preview 'tree -La 1 -C --dirsfirst {} 2>/dev/null'" +set -gx FZF_ALT_C_OPTS "--preview 'exa -1a --color always --icons {} 2>/dev/null'" set -gx FZF_ALT_C_COMMAND "fd --type d --follow --hidden --exclude .git" set -gx FZF_TMUX 1 # ibus diff --git a/home/.config/nnn/plugins/fzcd b/home/.config/nnn/plugins/fzcd index 71d7cc1..92cc571 100755 --- a/home/.config/nnn/plugins/fzcd +++ b/home/.config/nnn/plugins/fzcd @@ -8,7 +8,7 @@ . "$(dirname "$0")"/.nnn-plugin-helper if [ "$(cmd_exists fzf)" -eq "0" ]; then - sel=$(fd --type d --follow --hidden --exclude .git | fzf --preview 'tree -La 1 -C --dirsfirst {} 2>/dev/null') + sel=$(fd --type d --follow --hidden --exclude .git | fzf --preview 'exa -1a --color always --icons {} 2>/dev/null') else exit 1 fi diff --git a/home/.config/vifm/scripts/preview_vifm b/home/.config/vifm/scripts/preview_vifm index cdb1210..0fec6da 100755 --- a/home/.config/vifm/scripts/preview_vifm +++ b/home/.config/vifm/scripts/preview_vifm @@ -34,7 +34,8 @@ case "$1" in then echo "" else - tree "$1" -La 1 -C --dirsfirst + echo "\0" + exa -1a --color always --icons "$1" fi ;; application/zip | application/x-tar | application/x-rar | application/x-7z-compressed | application/x-xz | application/x-bzip2 | application/x-gzip) atool -l -q "$1" | tail -n +3 | awk -F' ' '{print $NF}' ;; diff --git a/home/.config/vifm/vifmrc b/home/.config/vifm/vifmrc index 0c84b13..1f4e8ee 100644 --- a/home/.config/vifm/vifmrc +++ b/home/.config/vifm/vifmrc @@ -151,7 +151,7 @@ command! fzf : let $FZF_RES = term('fzf --preview-window left --preview "$HOME/. \| endif " fzf dir -command! fzd : let $FZF_RES = term('fd --type d --follow --hidden --exclude .git | fzf --preview "tree -La 1 -C --dirsfirst {} 2>/dev/null" 2> /dev/tty') +command! fzd : let $FZF_RES = term('fd --type d --follow --hidden --exclude .git | fzf --preview "exa -1a --color always --icons {} 2>/dev/null" 2> /dev/tty') \| if $FZF_RES != '' \| cd $FZF_RES \| endif diff --git a/home/.config/zsh/.zshenv b/home/.config/zsh/.zshenv index 8ea6b4d..4cef811 100644 --- a/home/.config/zsh/.zshenv +++ b/home/.config/zsh/.zshenv @@ -56,7 +56,7 @@ export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info export FZF_DEFAULT_COMMAND="fd --type f --follow --hidden --exclude .git" export FZF_CTRL_T_OPTS="--no-height --preview-window 'left:60%' --preview '$HOME/.local/bin/garbage/preview {} 2>/dev/null'" export FZF_CTRL_T_COMMAND="fd --follow --hidden --exclude .git" -export FZF_ALT_C_OPTS="--preview 'tree -La 1 -C --dirsfirst {} 2>/dev/null'" +export FZF_ALT_C_OPTS="--preview 'exa -1a --color always --icons {} 2>/dev/null'" export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git" export FZF_TMUX=1 # ibus diff --git a/home/.elvish/rc.elv b/home/.elvish/rc.elv index 080854c..61c6183 100644 --- a/home/.elvish/rc.elv +++ b/home/.elvish/rc.elv @@ -75,7 +75,7 @@ E:FZF_DEFAULT_OPTS = "--multi --layout=reverse --inline-info E:FZF_DEFAULT_COMMAND = "fd --type f --follow --hidden --exclude .git" E:FZF_CTRL_T_OPTS = "--no-height --preview-window 'left:60%' --preview '$HOME/.local/bin/garbage/preview {} 2>/dev/null'" E:FZF_CTRL_T_COMMAND = "fd --follow --hidden --exclude .git" -E:FZF_ALT_C_OPTS = "--preview 'tree -La 1 -C --dirsfirst {} 2>/dev/null'" +E:FZF_ALT_C_OPTS = "--preview 'exa -1a --color always --icons {} 2>/dev/null'" E:FZF_ALT_C_COMMAND = "fd --type d --follow --hidden --exclude .git" E:FZF_TMUX = 1 # ibus diff --git a/home/.local/bin/garbage/preview b/home/.local/bin/garbage/preview index e999706..0d05eb8 100755 --- a/home/.local/bin/garbage/preview +++ b/home/.local/bin/garbage/preview @@ -74,7 +74,7 @@ case "$1" in mimetype=$(file --dereference --brief --mime-type -- "$1") case "$mimetype" in inode/directory) - tree "$1" -La 1 -C --dirsfirst ;; + exa -1a --color always --icons "$1" ;; application/zip|application/x-tar|application/x-gzip) atool -l -q "$1" | tail -n +3 | awk -F' ' '{print $NF}' ;; image/vnd.djvu) diff --git a/home/.local/bin/scope.sh b/home/.local/bin/scope.sh index 76c9aeb..e985e49 100755 --- a/home/.local/bin/scope.sh +++ b/home/.local/bin/scope.sh @@ -29,7 +29,7 @@ case "$1" in mimetype=$(file --dereference --brief --mime-type -- "$1") case "$mimetype" in inode/directory) - tree -La 1 -C --dirsfirst "$1" ;; + exa -1a --color always --icons "$1" ;; application/zip|application/x-tar|application/x-gzip) atool -l -q "$1" | tail -n +3 | awk -F' ' '{print $NF}' ;; image/vnd.djvu)