as/if/when the spirit moves you

if the spirit moves (one)

If one feels compelled to do something. Laura's grades are so bad because she only comes to class if the spirit moves her. I usually stay home on weekends, but I'll go out if the spirit moves me.
See also: if, move, spirit
Farlex Dictionary of Idioms.

(do something) as/if/when the spirit ˈmoves you

(do something) when you want to, rather than when you have to or are forced to: She works in the garden occasionally, when the spirit moves her.
See also: if, move, spirit
Farlex Partner Idioms Dictionary
See also:
  • if the spirit moves (one)
  • when the spirit moves (one)
  • as the spirit moves (one)
  • the spirit moves (one)
  • the spirit moves someone
  • can't but
  • can't help but (do something)
  • can't help but do
  • cannot help but
  • cannot choose but