Congrats! This is very inspiring.
I agree that it's definitely a thought battle. I got into the habit over many years, the second I would think of something that I wanted to eat I would jump up run to the kitchen and devour it. Then I'd keep going. It's was on impulse and the more I gave into it the harder it became to resist until it became an automatic response.
I also have found distraction very helpful. I find if I am getting into a good book or game, drawing or writing, etc then I can get absorbed in it and not even notice any cravings. Even if I do have cravings that come through I try my best to push them aside and persist with whatever it was I was doing. Not easy, it's very uncomfortable sitting there trying to ignore an impulse that's dragging attempting to pull you into the kitchen like a huge magnet but I think it will become a habit eventually.