And not just randomly thinking of things.
Figuring out what ingredients need to be used soon.
Then using that to plan out what meals will be made between now and the next shopping trip.
The figuring out what’s needed to make those.
Then figuring out what from that list you already have.
Then subtracting the “already have” list from the combined ingredient list of those planned meals.
Then writing that list down.