added new task flag

This commit is contained in:
june 2025-03-08 11:58:44 +13:00
parent 5231fd8f6a
commit db8e66666c
Signed by untrusted user who does not match committer: breadone
GPG Key ID: FDC19FE143200483
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 {