Compare commits

..

5 Commits

Author SHA1 Message Date
5cbfc58aa3 Add time editing 2026-02-01 21:46:11 +01:00
72a5c57faa Add time page 2026-02-01 21:30:19 +01:00
b47763034b Refactor picker 2026-02-01 14:00:33 +01:00
5de3b646fc Integrate timewarrior 2026-02-01 14:00:33 +01:00
a846d2f562 Add README 2026-01-10 18:55:16 +01:00
2 changed files with 13 additions and 20 deletions

View File

@ -794,12 +794,11 @@ func NewDetailsEdit(com *common.Common, task *taskwarrior.Task) *detailsEdit {
// return nil // return nil
// } // }
vp := viewport.New(com.Width(), 40-com.Styles.ColumnFocused.GetVerticalFrameSize()) vp := viewport.New(40, 30)
ta := textarea.New() ta := textarea.New()
ta.SetWidth(70) ta.SetWidth(40)
ta.SetHeight(40 - com.Styles.ColumnFocused.GetVerticalFrameSize() - 2) ta.SetHeight(30)
ta.ShowLineNumbers = false ta.ShowLineNumbers = false
ta.FocusedStyle.CursorLine = lipgloss.NewStyle()
ta.Focus() ta.Focus()
if task.Udas["details"] != nil { if task.Udas["details"] != nil {
ta.SetValue(task.Udas["details"].(string)) ta.SetValue(task.Udas["details"].(string))

View File

@ -120,25 +120,19 @@ func (t *Task) GetString(fieldWFormat string) string {
} }
} }
if t.Udas["details"] != nil && t.Udas["details"] != "" { if len(t.Annotations) == 0 {
return fmt.Sprintf("%s [D]", t.Description)
} else {
return t.Description 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))
} }
// 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": case "project":
switch format { switch format {
case "parent": case "parent":