initial tool call stream
This commit is contained in:
@@ -14,6 +14,10 @@ type SplitPaneLayout interface {
|
||||
SetLeftPanel(panel Container) tea.Cmd
|
||||
SetRightPanel(panel Container) tea.Cmd
|
||||
SetBottomPanel(panel Container) tea.Cmd
|
||||
|
||||
ClearLeftPanel() tea.Cmd
|
||||
ClearRightPanel() tea.Cmd
|
||||
ClearBottomPanel() tea.Cmd
|
||||
}
|
||||
|
||||
type splitPaneLayout struct {
|
||||
@@ -192,6 +196,30 @@ func (s *splitPaneLayout) SetBottomPanel(panel Container) tea.Cmd {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *splitPaneLayout) ClearLeftPanel() tea.Cmd {
|
||||
s.leftPanel = nil
|
||||
if s.width > 0 && s.height > 0 {
|
||||
return s.SetSize(s.width, s.height)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *splitPaneLayout) ClearRightPanel() tea.Cmd {
|
||||
s.rightPanel = nil
|
||||
if s.width > 0 && s.height > 0 {
|
||||
return s.SetSize(s.width, s.height)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *splitPaneLayout) ClearBottomPanel() tea.Cmd {
|
||||
s.bottomPanel = nil
|
||||
if s.width > 0 && s.height > 0 {
|
||||
return s.SetSize(s.width, s.height)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *splitPaneLayout) BindingKeys() []key.Binding {
|
||||
keys := []key.Binding{}
|
||||
if s.leftPanel != nil {
|
||||
|
||||
Reference in New Issue
Block a user