Template is applied on mobile when typing

Things I have tried

this bug makes mobile unusable for months, after some 10 ish line in a note a my templater Default / path template is applied to note

Screen recording of issue: https://imgur.com/a/ZGV7t0K

What I’m trying to do

Have this not happen again.

Turn on Settings > Community Plugins > Restricted Mode, then restart Obsidian. Does the problem still happen?

Then it doesn’t happen. It’s highly likely the Templater plugin. More specifically, template hotkeys. They somehow get triggered on mobile. But I use them a lot on desktop. Can’t I turn them off only on mobile?

What kind of Templater templates are you using? Normally Templater should only be run when you actually insert a template, with one exception and that is that you’re using some variant over the <%+ templates. This could be run, and re-run in some cases (both on mobile and desktop).

But all the “normal” template stuff, like <% or <%*, should just run once, and be done with it. Are you having dataview queries in the note you’re experiencing this with? Are you in live preview when this occurs?

I am in live preview, the template is this:

creation_date: <% tp.date.now("yyyy-MM-DDTHH:mm") %> 
publish: false

When I type the letter “n” on obsidian mobile it invokes the template…

the shortcut on mac is shift + n to insert that template, there is something about that, i think it’s a bug on obsidian’s part, i guess i should try changing it to shift + t for example and see if it’s still applied with t

Hahahah… but it also gets applied for any letter that gets inserted below 11-ish line. I really have no damn clue why Templater is doing that to me!

No dataview query either.

Have you tried a different keyboard?

Or try turning off Predictive Text if you’re on Samsung/Android? (There’s a bug with it that causes another problem, probably won’t fix this but you can try).

Yeah, it happened for all keyboards. I’ll post this as an issue on Templater Git because it’s the issue with that plugin.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.