In combination with a shortcut, this creates a Drafts-like “just start writing” button for your Obsidian Daily Notes.

This workflow requires the following plugins:

Set up

  1. Install, enable, and set up the above plugins
  2. Set up the following template for Templater:
<%*
if (this.app.workspace.activeLeaf.view.currentMode.type != "source"){this.app.commands.executeCommandById("markdown:toggle-preview");}
let editor = this.app.workspace.activeLeaf.view.editor;
let timestamp = tp.date.now("HH:mm");
let linePrefix = "\n- [ ] " + timestamp + " ";
editor.focus();
if (this.app.isMobile) {
editor.setCursor(editor.lastLine());
editor.replaceSelection(linePrefix)
editor.setCursor(editor.lastLine());;
} else {
const initialLines = editor.lineCount();
editor.setCursor({ line: initialLines, ch: 0 });
editor.replaceSelection(linePrefix);
const finalLines = editor.lineCount();
editor.setCursor({ ch: 0, line: finalLines });
}
%>
  1. Set up the template above as a command via Hotkeys for Templates
  2. Install and customize the shortcut on your iPhone/iPad
  3. Add the shortcut to your homescreen (click the … button when editing the shortcut and select “Add to home screen”)

That’s it!

14 Likes

Could be great if it could work for Android :slight_smile:

1 Like

I’m not sure what automation tools Android offers. You would just need to be able to build and launch a URL from the home screen.

This would be great for an ‘Inbox’ funtionality, to capture things like links and images in the text.

For sure. It should be trivial to reformat the shortcut to target a specific note instead of today’s date.

1 Like

This is a super underappreciated Forum post and workflow. Thanks so much for sharing @ryanjamurphy!

Q: is this supposed to yield a choice the way your does in the video when we click or hold on the Home Screen shortcut? It just opens the days note for me. And is it supposed to add a time stamp? It doesn’t do that for me?