To think about or plan for future events before dealing with what is happening now.
"I'm already imagining our wedding, but I think I'm getting ahead of myself — we've only been on two dates."
But I'm getting ahead of myself.
— Common self-correction phrase; notably used by Barack Obama in various speeches and interviews