Interface Task

Represents a task with various properties.

interface Task {
    active: boolean;
    allContext: string[];
    allMeta: { [key: string]: string[] };
    allTags: string[];
    beforeText: string;
    content: string;
    context: string[];
    created: string;
    createdDate: Date;
    data: object;
    expand: boolean;
    filteredListName: string;
    frontMatter: object;
    interpretedContent: string;
    lastLine: number;
    line: number;
    list: string;
    meta: { [key: string]: string[] };
    metaKeys: string[];
    order: number;
    progress: { completed: number; total: number };
    source: {
        createdTime: string;
        ext: string;
        lang: string;
        modifiedTime: string;
        path: string;
    };
    tags: string[];
    type: "CODE"
    | "HASHTAG"
    | "MARKDOWN";
}

Properties

active: boolean

Represents the state of the task.

allContext: string[]

All context strings associated with the task.

allMeta: { [key: string]: string[] }

All metadata associated with the task, where each key maps to an array of strings.

allTags: string[]

All tags associated with the task.

beforeText: string

Text before the main content.

content: string

Main content of the task.

context: string[]

Context strings associated with the task.

created: string

Creation timestamp of the task.

createdDate: Date

Creation date of the task as a Date object.

data: object

Data associated with the task. This is added by plugins and extensions, through properties.

expand: boolean

Indicates whether the task is expanded in the UI.

filteredListName: string

Name of the filtered list if the task is in a filteredList.

frontMatter: object

Front matter of the file the task is in.

interpretedContent: string

Interpreted content of the task, after processing.

lastLine: number

The last line number of this task in it's file.

line: number

The line number of this task in it's file.

list: string

The list to which the current item belongs.

meta: { [key: string]: string[] }

Metadata associated with the current item, where each key maps to an array of strings.

metaKeys: string[]

Keys of the metadata associated with the current item.

order: number

Order of the current item within its list.

progress: { completed: number; total: number }

Progress information for the task.

Type declaration

  • completed: number

    Number of completed items.

  • total: number

    Total number of items.

source: {
    createdTime: string;
    ext: string;
    lang: string;
    modifiedTime: string;
    path: string;
}

Source information for the task.

Type declaration

  • createdTime: string

    Creation time of the source file.

  • ext: string

    Extension of the source file.

  • lang: string

    Language of the source file.

  • modifiedTime: string

    Last modified time of the source file.

  • path: string

    Path to the source file.

tags: string[]

Tags associated with the current item.

type: "CODE" | "HASHTAG" | "MARKDOWN"

Type of Task.