Skip to contents

In the todo.txt format, tasks can be prioritized using a capital in round braces at the start of the task.

Usage

modify_priority(task, priority)

Arguments

task

A string with one (or, as vector, one or more) task(s) that follow(s) the todo.txt specification by Gina Trapani. When multiple tasks are provided, all tasks are modified in the same way.

priority

A string with the new priority to set. If a priority needs to be removed, use the empty string.

Value

the updated task(s)

Author

Paul Lemmens (paul.lemmens@gmail.com)