def iterFiles(self, ignorer): """Iterate through open files, returning the sort item that will later be used in the call to threadedSearch """ docs = BufferList.getBuffers() for buf in docs: if not buf.permanent: yield (str(buf.url), buf)