[WIP] Task editing

This commit is contained in:
Martin
2024-05-24 06:51:06 +02:00
parent fe00170a5c
commit 1086b19765
7 changed files with 334 additions and 16 deletions

View File

@ -105,6 +105,7 @@ func NewTaskEditorPage(common *common.Common, task taskwarrior.Task) *TaskEditor
huh.NewMultiSelect[string]().
Options(huh.NewOptions(tagOptions...)...).
// Key("tags").
Title("Tags").
Value(&p.task.Tags),
@ -245,6 +246,8 @@ func (p *TaskEditorPage) updateTasksCmd() tea.Msg {
if p.additionalProject != "" {
p.task.Project = p.additionalProject
}
// tags := p.form.Get("tags").([]string)
// p.task.Tags = tags
p.common.TW.ImportTask(&p.task)
return UpdatedTasksMsg{}
}