While it's not global, Omio does already let you buy tickets in most of Europe and North America, which is a wider reach than Trainline or Rail Europe, and they're expanding. For the route variety and prices it finds, I've found Omio does the best job with trains and busses (vs. planes and ferries).