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

Auto Jump To Cursor Issues with daily notes #1112

Open
SpencerTackett opened this issue May 22, 2023 · 6 comments
Open

Auto Jump To Cursor Issues with daily notes #1112

SpencerTackett opened this issue May 22, 2023 · 6 comments
Labels
awaiting response More information has been requested, waiting to hear from the submitter bug Something isn't working

Comments

@SpencerTackett
Copy link

Hi there,

I have a daily note template that looks like this:

`---
Aliases: <% tp.date.now("YYYY-MM-DD") %>

[[ <% tp.date.now("YYYY-MM-DD - ddd MMM D", -1, tp.file.title, "YYYY-MM-DD - ddd MMM D") %>|Yesterday]] | [[<% tp.date.now("YYYY-MM-DD - ddd MMM D", 1, tp.file.title, "YYYY-MM-DD - ddd MMM D") %>|Tomorrow]]

<% tp.file.cursor() %>`

I have "automatic jump to cursor" enabled as well as "trigger templater on new file creation."

When I trigger this template manually everything works as expected. However, when the note is created automatically via calendar plugin or "open today's daily note" in the command palette, the note is created, the cursor jumps to the correct place, but then the text "<% tp.file.cursor() %>" is re-inserted to the file. Does anyone know what would be causing this?

@EvanEdwards
Copy link

EvanEdwards commented Jun 22, 2023

I am seeing this occur intermittently with version 1.16.0 (current as of my writing this). It didn't occur until I modified my template and dug into settings recently, although since it is intermittent, I can not say what edit or setting change triggered the bug.

@Zachatoo
Copy link
Collaborator

I use tp.file.cursor() in my daily notes and I haven't experience this issue. I would appreciate if someone can narrow down what is causing this issue or confirm that this has been fixed.

@Zachatoo Zachatoo added the awaiting response More information has been requested, waiting to hear from the submitter label Nov 14, 2023
@EvanEdwards
Copy link

As a bit of information: I have not seen the issue recently. It is plausible it has been resolved, or was due to a conflict with some other Plugin that I no longer use (I wish there was an option to clear all but one plugin for testing purposes for this reason).

@davidolrik
Copy link

I still have this issue, as described here: #1232 (comment)

@joyous-coder
Copy link

As a bit of information: I have not seen the issue recently. It is plausible it has been resolved, or was due to a conflict with some other Plugin that I no longer use (I wish there was an option to clear all but one plugin for testing purposes for this reason).

I disable all my extensions but templater, the issue still exists.

@Zachatoo
Copy link
Collaborator

Zachatoo commented May 8, 2024

@joyous-coder Is it the same issue as described in #1232 where you're in reading mode, and therefore there is nowhere to put your cursor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response More information has been requested, waiting to hear from the submitter bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants