zgen load seletskiy/zsh-favorite-directories
bindkey -v '^_' "favorite-directories:cd"
favorite-directories:get() {
echo <name> <depth> <path>
...
}
Like:
favorite-directories:get() {
echo sources 1 ~/sources
echo zsh 2 ~/.zsh/.zgen
echo vim 2 ~/.vim
}
favorite-directories:on-cd() {
prompt_lambda17_precmd
zle reset-prompt
}