extract_tags: Extract Unique Tags

View source: R/filtering.R

extract_tagsR Documentation

Extract Unique Tags

Description

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.


paullemmens/todoRtxt documentation built on May 19, 2023, 3:21 p.m.