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

Diary Entry Template #622

Closed
akoutmos opened this issue Mar 6, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@akoutmos
Copy link

commented Mar 6, 2019

Firstly, a HUGE thank you to an awesome plugin. I use it daily and appreciate the work put into it.

Next, I was wondering if it is possible to create diary entry templates. Every time I create a diary entry I outline the diary the same way and it would be nice to automate that. So if I create a new diary entry I would automatically get an entry filled out with:

Completed Today:
  -

Started Today:
  -

Notes For Tomorrow:
  -
@divramod

This comment has been minimized.

Copy link

commented Mar 7, 2019

Hey @akoutmos.

I also use the plugin daily and solve the task of templates with https://github.com/SirVer/ultisnips
Ultisnips is really powerful in the way, that you can insert the results of bash scripts like

snippet d1f "Diarynote Tpl Full (Tomorrow)" w
# [ ] `env LC_ALL=en_US.utf8 date --date="tomorrow" "+%Y.%m.%d %A"`

Completed Today:
  - ...
endsnippet

Hope that helps.

@akoutmos

This comment has been minimized.

Copy link
Author

commented Mar 8, 2019

Thanks for the good idea! I've always had issues with UltiSnips in the past as I could never get it to pick up my local snippets files....but I put some time in and got it working :).

@akoutmos akoutmos closed this Mar 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.