Allow actions.open_qflist
to utilize split modifiers like :botright
, :rightbelow
, etc
#2142
Labels
enhancement
Enhancement to performance, inner workings or existent features
Is your feature request related to a problem? Please describe.
I use simrat39/symbols-outline and noticed that when I have a three-column window layout going on, invoking
telescope.acitons.open_qflist
will open the quickfix list in a split window under the last opened vertical window, which (in my use-case) means that it's inconveniently squished in the lower-right corner, under my symbol outliner (fig. 1)Compare this to how the quickfix list opens when invoking
:lua vim.diagnostic.setqflist({open=true})
(fig.2)I found out that
vim.diagnostic.setqflist
invokes:botright copen
, whereastelescope.actions.open_qflist
invokes just:copen
. Using:botright
causes the next command to open a window that spans the whole neovim window, which in my opinion is vastly preferable in this case, since quickfix items tend to be long, and I can't read them when they end up in the corner. Unfortunately there is no way to cause Telescope to use:botright copen
, or any other kind of split modifier like:rightbelow
,:topleft
, etc.Describe the solution you'd like
I would like
actions.open_qflist
to accept an opts table with a property that tells it whether to use a split-modifying command or not, and which one.Describe alternatives you've considered
I could just keep moving the window that opens but that gets annoying.
Additional context
fig.1: quickfix list opened in the lower-right corner after invoking
actions.open_qflist
:(note: in the above example, the center window was the last to have been focused before opening telescope)
fig.2: quickfix list opened across the bottom of Neovim, since it was opened via
:botright copen
:The text was updated successfully, but these errors were encountered: