Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

using editing form reorders fields after the changes are saved. breaks later sorting query #1021

Closed
2 of 8 tasks
pcause opened this issue Aug 15, 2022 · 4 comments
Closed
2 of 8 tasks
Labels
scope: tags Anything to do with tags, both as `#` and in YAML frontmatter status: converted to discussion Converted to a discussion - usually because it was not a bug.

Comments

@pcause
Copy link

pcause commented Aug 15, 2022

Expected Behavior

I have tasks that look like the following:

  • 13:00 #tasks some meeting .....

when i open with the tasks form the #tasks isn't visible but after a change to description and save I get this:

  • #tasks 13:00 changed meeting description

I use sort on description to get my timed items displayed in order. sort of a replacement for the out of date daily planner. I would have expected the #tasks not to be first.

A solution would be to have an option to put the #tasks tag at the end of the description.

Current behaviour

the #tasks tag is always placed at the start

Steps to reproduce

see above, just edit the sdescription

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

0.15.9

Tasks Plugin Version

1.11.1

Checks

  • I have tried it with all other plugins disabled and the error still occurs
@pcause pcause added the type: bug Something isn't working label Aug 15, 2022
@claremacrae
Copy link
Collaborator

This sounds very familiar, I'm pretty sure we've had requests for this kind of thing already - putting the global filter at the end.

@pcause Please could you search for duplicate discussions and issues, and if one exists, upvote it and close this one?

But one thing I don't understand: Do you have a global filter #task? I thought that the global filter prefix did not contribute to the sort order? So maybe there is a different fundamental cause?

Is the crux of the problem that the global filter is being included in the sort order, when it should be ignored???

I mean, it sounds like you are unhappy with the sort order, but are proposing a solution which is unrelated to the sort order?

What have I misunderstood? 😄

@AnnaKornfeldSimpson Even though this sounds like a feature request - which should go in Discussions - I suggest not doing anything with it until we understand what the best solution is, and whether it is really

  • a duplicate
  • a new feature request (unlikely)
  • or an alternative solution (fixing the sort order) to previous requests for the same feature!

(My head hurts!! 🤯)

@AnnaKornfeldSimpson
Copy link
Contributor

@pcause I suspect the workaround for you may be to not use the form to edit task descriptions. Thanks to the newish auto-suggest feature, which can add all the emoji for me, I personally almost never use the form anymore on Windows! Might that work for you or is there a reason you prefer to use the form for edits?

Please do confirm that #task is your global filter here!

@claremacrae
Copy link
Collaborator

@pcause Please could you also show us a screenshot of your Tasks settings?

I am wondering if it is some combination of these settings:

image

I wonder whether you have 'Global task filter' enabled, but 'Remove global filter from description' disabled?

That's the only reason I can think that the #task tag might be being taken in to account in the sort order.

In which case, a workaround requiring no code changes would be to turn on 'Remove global filter from description'.

@claremacrae
Copy link
Collaborator

@pcause cancel this:

This sounds very familiar, I'm pretty sure we've had requests for this kind of thing already - putting the global filter at the end.

Yes, it is a duplicate of #147 - which links to other requests as well.

So I'm converting this to a Discussion/Q&A - to get to the bottom of what is going on with your setup.

@obsidian-tasks-group obsidian-tasks-group locked and limited conversation to collaborators Aug 15, 2022
@claremacrae claremacrae converted this issue into discussion #1022 Aug 15, 2022
@claremacrae claremacrae added scope: tags Anything to do with tags, both as `#` and in YAML frontmatter status: converted to discussion Converted to a discussion - usually because it was not a bug. and removed type: bug Something isn't working labels Aug 15, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
scope: tags Anything to do with tags, both as `#` and in YAML frontmatter status: converted to discussion Converted to a discussion - usually because it was not a bug.
Projects
None yet
Development

No branches or pull requests

3 participants