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

Keep history of last selected item on find files

Open otavioschwanck opened this issue 3 years ago • 1 comments

Its like a mix between old_files only_cwd=true with find_files.

On Emacs, it keeps the last selected files at top: image

Would be awesome to have this on Telescope for find_files

otavioschwanck avatar Apr 11 '22 21:04 otavioschwanck

Some thoughts:

  • Not sure if that should be built-in or whether we rather should have a recipe for that
  • We should provide an ergonomic interface for doing something like that I suppose
  • Something like this would be already possible, how-to:
    • telescope-file-browser.nvim example can be found here
    • Relevant implementation in telescope.nvim is here

Maybe this can be made more ergonomically, s.t. users can wrap what they want around that more easily (MRU, etc.). In other words, I suppose ideally the original feature request becomes another telescope-extension as I'd say it is not "telescope-core".

I'd say PR welcome for improving ergonomics :)

fdschmidt93 avatar Apr 14 '22 09:04 fdschmidt93

Just linking shared issues as these all appear related: see #2348.

thw26 avatar Jun 16 '23 13:06 thw26