on the spur of the moment

adverbs

on impulse; without premeditation
"he decided to go to Chicago on the spur of the moment"; "he made up his mind suddenly"