#!/bin/bash
clear >&2

export NO_SPLASHBOARD=1

dirs=(01-ghostty 02-outils 03-starship 04-splashboard 05-mise-fnox 06-chezmoi 07-paillettes)
labels=("Ghostty" "Outils" "Starship" "Splashboard" "Mise et fnox" "Chezmoi" "Des paillettes")

choice=$(gum choose "${labels[@]}" --header "Choisis une démo")

for i in "${!labels[@]}"; do
    if [ "${labels[$i]}" = "$choice" ]; then
        echo "cd ${dirs[$i]}"
        break
    fi
done
