added new task flag
This commit is contained in:
parent
5231fd8f6a
commit
db8e66666c
@ -105,7 +105,8 @@ func (m model) View() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The footer
|
// The footer
|
||||||
s += "\nPress q to quit.\n"
|
s += "n: new\n"
|
||||||
|
s += "q: quit.\n"
|
||||||
|
|
||||||
// Send the UI for rendering
|
// Send the UI for rendering
|
||||||
return s
|
return s
|
||||||
|
1
model.go
1
model.go
@ -15,6 +15,7 @@ type model struct {
|
|||||||
cursor int // which to-do list item our cursor is pointing at
|
cursor int // which to-do list item our cursor is pointing at
|
||||||
selected map[int]struct{} // which to-do items are selected
|
selected map[int]struct{} // which to-do items are selected
|
||||||
tab int // which tab is selected
|
tab int // which tab is selected
|
||||||
|
add bool // defines if the new task window is shown
|
||||||
}
|
}
|
||||||
|
|
||||||
func initialModel() model {
|
func initialModel() model {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user