A 1,3-indandione-functionalized tetraphenylethene: aggregation-induced emission, solvatochromism, mechanochromism, and potential application as a multiresponsive fluorescent probe.