A new selective and sensitive fluorescence turn-on detection of CN(-) is reported by taking advantage of aggregation induced-emission (AIE) behavior of tetraphenylethylene units and the nucleophilic attack of CN(-) on the indolium group in compound 1.