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

Integration with Templater and Journals for Auto-Generated Handwriting Fields #117

Open
SchneiderSam opened this issue Feb 19, 2025 · 3 comments
Labels
enhancement New feature or request parked I'll consider it in the future once other functionality is addressed

Comments

@SchneiderSam
Copy link

Hi,

First of all, thank you for developing this plugin! I have a question regarding its compatibility with Templater and Journals.

I use the Templater and the Journals plugin to generate daily entries, and my template includes different sections. I’d love to have handwriting fields automatically inserted into these sections without having to add them manually each time.

Would it be possible to integrate this plugin with Templater? If so, how does it behave when generating a new journal entry—does it create a new note for each handwriting field, or does it insert them directly into the template-generated note?

Ideally, I’d like the handwriting fields to be automatically inserted when my journal entry is created, leveraging Templater’s functionality. Do you think this would work, or is there another approach you’d recommend?

Thanks in advance for your help!

@SchneiderSam
Copy link
Author

@daledesilva any recommendations? :)

@ichmoimeyo
Copy link

ichmoimeyo commented Feb 21, 2025

Based on #65 | [@marcaddeo] I created a daily template ...

<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] ← <% tp.date.now("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %> → [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
<% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>

EXISTING Handwriting

{
	"versionAtEmbed": "0.3.4",
	"filepath": "Ink/Writing/2025.2.21 - 11.19am.writing"
}

NEW Handwriting
<% tp.file.cursor(1) %>
<%*
tp.hooks.on_all_templates_executed(() => app.commands.executeCommandById("ink:create-handwritten-section"));
-%>

I. At the top it should produce, something like ...
<< 2025-02-20 ← 2025-02-21 → 2025-02-22>>
Friday, February 21, 2025

II. Followed by an EXISTING handwritten note, that has to be created once in the daily template with ...

ctrl-p
Ink: New handwriting section

to create an actual file, e.g.
"filepath": "Ink/Writing/2025.2.21 - 11.19am.writing"

[i.e. not copy & pasted in, as that wouldn't produce a .writing file.

III. Next comes a NEW handwriting section that will be different for every day ....

NEW Handwriting
<% tp.file.cursor(1) %>
<%*
tp.hooks.on_all_templates_executed(() => app.commands.executeCommandById("ink:create-handwritten-section"));
-%>

IV. Works on Desktop & Mobile

 

Templater Settings: Automatic Jump to cursor

Image

 

reading mode

Image

editing mode

Image

handwriting

Image

 

Plugins:

Ink

Templater [Settings: Automatic Jump to cursor]

Calendar

@daledesilva
Copy link
Owner

Thanks for posting @ichmoimeyo . I remembered that someone had created a work around but couldn't find it in the issues.

Unfortunately I don't have anything to add. But this is great info for me to look at in the future to help make it better.

@daledesilva daledesilva added enhancement New feature or request parked I'll consider it in the future once other functionality is addressed and removed question / thought labels Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parked I'll consider it in the future once other functionality is addressed
Projects
None yet
Development

No branches or pull requests

3 participants