MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / OpenQuickFixList

Function OpenQuickFixList

python/ycm/vimsupport.py:505–521  ·  view source on GitHub ↗

Open the quickfix list to full width at the bottom of the screen with its height automatically set to fit all entries. This behavior can be overridden by using the YcmQuickFixOpened autocommand. See the OpenLocationList function for the focus and autoclose options.

( focus = False, autoclose = False )

Source from the content-addressed store, hash-verified

503
504
505def OpenQuickFixList( focus = False, autoclose = False ):
506 """Open the quickfix list to full width at the bottom of the screen with its
507 height automatically set to fit all entries. This behavior can be overridden
508 by using the YcmQuickFixOpened autocommand.
509 See the OpenLocationList function for the focus and autoclose options."""
510 vim.command( 'botright copen' )
511
512 SetFittingHeightForCurrentWindow()
513
514 if autoclose:
515 AutoCloseOnCurrentBuffer( 'ycmquickfix' )
516
517 if VariableExists( '#User#YcmQuickFixOpened' ):
518 vim.command( 'doautocmd User YcmQuickFixOpened' )
519
520 if not focus:
521 JumpToPreviousWindow()
522
523
524def ComputeFittingHeightForCurrentWindow():

Callers

nothing calls this directly

Calls 4

AutoCloseOnCurrentBufferFunction · 0.85
VariableExistsFunction · 0.85
JumpToPreviousWindowFunction · 0.85

Tested by

no test coverage detected