Search for stocks by exchange/market

Would be useful to have the ability to search for all stocks on an exchange e.g. LON: (list all stocks on LSE main) or AIM: (list all stocks on the aim market)

I currently use the Freetrade googlesheet to do this