As I’ve been working on my TiddlyWiki fluency, I sometimes yearned for a simple checklist macro for small lists. I use my own homegrown Getting Things Done system in TiddlyWiki (a potential topic for a future post!), but it’s nice to have a little checklist for packing lists or other small sets of tasks. Enter $:/phajas/macros/checklist:
Drag this into a TiddlyWiki, and try to use it like this in a Tiddler:
<<checklist>>
You’ll get a simple checklist with an input field and add button. It was fun learning about the $keyboard widget to enable rapid entering of checklist items. It uses the checked, checklist, and inflight-checklist-input fields on the tiddler embedding the macro.
Nice little hack for both of your codes.
But, if you edit the tiddler containing the checklist, all selections are cleared. Checked items do not seem to be saved somewhere in the wiki.
This is really cool, though I do have one question
Is there a way to create a btn to remove an item? I’m not sure how to target a specific segment of text within a field unfortunately
Hi @fastfreddy
I like your plugin but I would like to increase the spacing/padding ? between the checkbox and each list entry and edit icon and delete icon.
Could you please tell me what is needed to be changed in the stylesheet tiddler to achieve this.
Thanks for the plugin.
If you just want to change the padding around the text, you might add padding: 0 .35em to the .fbcl declaration. But there does not seem to be a CSS hook at a higher level (@fastfreddy: would it make sense to add .fbcl or fbcl-group or similar to the tc-links-draggable-list span?), so if you want to target the edit/delete buttons as well, we have to get a bit more creative.
Here’s one version that seems to work (only lightly tested):
more than happy to try @Scott_Sauyet. Is simply adding this style the best approach in your opinion?
→ <span class="tc-links-draggable-list fbcl">
in \procedure list-filter-draggable definition
in $:/plugins/phiv/field-based-checklist/list-filter-draggable
Maybe, but if you reuse the same class name you have for the item text, you will probably also have to change your CSS a bit. If you use something like .fbcl-list, nothing else would need to change.
I’ll try to look when I’m on a computer, but I don’t have real experience with multicol. What’s the incompatibility?
I think I managed to fix the incompatibility by adding the legacy $:/tags/Macro tag in addition to the more modern $:/tags/Global where the procedures are defined. Released plugin’s version 0.0.5 this day.
users can now choose to show or hide checked or unchecked items.
(my shopping list was getting unwieldy large yet only a few items needed buying, so this features shows me only items I actually need to buy, perfect for small mobile screen)