How do I reopen the last Telescope picker with my previous search and results still there?
Answer
:Telescope resume
Explanation
The :Telescope resume command reopens the most recent Telescope picker, restoring the exact query string, filtered results, and cursor position from the last time it was used. This lets you return to an in-progress search without starting from scratch.
How it works
:Telescopeis the main Telescope command used to invoke pickersresumeis the built-in action that restores the previous picker session- The restored state includes the search query, the filtered result list, and the previously selected item
Example
You run :Telescope live_grep and search for handleAuth. You open one file to check something, then realize you need to look at another result. Instead of re-running the search:
:Telescope resume
The picker reopens with handleAuth already in the query field and the same list of results, right where you left off.
Tips
- Works with any Telescope picker:
find_files,live_grep,buffers,lsp_references, etc. - Pair it with a keybinding for quick access, e.g. in Lua:
vim.keymap.set('n', '<leader>fr', ':Telescope resume<CR>') :Telescope pickersshows a list of your recent pickers so you can resume a specific one rather than just the last one