obsidian-tasks-group / obsidian-tasks

Task management for the Obsidian knowledge base.
https://publish.obsidian.md/tasks/
MIT License
2.42k stars 227 forks source link

If user selects dataview for their task format, tasks results blocks still show signifiers with Tasks emojis #1890

Open claremacrae opened 1 year ago

claremacrae commented 1 year ago

Please check that this issue hasn't been reported before.

Expected Behavior

When I have chosen Dataview as my Tasks Format, and then view a note with a Tasks query - in Reading or Live Preview - I would like the fields to be shown in Dataview format.

Current behaviour

When I have chosen Dataview as my Tasks Format, and then view a note with a Tasks query - in Reading or Live Preview - the task field values are shown in Tasks emoji formats.

Steps to reproduce

  1. Install Tasks (3.3.0 - the upcoming release)
  2. Change the Tasks format to Dataview and then restart Obsidian
  3. Create a note called delete me - show task results in Source or Live Preview modes
  4. Paste in this content:
- [ ] #task This was dataview [priority:: high] [repeat:: every day] [start:: 2023-04-05] [scheduled:: 2023-04-06] [due:: 2023-04-07]

---

```tasks
filename includes delete me - show task results
```
  1. View the note in Reading mode

Expected result:

The task results are displayed with dataview fields, something like this but with backlink and a pencil icon at the end of the line:

image

Actual result:

Task block is displayed with emojis:

image

Note: It is also incorrect that the task line itself is shown with Emojis. That is a separate issue which we are tracking in #1889.

Which Operating Systems are you using?

Obsidian Version

1.2.3

Tasks Plugin Version

3.3.0 pre-release

Checks

Possible solution

No response

claremacrae commented 1 year ago

This is closely related to #1889 - fixing that will likely fix this.

dubaaron commented 11 months ago

Hmm, I think it might be useful, if this is ever "fixed", to enable the current behavior of rendering emojis even for dataview format tasks ... because they look nicer. So that tasks can be integrated with DataView, but still show with emoji, if you like. (Unless there is a different way to show DataView fields more concisely with something like emoji?)

claremacrae commented 11 months ago

Hmm, I think it might be useful, if this is ever "fixed", to enable the current behavior of rendering emojis even for dataview format tasks ... because they look nicer. So that tasks can be integrated with DataView, but still show with emoji, if you like. (Unless there is a different way to show DataView fields more concisely with something like emoji?)

Generally, if people prefer emojis they use the Tasks emoji format. It's the people who didn't like Emojis where were asking for Dataview support.

So no, there's already a lot of options for Tasks, and I would not be inclined to make both the settings and the Tasks code more complicated by making this configurable.

dubaaron commented 11 months ago

So no, there's already a lot of options for Tasks, and I would not be inclined to make both the settings and the Tasks code more complicated by making this configurable.

Ok, well, that makes sense. Thanks for the info. I'm still new to the tasks plugin; sorry, just sharing my thoughts there. I was just thinking maybe Dataview format gave more queryability than raw emoji; but I do prefer the look of emoji.

claremacrae commented 11 months ago

Hi @dubaaron, no worries at all, I promise....

Tejeev commented 9 months ago

First and foremost, thank you for all the work you've done here. Tasks and Dataview currently rank as my two most used addons so it's no stretch to say that you're changing my life :)

Regarding the following, personally I don't mind emoji format and even like it for readability, but lean towards dataview for the ability to more easily mine my data.

Generally, if people prefer emojis they use the Tasks emoji format. It's the people who didn't like Emojis where were asking for Dataview support.

so my vote landed on dataview format for metadata at rest but it's not because I didn't like Emojis. They just each have their place in my prefered user experience and data mine-ability takes a marginally higher priority for me.

claremacrae commented 3 months ago

If anyone is interested in working on this, I have added a long comment in the closely related issue to get you started:

https://github.com/obsidian-tasks-group/obsidian-tasks/issues/1889#issuecomment-2198641698