Just like in visual studio where is possible to close a solution and after to open it and this is open right to last module/procedure/function that you worked on?
What i do is to put a comment on top of main, saying what i last did and what i should do next.
I know this is not perfect, but it helps me to keep my overview.
I get it, but is not so "special" like requested!
PS. I do that for years in a text file of every project (good for keeping track of my work over time, and also a to do list) but this is completely another thing!