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 )
| 503 | |
| 504 | |
| 505 | def 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 | |
| 524 | def ComputeFittingHeightForCurrentWindow(): |
nothing calls this directly
no test coverage detected