search for refs using current dirty editor