Yep leaf miners. There are two kinds that infest tomato leaves -- tomato leaf miner moth caterpillars and (I believe) Pepper leaf miner fly maggots.
The winding trail type is the work of the fly maggots and they are more prevalent in the hotter regions as far as I know -- at least I don't get them here, though I do get the moth -- though you didn't say where you are.
If you look closely, there should be a bump at the end of the trail where the culprit is hiding. You can squish them, cut them out, or remove the entire leaf. (removing the entire leaf or trail marked portion of the leaves make it easier to spot new infestations). Be sure to completely dispose of them -- sealed in plastic bags, burned, etc.
Learning never ends because we can share what we've learned. And in sharing our collective experiences, we gain deeper understanding of what we learned.