ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.36k stars 2.8k forks source link

Is there any way to open quickfix list even only one definition/declaration/xxxx ? #4200

Closed leoatchina closed 7 months ago

leoatchina commented 7 months ago

Just as the title, I want to preview subcommands Goto in quickfixlist firstly even there is only one, do preview and decide open in vsplit/split/tabe

puremourning commented 7 months ago

Not currently. Can you elaborate your use case?

leoatchina commented 7 months ago

like glance.nvim, I like view def in floating window, and deside open the it in split/vscplit/tabe or jump to edit image

Since YCM cannot sending results to popup window direction , quickfixlist is also acceptable, and I can

  1. preview in vim-quickui , and open in split/vsplit/tabe by configed ftplugin/qf.vim
  2. use LeaderQuickfx command to shift quickfix to leaderf popup windows , and open in sp/vsp/tab/e
leoatchina commented 7 months ago

In brief I want to 1. preview defs. 2. decide how to open

puremourning commented 7 months ago

I have this little script called "YCMPedit" that does the equivalent of :pedit for GoTo: https://github.com/puremourning/.vim-mac/blob/master/plugin/ycm_pedit.vim maybe that can do something like what you want.

leoatchina commented 7 months ago

thx