[WIP] Task editing
This commit is contained in:
69
pages/messaging.go
Normal file
69
pages/messaging.go
Normal file
@ -0,0 +1,69 @@
|
||||
package pages
|
||||
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
type UpdatedTasksMsg struct{}
|
||||
|
||||
type nextColumnMsg struct{}
|
||||
|
||||
func nextColumn() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return nextColumnMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type prevColumnMsg struct{}
|
||||
|
||||
func prevColumn() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return prevColumnMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type nextFieldMsg struct{}
|
||||
|
||||
func nextField() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return nextFieldMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type prevFieldMsg struct{}
|
||||
|
||||
func prevField() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return prevFieldMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type nextAreaMsg struct{}
|
||||
|
||||
func nextArea() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return nextAreaMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type prevAreaMsg struct{}
|
||||
|
||||
func prevArea() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return prevAreaMsg{}
|
||||
}
|
||||
}
|
||||
|
||||
type changeAreaMsg area
|
||||
|
||||
func changeArea(a area) tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return changeAreaMsg(a)
|
||||
}
|
||||
}
|
||||
|
||||
func changeMode(mode mode) tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return changeModeMsg(mode)
|
||||
}
|
||||
}
|
||||
|
||||
type changeModeMsg mode
|
||||
Reference in New Issue
Block a user