title: How to keep search window?
body: <p><em>Disclaimer: I don't know all the correct terminology here. When I say &quot;window&quot; it might be &quot;quickfix modal dialog&quot; or something.</em></p>
  <p>I am using Neovim (through Neovide) and have these settings to enable search via the fzf plugin, by way of ripgrep:</p>
  <pre><code>&quot; Search / Grep
  command! -bang -nargs=* Rg
    \ call fzf#vim#grep(
    \   'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(&lt;q-args&gt;), 1,
    \   &lt;bang&gt;0 ? fzf#vim#with_preview('up:60%')
    \           : fzf#vim#with_preview('right:50%:hidden', '?'),
    \   &lt;bang&gt;0)
  
  set grepprg=rg\ --vimgrep
  &quot; set ctrl-p similarities to open files
  nnoremap &lt;silent&gt; &lt;C-t&gt; :Files &lt;cr&gt;
  nnoremap &lt;silent&gt; &lt;C-p&gt; :Files &lt;cr&gt;
  nnoremap &lt;silent&gt; &lt;C-b&gt; :Buffers&lt;cr&gt;
  nnoremap &lt;silent&gt; &lt;C-M-h&gt; :History&lt;cr&gt;
  &quot; disable preview window
  let g:fzf_preview_window = ''
  </code></pre>
  <p>In my environment vars, I have <code>FZF_DEFAULT_COMMAND</code> set to:</p>
  <pre><code>rg --files --hidden --glob &quot;!.git/*&quot;
  </code></pre>
  <p>When I do something like <code>:Rg fn</code> I get a popup window that looks like this:</p>
  <p><a href="https://i.stack.imgur.com/RAqfL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAqfL.png" alt="enter image description here" /></a></p>
  <p>Here's the problem: when I hit enter to one of the lines to dismiss the window and go to the target file to make changes, I then want to bring the search window back up after I'm done.</p>
  <p>I can hit <code>:</code> and then arrow up to re-run the search, but that can be pretty annoying, especially when there are many results and I want to keep the cursor around where it last left off. When I try <code>:copen</code> it's just empty.</p>
  <p>Is there a way to re-open the last search in a window, preserving the state? (I understand the search results will be stale if I changed something... that's fine)</p>
  <p>Aside for the specific question - I'd appreciate tips for working with search in the Neovim UI, for someone coming from GUI editors like VSCode.</p>
  <p>Thanks!</p>