parse_tags: Parse Tags From A Task

View source: R/parser.R

parse_tagsR Documentation

Parse Tags From A Task

Description

Contexts are tags prefixed with an @. Projects are tags prefixed with a + (plus). One task can contain multiple contexts and/or multiple projects that should all be preserved. The regular expressions are taken from the source code of Simpletask by Mark Janssen.

Usage

parse_tags(todo, tag)

Arguments

todo

A single todo (string).

tag

A plus + or @ sign (string)

Value

A (mini) data frame with a row for each context found and in that row a variable for the context and its start and end position in the task.

Author(s)

Paul Lemmens (paul.lemmens@gmail.com)


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