Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to select binary checkbox states for integration with Tracker plugin #906

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ethanimproving
Copy link

We're excited to announce the latest version of DB Folder, which introduces a new feature that makes it easier to integrate your notes with the Obsidian Tracker plugin. You can now configure the CheckBox type as either binary (1/0) or boolean (true/false), allowing you to use your note's frontmatter in a way that works best for you.

To configure the CheckBox type, simply go to the settings page and select the appropriate option. Once set, all notes using the CheckBox feature will use the selected type.

Haabit Tracker Binary Option

We hope this new feature makes it easier for you to track your progress and achieve your goals with Obsidian.

@RafaelGB
Copy link
Owner

hi @ethanimproving ! I am sorry for the wait since I am not being able to dedicate time to manage the project. I promise to review the pull request this week and push it to the main branch.

configInfo.getLocalSettings()
) as boolean
) as boolean | number
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can create an specific type for this

type Checkbox = number | boolean

}
}}
>
<input
type="checkbox"
checked={checkboxCell}
checked={!!checkboxCell}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can use the service function of isTruthy avaliable in dataview api or dataviewService

@@ -95,6 +95,7 @@ class BehaviorSetttingsSection extends AbstractChain<ColumnSettingsHandlerRespon
case InputType.INLINKS:
case InputType.OUTLINKS:
case InputType.METADATA_TAGS:
case InputType.CHECKBOX_TYPE:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the configuration as metadata info of the checkbox type I think it could be moved to column configuration, the idea of the flag to control the behavior its cool but I think it should be managed on columnConfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants