Skip to content

How can I use Templater to get a prompt for text, append it as a link in today's daily note, then create a page with that as the title? #574

Closed Answered by Oneechan69
Oneechan69 asked this question in Q&A
Discussion options

You must be logged in to vote

I got a solution with Templater which I described here: https://www.reddit.com/r/ObsidianMD/comments/16ps7ev/how_can_i_get_a_prompt_for_text_append_it_as_a/.

Edit: I had asked Phind and Perplexity.ai how to solve this and they didn't give good answers, so I gave one web search plugin for ChatGPT Plus: Webpilot a shot. I did a bunch of back and forth with it for JS snippets, giving it the link [https://docs.obsidian.md] to look through. I did a bunch of editing and made this Templater template, which I added a hotkey for:

// Check if the page passed in exists, if not then create it.
function checkPage(pageName) {
    page = app.vault.getAbstractFileByPath(`${pageName}.md`)
    return page …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Oneechan69
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants