I had a gremlin like this. I resorted to swapping each ignition part until I found out it was the coil... So if you're going to start swapping parts, start with the cheap stuff first
I ended up installing a new 6al box and distributor that was totally unnecessary...