telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Support search over unlisted files

Open sammorley-short opened this issue 1 year ago • 1 comments

When I used emacs, it was always possible to search and open one of your "special" buffers, e.g. a non-file buffer that might contain something like test results. This made it easy to access results from various tasks in new windows, even after the original had been closed.

In vim, there are similar special buffer types, which include things like scratch buffers and unlisted buffers, but it seems that there is no obvious way to access them with tools like Telescope or FzfLua.

Is there a picker that could be used for this, or perhaps a configuration option that doesn't exclude them? From this line it looks like such buffers are excluded from results by default, but it would be really useful to be able to include them so that one could easily list and access such "under-the-hood" buffers more readily.

Thanks!

sammorley-short avatar Sep 10 '24 20:09 sammorley-short

Maybe we can add a include_unlisted_buffers option? If you comment out these lines, do you find that it helps with what you're looking for? https://github.com/nvim-telescope/telescope.nvim/blob/b5fd7f7ae0ea4537511077ed8ef4a6021cedba2f/lua/telescope/builtin/__internal.lua#L908-L910

jamestrew avatar Sep 20 '24 01:09 jamestrew

Thanks for getting back to me! Yes, if I comment that line out then I can see the unlisted buffers. Not that they're all necessarily named useful things... but they're at least there, which is a start!

sammorley-short avatar Oct 29 '24 13:10 sammorley-short