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

Add timestamp if checkbox is created #17

Open
fujohnwang opened this issue Nov 22, 2019 · 4 comments · May be fixed by #51
Open

Add timestamp if checkbox is created #17

fujohnwang opened this issue Nov 22, 2019 · 4 comments · May be fixed by #51
Assignees

Comments

@fujohnwang
Copy link

complete action has a timestamp, but there is no timestamp when the checkbox is created.

if a create tmestamp is there , I can roughly know how long the TODO item take.

I am not a JS developer, so if this feature can be done, that will be great ;)

@fujohnwang
Copy link
Author

I have add the following code to local copy to solve this issue by myself, thanks.

(new Date().toISOString().split('T')[0])+"-> "

@fujohnwang
Copy link
Author

image

@PKief
Copy link
Owner

PKief commented Apr 26, 2020

@fujohnwang thank you for letting me know that you've fixed the issue for yourself. Would you like to create a pull request with your changes? Then I could take a look and include it to this extension 🙂

I could also add an option which could enable/disable this feature through the user settings 👍

@PKief PKief reopened this Apr 26, 2020
@PKief PKief changed the title create with timestamp feature request Add timestamp if checkbox is created Apr 26, 2020
@PKief PKief self-assigned this Apr 26, 2020
@fujohnwang
Copy link
Author

@PKief sorry, I just modify the local source code under ~/.vscode, since I don't have enough skills on vscode extension dev, I have simply browsed the source and add date string under:

if(!r(s))e.edit(e=>{e.insert(new o.Position(s.lineNumber,a.pos),(t&&!a.bullet?n+" ":"")+"[ ] "+(new Date().toISOString().split('T')[0])+"-> ")})})

vscode-markdown-checkbox/src/createCheckbox.ts maybe.

I think, if you can provide config options for the date format and disable/enable, that will be great for all extension users ;0)

ganskef added a commit to ganskef/vscode-markdown-checkbox that referenced this issue May 12, 2023
ganskef added a commit to ganskef/vscode-markdown-checkbox that referenced this issue May 12, 2023
ganskef added a commit to ganskef/vscode-markdown-checkbox that referenced this issue May 12, 2023
ganskef added a commit to ganskef/vscode-markdown-checkbox that referenced this issue May 12, 2023
@ganskef ganskef linked a pull request May 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants