#!/usr/bin/env bash # Use the users warprc to navigate to files in known projects . "$HOME/.ad/lib/ad.sh" requireAd opt="$(cat "$HOME/.warprc" | cut -d: -f1 | sort | minibufferSelect "project> ")" if [[ -n "$opt" ]]; then dirname=$(cat "$HOME/.warprc" | grep "^$opt" | cut -d: -f2 | sed "s:~/:$HOME/:g") fname="$(cd "$dirname" && fd | minibufferSelect "file> ")" if [[ -n "$fname" ]]; then adCtl "open $dirname/$fname" fi fi