obsidian-tasks-group / obsidian-tasks

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

add strikethrough elements in Layout #2818

Closed skyue closed 5 months ago

skyue commented 5 months ago

⚠️ Please check that this feature request hasn't been suggested before.

🔖 Feature description

when i filter done task, I hope I can hide strikethrough line. because all tasks are done, It is more easy to read if I can hide strikethrough line.

✔️ Solution

can hide strikethrough line in Query

❓ Alternatives

No response

📝 Additional Context

No response

claremacrae commented 5 months ago

Hi, because of Obsidian’s Themes and Snippets mechanism, Tasks does not do any styling of task lines.

It’s up to the user to decide what appearance they want.

However, to make this process easier, I wrote up the options that are best-supported by Tasks here: https://publish.obsidian.md/tasks/Reference/Status+Collections/About+Status+Collections

You may find that some of those don’t strike through completed tasks.

Or you may find that some support the Style Settings plugin and have an option to not strike through completed tasks.

Or if you know CSS, you can find the Styling page in the Tasks docs and use the info there to write a snippet to get the effect you want.

There isn’t a way to change the styling of tasks depending on what search filters you used, though. Perhaps you could work around this using Obsidian’s cssclasses (or similar) properties facility to have a CSS snippet only enabled in certain files.

Please note that the developers of the Tasks plugin do not have time to help users with writing or troubleshooting CSS, themes and snippets.

If you need help with this, I recommend using the #appearances channel on Obsidian Members Discord.

claremacrae commented 5 months ago

Closing as no action needed in Tasks.