Vaccume leak, dirty throttle or the Green Coolant Temp Sender
They often get overlooked and they do contol some of the idle functions, could be worth looking into
Other one could be the infamous coilpacks, Ive seen instances of them arking off of the metal covering at tickover but performing perfectly well when the trottle is applyed