obsidian-css-hide-completed-tasks
SNIPPET
SharkCee

obsidian-css-hide-completed-tasks

Easily hide completed tasks in Obsidian! :3 Becase why not, I guess?


Obsidian.md Logo  Easily hide completed tasks in Obsidian with HCT (Hide Completed Tasks)

💡 About  •  🌱 Getting Started  •  🔧 Usage  •  💭 Property Differences
🫂 Contributing  •  📃 License  •  🦈 Support Me


Release   GitHub Downloads (all assets, all releases)    GitHub Repo stars    license   Powered By


💡 About

This repository has been created to share in a more accessible manner one of my (subjectively) helpful CSS snippets, for other Obsidian users.

It's just a little CSS snippet that's helped me while building my own vault(s), because sometimes it's nicer to keep things clean? I don't know girl, my AuDHD brain hyperfixated on the need to hide completed tasks. 🤷‍♀️

Disclaimer: This work is 100% human made.

🌱 Getting Started

  1. Either download the .css file from the CSS Folder, or clone this repository.
  2. Copy the .css file into your vault's .obsidian folder, in ~/.obsidian/snippets.
  3. Launch Obsidian and open your Vault.
  4. Access the Settings menu.
  5. Under Options, select Appearance and then CSS snippets.
  6. From CSS snippets, you should see an additional entry1: "Hide Completed Tasks".
  7. Enable it by ensuring the toggle is in the correct position.

🔧 Usage

After following the steps from 💡 About, to use this .css snippet, all you need to do is:

  1. Open a note2 in your vault.
  2. Add or open its Properties.
  3. Add to the "cssclasses" Property the value of "hide_completed_tasks" or "hide_completed_tasks_reading"3.

💭 Property Differences

What is the difference between the "cssclasses" Property of hide_completed_tasks_reading and hide_completed_tasks?

hide_completed_tasks_reading

This value only hides completed tasks in the "Reading" view, in case you don't want to rely only on the "Source Mode" view to have see and make changes to the completed tasks.

hide_completed_tasks

By comparison, this value hides completed tasks in both the "Reading" view and the "Live Preview" view, meaning that you will be able to see and make changes to them only in the "Source Mode" view.

TL;DR: Comparison table for values, based on Obsidian's view modes:

Property / ViewReading viewLive PreviewSource Mode Legend:
  • ✅: Completed tasks are hidden from this view.
  • ❎: Completed tasks are not hidden from this view.
hide_completed_tasks_reading✅ (Y)❎ (N)❎ (N)
hide_completed_tasks✅ (Y)✅ (Y)❎ (N)

🫂 Contributing

Contributions are welcome! While the scope of this repo is quite small, because it's intended to help others out, feel free to:

  1. Share improvement ideas via Issues.
  2. Create Issues for any potential bug and/or incompatibility.
  3. Submit PRs with improvements.
  4. Build your own fork, either with improving the .css, or by integrating it into a plugin. (don't forget to leave a credit! it'd make my day. <3)
  5. Share your feedback, thoughts and experience!

📃 License

This repo is under an MIT license. For more details, you can check the LICENSE in the root of this repo.

🦈 Support Me

Support me on Ko-Fi! (optional!!!) This repo has not been created for monetizing, with my focus being on sharing helpful resource(s), built on my free time. However, if you wish to support me, you can get me a cuppa on Ko-Fi! This is completely optional, as any type of support makes me happy! ❤️

Footnotes

  1. If the entry is not there, either select the 🔄 Reload snippets button, or select the 📂 Open snippets folder button, to make sure that the .css file has been copied correctly (either it hasn't been copied in the /snippets folder, or potentially in a different vault's folder). ↩

  2. In order to test the newly available entries for the "cssclasses" Property, one or more tasks should be added, so that before and after testing can be performed, and correct functionality can be validated. ↩

  3. While applying both values to the "cssclasses" won't lead to errors, you will really only get the same result as using only "hide_completed_tasks", but don't worry, because there's more details in 💭 Property Differences. ↩

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it

Stats

Stars

1

Forks

0

License

MIT

Last updated 18d ago

Categories

Tags

obsidianobsidian-communityobsidian-cssobsidian-css-snippetobsidian-mdobsidianmd