Add function for search without cursor move