Add some :commands for basic usages

This commit is contained in:
Ben Jackson 2020-01-09 20:53:59 +00:00
commit 7456c26c2a
5 changed files with 67 additions and 21 deletions

View file

@ -403,6 +403,9 @@ class DebugSession( object ):
def ShowOutput( self, category ):
self._outputView.ShowOutput( category )
def GetOutputBuffers( self ):
return self._outputView.GetCategories()
def _SetUpUI( self ):
vim.command( 'tabnew' )
self._uiTab = vim.current.tabpage

View file

@ -206,3 +206,6 @@ class OutputView( object ):
tab_buffer.index,
utils.Escape( category ),
'*' if tab_buffer.flag else '' ) )
def GetCategories( self ):
return [ category for category in self._buffers.keys() ]