Open yoghurtdewdew opened 1 month ago
@yoghurtdewdew
I found that I can't add time automatically by clicking the check box. Time only can be added via shortcut keys or commands. Is this normal?
It works in my environment🤔 Are the cssclasses set on the target note?
I wonder if it is possible that when I set a line of text as to-do, it will add an timestamp automatically. When I click this checkbox ,It will add an end timestamp automatically.
It seems like it would be difficult to determine if the checkbox was created, as it may require complex steps...
Wouldn't it be better to enable the doing(in Progress) status?
Thank you very much for your reply! So I need to add css to realize clicking the checkbox to add a timestamp?
But I'm still confused. Css would change the display, would it change some characters at the same time? I see from you that clicking once adds a timestamp and then click the second time to add an ending timestamp. But for checkbox, I think click the second time would make - [x]
change to - [ ]
? As clicking on it the first time would set this checkbox as - [x]
.
In addition, for automatic identification of checkbox, I think here is a reference https://github.com/Quorafind/Obsidian-Time-Counter-Releases . I used to like it very much, but there is something wrong with its css at present.
Actually, I really want to realize a calculate of time duration. This will give me a better understanding of the length of time I spend on all kinds of things.
@yoghurtdewdew
So I need to add css to realize clicking the checkbox to add a timestamp? But I'm still confused. Css would change the display, would it change some characters at the same time?
Clicking on the checkbox time tracker only works on pages that have the CSS class you set in CSS classes for track
.
By default, clicking is only possible on pages that have the CSS classes checkbox-time-tracker
and ctt
applied.
Below is an example.
This is to ensure that the plugin is only applied on certain pages. On some pages, you may want to use the default checkbox function without measuring time.
Using CSS classes was confusing and may have been a mistake. Sorry.
I see from you that clicking once adds a timestamp and then click the second time to add an ending timestamp. But for checkbox, I think click the second time would make - [x]change to - [ ]? As clicking on it the first time would set this checkbox as - [x].
Do you have Enable doing status
turned on?
You may be able to achieve the behavior you want by setting it like this:
The first time you click, - [ ]
becomes - [/]
and the start time is recorded.
The second time you click, - [/]
becomes - [x]
and the end time is recorded.
like below
In addition, for automatic identification of checkbox, I think here is a reference Quorafind/Obsidian-Time-Counter-Releases .
Thanks for sharing! I'll take a look!
I found that I can't add time automatically by clicking the check box. Time only can be added via shortcut keys or commands. Is this normal?
I wonder if it is possible that when I set a line of text as to-do, it will add an timestamp automatically. When I click this checkbox ,It will add an end timestamp automatically.