expression

On a whim.

Theme: judgment Keyword: fancy

means

Acting on a sudden desire rather than a considered plan.

Example

She bought a train ticket to the coast on a whim.