Expresses an ongoing action or a continuing state. In this case, it is used to talk about the process of searching.おつまみを 探しているとき、かわいい お菓子を 見つけました。
動詞のた形 + らN5
Expresses when an action occurs and then something happens immediately after, or when checking/examining, something is discovered.パッケージを よく 見たら、「犬の お菓子」と 書いて ありました。
Plain form + と思うN5
Expresses the speaker's subjective thoughts or feelings about something.「デザインが 面白い」と 思って、買いました。
Noun + と + いっしょにN5
Used to express the action of doing something together with someone/something.ビールと いっしょに 食べました。
Verb in て-form + ありますN4
Expresses the state/result of a completed action (often used with objects, things).「犬の お菓子」と 書いて ありました。