Closed FelipeRearden closed 1 year ago
Hello @Quorafind !!!
Forgive me for bothering you with this question but you are my last hope to try to get this working.
This is about the new feature that lets us the Search in a Tab.
For a Templater script, I need to target the Search Tab when it is the Active Note
I have tried something like this ...
<%* const activeLeaf = app.workspace.activeLeaf; const viewState = activeLeaf.getViewState(); if ( viewState.type === "search" ) { new Notice("lorem", 5000); } else { New Notice("ipsum", 5000); } %>
But I get nothing :(
Would you mind helping to return search when the Search Tab is the Active Note?
search
I dont know Obsidian API and I was extremely confident that this was the right method :(
Thanks for reading this 🙏
No response
I found the issue.
Templater cant run scripts that are outside markdown files. That's why it is not working.
Feature Requested
Hello @Quorafind !!!
Forgive me for bothering you with this question but you are my last hope to try to get this working.
This is about the new feature that lets us the Search in a Tab.
My Issue
For a Templater script, I need to target the Search Tab when it is the Active Note
I have tried something like this ...
But I get nothing :(
Would you mind helping to return
search
when the Search Tab is the Active Note?I dont know Obsidian API and I was extremely confident that this was the right method :(
Thanks for reading this 🙏
Relevant Screenshot
No response
Checklist