jaewonE / checkbox-styling-helper

Helps you styling checkboxes in preview mode.
GNU General Public License v3.0
7 stars 1 forks source link

Unable to change checkbox of bullet that already contains text #4

Closed technotherion closed 1 month ago

technotherion commented 1 month ago

What does work

When creating a new bullet or checkbox without any other text on the line, hitting space and then typing : shows the popup box to choose a checkbox.

What doesn't work

When a bullet point or checkbox already exists, adding a : anywhere in the line does not pop up the checkbox selection dialogue.

I've tried after the checkbox and I've also tried the end of the line. image image

My workaround

Create a newline before the line I wish to change with a checkbox, type :, then hit Del to combine the two lines together.

jaewonE commented 1 month ago

The current code is designed to show the checkbox selection popup only when the : character is used on an empty line. However, I understand that there are situations where adding a checkbox to an existing line is necessary. To address this issue, we will implement support for a hotkey command, allowing users to add checkboxes even on lines with existing text.

jaewonE commented 1 month ago

In version 1.2.0, the following updates have been made:

  1. Added five basic icons: number, unordered list, empty checkbox, half done, etc.
  2. Provided a hot key to open the icon picker.(default: (Command + ;) on Mac / (Ctrl + ;) on Windows)
  3. Enabled setting an icon via command even if there is already text on the current line.
  4. Enabled changing an icon via command even if an icon is already set on the current line.
  5. Allowed customization of the trigger.

Please update the plugin in the Obsidian Community Plugins: obsidian://show-plugin?id=checkbox-styling-helper

Note!!: If there is already content present, icon setting and changes can only be made via commands.