Skip to contents

The todo.txt specification uses @... to refer to contexts and +... for lists. This function extracts all (unique) contexts or lists from the todo.txt file.

Usage

extract_tags(tag_list, type)

Arguments

tag_list

A list of strings or vectors of strings representing tasks' tags (with vectors for tasks with multiple tags).

type

A string to indicate whether to list contexts or lists. Should be one of c('context', '@', 'list', 'project', '+').

Value

A vector of (cleaned) tags.