NotePlan / NotePlan/plugins

Task Sorting: allow to run from templates with parameters (without asking user)

Open
#618 22 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug documentation enhancement
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

The Todo List for the plugin says "Sort tasks via template call". I'm asking for some of that to be included. In particular for just the "Sort tasks under heading (choose)" command.

At the moment running this template tag
<% await DataStore.invokePluginCommandByName("sortTasksUnderHeading","dwertheimer.TaskSorting",["Home"]) -%>
requires me to select Heading and then sort order.
I want to be able to pass these in as parameters to avoid these questions popping up when running in template.

Currently running v1.1.0.

Related bugs
  1. The documentation doesn't mention the available command "Sort tasks on the page "
  2. Note that in the plugin.json the command name includes a space at the end. This will make it difficult to use it correctly from template tags.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.