This means you want to do something. It shows you have wanted it for a while. It is a stronger wish than just saying "I want to do it."
へに。
I've been thinking that I'd like to travel to Japan someday.
。
For a long time, I had been wanting to buy that book.
。
I'm not particularly thinking that I want to change jobs.
、、。
I've been thinking I'd like to study abroad in the future, so I'm saving money.
、。
My friend, who has been wanting to become a musician, practices every day.