Represents a project with lists, tasks, and various actions.

Constructors

Accessors

  • get doneList(): string
  • Gets the name of the done list.

    Returns string

  • get filter(): string
  • Gets the current filter applied to the project.

    Returns string

  • set filter(filter: string): void
  • Sets the filter for task retrieval.

    Parameters

    • filter: string

    Returns void

  • get filteredCards(): Task[]
  • Gets the filtered tasks based on the current filter.

    Returns Task[]

  • get path(): string
  • Gets the project path.

    Returns string

  • get updatedAt(): Date
  • Gets the last updated timestamp.

    Returns Date

Methods

  • Adds context to the provided content.

    Parameters

    • contexts: string[]
    • content: string

    Returns string

  • Adds metadata to a task.

    Parameters

    • task: Task
    • key: string
    • value: string

    Returns Promise<void>

  • Adds metadata to the provided content.

    Parameters

    • meta: Meta[]
    • content: string

    Returns string

  • Adds a tag to a task.

    Parameters

    • task: Task
    • tag: string

    Returns Promise<void>

  • Adds tags to the provided content.

    Parameters

    • tags: string[]
    • content: string

    Returns string

  • Copies text to the clipboard and shows a message.

    Parameters

    • text: string
    • message: string

    Returns Promise<void>

  • Destroys the project instance.

    Returns void

  • Filters lists based on a provided filter.

    Parameters

    • filter: string
    • lists: List[]

    Returns List[]

  • Retrieves all cards, optionally filtered.

    Parameters

    • Optionalfilter: string

    Returns Task[]

  • Initializes the project with a given repository.

    Parameters

    • repo: any

    Returns void

  • Open the given file in the desktop's default manner.

    Parameters

    • filePath: string

    Returns Promise<void>

  • Opens a URL in the default browser.

    Parameters

    • url: string

    Returns Promise<void>

  • Removes metadata from a task.

    Parameters

    • task: Task
    • key: string
    • value: string

    Returns Promise<void>

  • Removes a tag from a task.

    Parameters

    • task: Task
    • tag: string

    Returns Promise<void>

  • Renders Markdown content as HTML.

    Parameters

    • content: string

    Returns string

  • Saves content to a specified file path.

    Parameters

    • content: string
    • path: string

    Returns void

  • Sets the current filter for the project.

    Parameters

    • filter: string

    Returns void

  • Displays a snackbar notification.

    Parameters

    Returns Promise<void>

  • Displays a toast notification.

    Parameters

    Returns Promise<void>

  • Updates the content of a given task.

    Parameters

    • task: Task
    • content: string

    Returns Promise<void>