This commit is contained in:
2024-05-19 22:51:26 +10:00
parent 40b0943fff
commit 9603b7bedf

2
repo
View File

@ -29,7 +29,7 @@ repos=$(find "${REPOSITORY_BASE}" -name '.git' | sed "s|${REPO_BASE}/||" | sed '
# selected=$(echo "${repos}" | gum filter --header="Pick a repo" --prompt="Repo: " --height=20 --value "github.com/${1}") # selected=$(echo "${repos}" | gum filter --header="Pick a repo" --prompt="Repo: " --height=20 --value "github.com/${1}")
selected="$(echo "${repos}" | fzf -1 -0 -q "${REPO_DEFAULT_SEARCH_PREFIX}${1}" --prompt="Repo: ")" selected="$(echo "${repos}" | fzf -1 -0 -q "${REPO_DEFAULT_SEARCH_PREFIX}${1}" --prompt="Repo: ")"
echo "$REPOSITORY_BASE/$selected" echo "${REPOSITORY_BASE}/${selected}"
# TODO: It could be super nice to bias in favour of more frequently selected options. # TODO: It could be super nice to bias in favour of more frequently selected options.
# For the last 500 uses (or so): # For the last 500 uses (or so):