isInPrimaryView checks if the current view is a primary view (not a detail view)
()
| 585 | |
| 586 | // isInPrimaryView checks if the current view is a primary view (not a detail view) |
| 587 | func (m tuiModel) isInPrimaryView() bool { |
| 588 | // Check if we're in a primary view by checking if viewStack is empty |
| 589 | // Detail views push the previous view onto the stack |
| 590 | return len(m.viewStack) == 0 |
| 591 | } |
| 592 | |
| 593 | // renderViewSelector renders the view selector modal |
| 594 | func (m tuiModel) renderViewSelector() string { |