So, honest question, is it just a super power to stay on task?
One of the most important keys to keep in mind is: always have a clear, delineated next action. Such that no thought is even necessary to know what you need to do. And plan the next step out /before/ you need to perform it, not in the moment of.
In fact, if I've got a project that I'm actually interested in, it'll consume weeks or even months of my time, to the point where I have to make an extra effort to break my focus on spend time doing other things (like going outside).