1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Basic selectable todo functionality working

Can:
- move between todo items
- toggle checked/unchecked state

Cannot:
- persiste changes to file
- add items
- delete items
This commit is contained in:
Chris Cummer
2018-04-20 15:19:54 -07:00
parent 67e02bf4f5
commit a0ce5eb412
12 changed files with 279 additions and 28 deletions

View File

@@ -64,8 +64,6 @@ func (widget *Widget) formatChange(line string) string {
line = strings.Replace(line, "M", "[yellow]M[white]", 1)
case 'R':
line = strings.Replace(line, "R", "[purple]R[white]", 1)
default:
line = line
}
return fmt.Sprintf(" %s\n", strings.Replace(line, "\"", "", -1))

View File

@@ -97,6 +97,4 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
default:
return event
}
return event
}