nvim: telescope fancification

This commit is contained in:
Daniel Lundin 2024-05-12 11:25:35 +02:00
parent 67e454b615
commit 8f4d7bb9a7
No known key found for this signature in database
7 changed files with 45 additions and 22 deletions

View file

@ -8,7 +8,7 @@ PATH="$HOME/bin:$PATH"
if [ -n "$1" ]; then
_file=$(readlink -f "$@")
else
FZF=${FZF:-"fzf-tmux -p 90%,50% -y 0"}
FZF=${FZF:-"fzf-tmux -p 90%,50% -y 0 --layout=reverse"}
_root=$(git rev-parse --show-toplevel 2>/dev/null || jj workspace root 2>/dev/null || pwd)
_store=$(echo "$_root" | sha1sum | cut -d ' ' -f 1)
_file=$( ( (fre --store_name "$_store" --sorted | xargs -n 100 ls -d 2>/dev/null || true) && fd --type f --hidden --follow --exclude .git --exclude .jj --ignore-file "${_root}/.gitignore" . "$_root") | cat -n | sort -k2 -k1n | uniq -f1 | sort -nk1,1 | cut -f2- | sed -e "s#^${_root}/##" | $FZF --no-sort)