minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.14k stars 99 forks source link

Resume search / repeat last search #865

Closed Pacane closed 8 months ago

Pacane commented 8 months ago

Hi I'm trying to find out if there's a way to preserve the last search terms in between consult usages.

For example I do a lot of ripgrep searches using consult and navigate to individual results. Is there a way to search for the same terms again without having to type the whole thing again?

oantolin commented 8 months ago

The search terms get added to the history, so M-p after restarting the search command.

minad commented 8 months ago

There also the commands vertico-repeat and vertico-suspend. But I usually recommend to use embark-collect or embark-export to avoid unnecessarily restarting the search.