From f19767fb105bd2085c20d7c53cf27a17d01a8b02 Mon Sep 17 00:00:00 2001 From: Martin Pander Date: Mon, 2 Feb 2026 10:04:31 +0100 Subject: [PATCH] Minor fixes --- pages/taskEditor.go | 7 ++++--- taskwarrior/models.go | 26 ++++++++++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/pages/taskEditor.go b/pages/taskEditor.go index 4854117..6ab68d4 100644 --- a/pages/taskEditor.go +++ b/pages/taskEditor.go @@ -794,11 +794,12 @@ func NewDetailsEdit(com *common.Common, task *taskwarrior.Task) *detailsEdit { // return nil // } - vp := viewport.New(40, 30) + vp := viewport.New(com.Width(), 40-com.Styles.ColumnFocused.GetVerticalFrameSize()) ta := textarea.New() - ta.SetWidth(40) - ta.SetHeight(30) + ta.SetWidth(70) + ta.SetHeight(40 - com.Styles.ColumnFocused.GetVerticalFrameSize() - 2) ta.ShowLineNumbers = false + ta.FocusedStyle.CursorLine = lipgloss.NewStyle() ta.Focus() if task.Udas["details"] != nil { ta.SetValue(task.Udas["details"].(string)) diff --git a/taskwarrior/models.go b/taskwarrior/models.go index 482f0a7..17f5d00 100644 --- a/taskwarrior/models.go +++ b/taskwarrior/models.go @@ -120,19 +120,25 @@ func (t *Task) GetString(fieldWFormat string) string { } } - if len(t.Annotations) == 0 { - return t.Description + if t.Udas["details"] != nil && t.Udas["details"] != "" { + return fmt.Sprintf("%s [D]", t.Description) } else { - // var annotations []string - // for _, a := range t.Annotations { - // annotations = append(annotations, a.String()) - // } - // return fmt.Sprintf("%s\n%s", t.Description, strings.Join(annotations, "\n")) - - // TODO enable support for multiline in table - return fmt.Sprintf("%s [%d]", t.Description, len(t.Annotations)) + return t.Description } + // if len(t.Annotations) == 0 { + // return t.Description + // } else { + // // var annotations []string + // // for _, a := range t.Annotations { + // // annotations = append(annotations, a.String()) + // // } + // // return fmt.Sprintf("%s\n%s", t.Description, strings.Join(annotations, "\n")) + + // // TODO enable support for multiline in table + // return fmt.Sprintf("%s [%d]", t.Description, len(t.Annotations)) + // } + case "project": switch format { case "parent":