How do you make that history? Something like an alias for cd that pushes them onto a queue?
alias dirs='dirs -v'
alias '1'='cd -'
alias '2'='cd -2'
alias '3'='cd -3'
etc.Doesn't seem like it would make a big difference, but it's very fluid and adopts well to whatever "you happen to working on in the moment."