No description
Find a file
2025-03-20 00:24:35 +03:00
.github/workflows upd 2025-03-13 22:04:34 +03:00
__tests__ fix cursor, add mutex, add tests, refactor 2025-03-20 00:24:35 +03:00
img add gif 2025-02-08 03:03:29 +03:00
src fix cursor, add mutex, add tests, refactor 2025-03-20 00:24:35 +03:00
.editorconfig Initial commit 2025-02-01 03:53:06 +03:00
.eslintignore Initial commit 2025-02-01 03:53:06 +03:00
.eslintrc Initial commit 2025-02-01 03:53:06 +03:00
.gitignore add tests 2025-02-18 20:50:31 +03:00
.npmrc Initial commit 2025-02-01 03:53:06 +03:00
esbuild.config.mjs add tests 2025-02-18 20:50:31 +03:00
jest.config.ts add tests 2025-02-18 20:50:31 +03:00
LICENSE fix license 2025-02-23 01:23:33 +03:00
manifest.json v upd, fix #8 2025-03-19 00:44:43 +03:00
package-lock.json fix cursor, add mutex, add tests, refactor 2025-03-20 00:24:35 +03:00
package.json fix cursor, add mutex, add tests, refactor 2025-03-20 00:24:35 +03:00
README.md v upd, #7, #6, #4 2025-03-15 13:36:31 +03:00
styles.css Initial commit 2025-02-01 03:53:06 +03:00
tsconfig.json add tests 2025-02-18 20:50:31 +03:00
version-bump.mjs Initial commit 2025-02-01 03:53:06 +03:00
versions.json Initial commit 2025-02-01 03:53:06 +03:00

Checkbox Sync

License: 0BSD Latest Release

English

Description

Checkbox Sync is a plugin for Obsidian that automates the management of checkbox states in your notes. If all child checkboxes are checked, the plugin automatically checks the parent checkbox, and if at least one of them is unchecked, it unchecks the parent.

Supported Lists

The plugin works with both ordered and unordered lists:

  • Unordered Lists - Lists created with -, + or * markers
  • Ordered Lists - Numbered lists (1., 2., etc.)

The plugin respects list indentation, allowing for nested checkbox hierarchies at any level.

Settings

The plugin offers the following configuration options:

  • X-Only Mode - When enabled, only checkboxes marked with 'x' are considered checked. When disabled, any character inside the checkbox (except space) marks it as checked.

Usage

After activating the plugin, it automatically tracks checkboxes in your notes. Example usage:

In this example, as soon as both child checkboxes are checked, the plugin will automatically check the parent checkbox. If at least one child checkbox is unchecked, the parent will be unchecked.

Installation

Manual Installation

  1. Go to the releases page and download the latest plugin archive.
  2. Extract the archive to the directory:
    <your-vault>/.obsidian/plugins/checkbox-sync
  3. Restart Obsidian.
  4. Open Settings → Community plugins and enable Checkbox Sync.

Installation via Plugin Manager (if supported)

  1. Open Obsidian and go to Settings → Community plugins.
  2. Click the Browse button, search for "Checkbox Sync", and install it.
  3. Enable the plugin after installation.

Development and Contribution

If you want to make changes or improvements to the plugin:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/feature-name
  3. Make changes and commit:
    git commit -m "Description of changes"
  4. Push changes to your fork:
    git push origin feature/feature-name
  5. Open a Pull Request in the original repository.

License

This project is licensed under the 0BSD license.

Acknowledgments


If you have any questions, suggestions, or find a bug, please create an issue in the repository.

Русский

Описание

Checkbox Sync — это плагин для Obsidian, который автоматизирует управление состоянием чекбоксов в ваших заметках. Если все дочерние чекбоксы выполнены, плагин автоматически отмечает родительский чекбокс, а если хотя бы один из них не отмечен — снимает отметку с родительского.

Поддерживаемые списки

Плагин работает как с нумерованными, так и с ненумерованными списками:

  • Ненумерованные списки - Списки, созданные с помощью маркеров -, + или *
  • Нумерованные списки - Списки с цифровой нумерацией (1., 2. и т.д.)

Плагин учитывает отступы списков, позволяя создавать вложенные иерархии чекбоксов на любом уровне.

Настройки

Плагин предлагает следующие параметры конфигурации:

  • Режим X-Only - Когда включен, только чекбоксы, отмеченные символом 'x', считаются выполненными. Когда отключен, любой символ внутри чекбокса (кроме пробела) считается отметкой о выполнении.

Использование

После активации плагина, он автоматически отслеживает чекбоксы в ваших заметках. Пример использования:

В данном примере, как только оба дочерних чекбокса будут отмечены, плагин автоматически отметит родительский чекбокс. Если хотя бы один дочерний чекбокс не отмечен, родительский сбросится.

Установка

Ручная установка

  1. Перейдите на страницу релизов и скачайте последний архив плагина.
  2. Распакуйте архив в директорию:
    <ваше-хранилище>/.obsidian/plugins/checkbox-sync
  3. Перезапустите Obsidian.
  4. Откройте Настройки → Плагины сообщества и активируйте Checkbox Sync.

Установка через менеджер плагинов (если поддерживается)

  1. Откройте Obsidian и перейдите в Настройки → Плагины сообщества.
  2. Нажмите кнопку Обзор, найдите "Checkbox Sync" и установите его.
  3. Активируйте плагин после установки.

Разработка и вклад

Если вы хотите внести изменения или улучшения в плагин:

  1. Форкните репозиторий.
  2. Создайте новую ветку:
    git checkout -b feature/имя-функционала
  3. Внесите изменения и сделайте коммит:
    git commit -m "Описание изменений"
  4. Отправьте изменения в свой форк:
    git push origin feature/имя-функционала
  5. Откройте Pull Request в оригинальном репозитории.

Лицензия

Этот проект лицензирован под лицензией 0BSD.

Благодарности

  • Obsidian — платформа для создания и организации заметок.
  • Проект создан на основе шаблона obsidian-sample-plugin.

Если у вас есть вопросы, предложения или вы обнаружили баг, пожалуйста, создайте issue в репозитории.