The way I manage it in the short-term is the two-week test. If I want a thing, and that thing is >10% of my remaining disposable income (which I budget every two weeks), I tell myself "if I still want this in two weeks, I will buy it or start saving for it then."
Example: I really wanted the custom truly-wireless IEMs that Bragi makes. However, they are $599; not a cheap purchase at about 50% my two-week disposable. Instead of buying them outright (I could, but that would affect disposable income for going out and stuff), I sat on it for several months while I tried other headphones. The urge to get them didn't go away, so I got them. What would have been an impulse purchase became a planned and extremely-worthwhile purchase.
My self-control isn't bulletproof, however. Our five-year old vacuum stopped working the other day. I tried repairing it several times, all to no avail. I got tired of having dirty carpet (our apartment is all carpet except for wet areas), so I went to Best Buy and got a new one. While I was there, I saw a Bissell Carpet Cleaner that looked really useful, as our carpets haven't been cleaned since we moved in three years ago. Both combined were about $500, but I impulse-bought it because dirty flooring drives me nuts. While I'm really happy with this purchase (there are few things more satisfying than seeing all of the gunk in your carpet vacuumed up), it was definitely impulsive, and my more responsible self should have waited on it.
For disposable income purchases, we budgeted out income, necessary expenses, savings, travel, etc., everything that requires long-term planning. The surplus (a fairly small portion) we then divided out into a per-person, per-day allowance.
I use a simple Google Form to record discretionary purchases, tracking the results in a Sheet, to account for whether this discretionary budget has a positive balance.
This has the nice effect of translating dollar values into time values, and giving a reference point for trading off the relative hedonic value of small frequent purchases vs. large infrequent purchases.
I think a lot of us suffer from this at different scales. I've always found it difficult to work on things that will pay off in the future, even if I plan something I just don't seem to be able to carry through a long term project to the end unless I'm in an environment where there's accountability such as deadlines on projects at work.
I'm very prone to instant gratification, which is why I can easily lose most of my spare time in video games, netflix, youtube etc.