diff --git a/bubbletea.go b/bubbletea.go index 505da7b..ed983e8 100644 --- a/bubbletea.go +++ b/bubbletea.go @@ -105,7 +105,8 @@ func (m model) View() string { } // The footer - s += "\nPress q to quit.\n" + s += "n: new\n" + s += "q: quit.\n" // Send the UI for rendering return s diff --git a/model.go b/model.go index b19f42f..8d24ad1 100644 --- a/model.go +++ b/model.go @@ -15,6 +15,7 @@ type model struct { cursor int // which to-do list item our cursor is pointing at selected map[int]struct{} // which to-do items are selected tab int // which tab is selected + add bool // defines if the new task window is shown } func initialModel() model {