I’m trying to add an advanced replacement for Daily Note. I would like Obsidian with Templater to do the next things for me by hot key:
- activate the tab with today’s daily notes if this tab is already open
- open a tab with today’s daily notes if this tab is not opened
- create file with today daily not if it isn’t created yet
- put text
———⟨ YYYY-MM-DD HH:mm:ss ⟩————
to end of file - put cursor on the next line and scroll down to the maximum
But only success only with latter two. Also, this.app.workspace.activeLeaf.view.editor.scrollTo(0, 999...999);
is not good, but working. Could you help with replace of this?
At first three I stuck to found methods. How to:
- get a list of opened tabs?
- activate some found tab?
Others probably could be done by Templater methods. Ofc, I’ll appreciate any code which can help me. Thanks!