add snippet action