fix(parser): exclude "url" metadata from Remind output (since version 06.02.02 of remind)
Previously, only "due" metadata was excluded when generating Remind output. This change also skips "url" metadata, preventing it from appearing in the Remind string. Version 06.02.02 of remind supports "url" metadata.
This commit is contained in:
@@ -89,7 +89,7 @@ func (t Task) ToRemind() string {
|
|||||||
|
|
||||||
if len(t.Metadata) > 0 {
|
if len(t.Metadata) > 0 {
|
||||||
for k, values := range t.Metadata {
|
for k, values := range t.Metadata {
|
||||||
if k == "due" {
|
if k == "due" || k == "url" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// uppercase first letter for Remind
|
// uppercase first letter for Remind
|
||||||
|
|||||||
Reference in New Issue
Block a user