edit: okay done
http://i.imgur.com/n12DYUu.png
Two examples in case you have a preference w/ or w/o the preview:
fzf_insert_directory_preview() { local dir dir=$(find . -type d -not -path '*/\.*' | fzf --height 40% --reverse --preview 'tree -C {} | head -200') if [[ -n $dir ]]; then READLINE_LINE="${READLINE_LINE}${dir}" READLINE_POINT=$((${#READLINE_LINE})) fi } fzf_insert_directory() { local dir dir=$(find . -type d -not -path '*/\.*' | fzf --height 40% --reverse) if [[ -n $dir ]]; then READLINE_LINE="${READLINE_LINE}${dir}" READLINE_POINT=$((${#READLINE_LINE})) fi } bind -x '"\ey": fzf_insert_directory_preview' # alt-y bind -x '"\et": fzf_insert_directory' # alt-t
Sent from a LLM
edit: okay done
http://i.imgur.com/n12DYUu.png
Two examples in case you have a preference w/ or w/o the preview:
http://ix.io/4rtn/shSent from a LLM