From 41c1df54d4bbe3e07c16ed0db9821622cc13f5e4 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 28 Jun 2025 01:37:44 +0900 Subject: modified lf/cleaner, modified lf/scope, modified bin/fzffiles, modified bin/lfub, deleted bin/unewsboat --- ar/.local/bin/fzffiles | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ar/.local/bin/fzffiles') diff --git a/ar/.local/bin/fzffiles b/ar/.local/bin/fzffiles index 5dd97bc..d092596 100755 --- a/ar/.local/bin/fzffiles +++ b/ar/.local/bin/fzffiles @@ -10,7 +10,14 @@ IFS=' # Get the list of selected files with key bindings for specific paths files=$(fzf-tmux \ --header "^a pwd ^b public ^d .dotfiles ^f configs ^g git ^h home ^k desktop ^r scripts ^s suckless ^u staged files ^v private ^/ help" \ - --preview 'if [ -d {} ]; then exa --color=always --long --all --header --icons --git {}; elif [ -L {} ]; then file -h {}; else bat --color=always --style=header,grid --line-range=:500 {}; fi' \ + --preview "target=\$(readlink -f {}) && + if [ -d \"\$target\" ]; then + exa --color=always --long --all --header --icons --git \"\$target\" + elif [ -f \"\$target\" ]; then + bat --color=always --style=header,grid --line-range=:500 \"\$target\" + else + file -h {} + fi" \ --reverse \ --query="$1" \ --multi \ -- cgit v1.2.3