Import SearchPopup
TextDocument: buffer & lazily append lines