Because I was thinking of something like that for a long time.

In bash/zsh (add it to your .rc ):

Using this function it’s possible to open all text files of a project at once: