Auto Strikethrough Tasks
approvedby Nomekuma
Automatically adds strikethrough to completed tasks.
AutoStrikethroughTasksPlugin
AutoStrikethroughTasksPlugin is a plugin for Obsidian that automatically applies or removes strikethrough formatting to completed or incomplete tasks in your notes.
Features
- Automatic Strikethrough on Completed Tasks: When you mark a task as complete (
- [x]), the plugin automatically applies strikethrough (~~) to the task text. - Automatic Removal of Strikethrough on Incomplete Tasks: If you uncheck a task (
- [ ]) that has strikethrough, the plugin will automatically remove the strikethrough.
Installation
- Download the plugin files or clone this repository into your Obsidian plugins folder.
- Open Obsidian and navigate to
Settings>Community Plugins>Installed Plugins. - Find the
AutoStrikethroughTasksPluginin the list and toggle it on.
Usage
Once the plugin is enabled:
-
Write tasks using standard Markdown task list syntax.
- Example:
- [ ] Task to do - [x] Task completed
- Example:
-
The plugin will automatically:
- Add strikethrough to completed tasks:
- [x] ~~Task completed~~ - Remove strikethrough from unchecked tasks:
- [ ] Task to do
- Add strikethrough to completed tasks:
Development
Building the Plugin
To build this plugin, ensure you have Node.js installed, then:
- Run
npm installto install dependencies. - Run
npm run buildto compile the plugin.
Development Notes
- The plugin listens for changes in the editor and updates task formatting in real-time.
- The
onload()method registers the event listener, and theonunload()method cleans up when the plugin is disabled.
Contributing
Feel free to contribute by submitting issues or pull requests. For significant changes, please open an issue first to discuss the changes you intend to make.
License
This project is licensed under the MIT License. See the LICENSE file for details.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.