Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable preview feature to allow global filter to be at the end. #678

Closed
wants to merge 28 commits into from

Conversation

sytone
Copy link
Contributor

@sytone sytone commented May 23, 2022

Description

This resolves #147, An option to always store the global filter at the end of the description would ensure that tasks are compatible with the day planner plugin.

It also would allow #462 to be abandoned as it is getting no response.

This is based off the branch from #670 so you will see additional changes that will go when that is merged.

This PR moves the global filter out of the description completely and will prepend or append it when serializing the task to a markdown string. This is handled in the Task object and in the Task edit UI.

It is under a new feature flag so code will only be called when that is enabled. The flag is not marked as stable until we get user feedback and then an additional PR can be made to enable it as a regular setting.

Motivation and Context

See the following discussions, PRs and Issues.

How has this been tested?

Added updated tests to the toString method of the Tasks object.

Screenshots (if appropriate):

NA

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project and passes yarn run lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • My change has adequate Unit Test coverage.

By creating a Pull Request you agree to our Code of Conduct. For further guidance on contributing please see contributing guide

sytone added 28 commits May 2, 2022 23:36
Add dev setup to contributing
Add tags as a property of task
Add query by tag in query language
Add sort by tag
Added unit tests for coverage
Implement feedback on filter and tag sorting, ready for next release obsidian-tasks-group#632
docs: add documentation on tag sorting
fix: handle lack of tag in the comparison for tag sorting
test: add increased test coverage to tags
A task with a character between the square brackets
should be marked as checked and have the is-checked
class on the parent LI
Allows optional or features in development to be enabled conditionally,
there is a second commit coming to move the new functionality
under the relevant flags which will make the PR review and
check in simpler as code can go in but not be used until the flag is set.
@claremacrae claremacrae added the scope: tags Anything to do with tags, both as `#` and in YAML frontmatter label Jun 26, 2022
@claremacrae
Copy link
Collaborator

I'm trying to get the list of PRs down to ones that are feasibly likely to merge, with the goal of merging the ones that still compatible enough with the current code that I can make them mergeable.

I've done a quick review of this one, even though it is still Draft. It contains changes unrelated to the description, and moves some files to different locations (making them no possible to compare against the previous version in the GitHub website).

So sorry but merging this is not realistic and I'm closing it.

Future options include:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: tags Anything to do with tags, both as `#` and in YAML frontmatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There should be an option to put the global filter at the end
2 participants