#!/bin/sh dwmc setlayoutex 2 search_dir="${1:-.}" preview='bat --style=header,numbers --color=always {}' fd_command="fd . \ --type file \ --hidden \ --follow \ --color always \ --exclude .git \ --exclude .github \ --exclude *.o \ --exclude *.pyc \ --exclude node_modules \ --full-path \"$search_dir\"" fzf_command="fzf \ --ansi \ --height=100% \ --keep-right \ --layout=reverse \ --scheme=path \ --multi \ --preview=\"[[ -n {1} ]] && $preview\" \ --preview-window='bottom,60%,border-top' \ --scrollbar='▐' --info=inline-right \ --margin=5%,10%,5%,10% --border=none \ --highlight-line \ --color=bg+:#b7c1e3 \ --color=bg:#d0d5e3 \ --color=border:#4094a3 \ --color=fg:#3760bf \ --color=gutter:#d0d5e3 \ --color=header:#b15c00 \ --color=hl+:#188092 \ --color=hl:#188092 \ --color=info:#8990b3 \ --color=marker:#d20065 \ --color=pointer:#d20065 \ --color=prompt:#188092 \ --color=query:#3760bf:regular \ --color=spinner:#d20065 \ --prompt='  ' --pointer=' ' --ellipsis='' " eval "$fd_command" | eval "$fzf_command" dwmc setlayoutex 0 exit 0