train of thought

noun
  1. 1

    The flow of thinking.

Source: https://en.wiktionary.org/wiki/train%20of%20thought