AutoStrikethroughTasksPlugin
is a plugin for Obsidian that automatically applies or removes strikethrough formatting to completed or incomplete tasks in your notes.
- 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.
- 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
AutoStrikethroughTasksPlugin
in the list and toggle it on.
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:
To build this plugin, ensure you have Node.js installed, then:
- Run
npm install
to install dependencies. - Run
npm run build
to compile the plugin.
- 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.
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.
This project is licensed under the MIT License. See the LICENSE file for details.