可能形 => Potential form N4
と思う => I think N5
かと思ったら/かと思うと => just when; no sooner than ~ N2
ようと思う/ようと思っている => thinking of doing; planning to ~ N3
... にと思って => To do..., to let... N2
Purpose, target
[可能系「かのうけい」] => Can, be able to, be possible to N4
Can, Should, Must
と思っている => Plan to do something N4
Plan
…かと思ったら => just when; no sooner than ~ N2
Things do not match the prediction
てっきり...と思う => surely; certainly; without a doubt N3
~とおもう(~と思う)      => tend to, be about to… N4
Intent
~かと思いきや => contrary to expectations; or so we thought, but ~ N1
Things do not match the prediction
~ようとは思はなかった => I would not think to~ N1
Beyond expectations