Search on history given a expression or not, pipe into selecta