lumetrium / obsidian-teleprompter

Plugin for Obsidian designed to seamlessly integrate teleprompter functionality into your note-taking workflow.
https://lumetrium.com
GNU General Public License v3.0
54 stars 4 forks source link

Open Prompter to specific heading #22

Open MelGrubb opened 4 months ago

MelGrubb commented 4 months ago

I apologize if this exists already, but I would like to decorate my script with "Prompt" buttons that start the prompter at a specific heading, and I can't quire work out the syntax, if it even exists. So far, what I have is a meta-bind button that looks like this:

style: primary
label: Prompt
action:
  type: command
  command: teleprompter:open-app:new-window

I get a "Prompt" button, and it does, in fact, open the prompter in a separate window, but it always starts at the top of the file. I'm a little new to meta-bind, and only found Teleprompter today, so it could be that I just don't get it yet. I'll keep trying, but if I'm overlooking something obvious, or trying something impossible, please let me know.

MelGrubb commented 4 months ago

I think, ideally, the syntax would be something like teleprompter:open-app:new-window:#Heading#Subheading if that's possible. I am not an Obsidian plugin developer. I have no idea what this looks like behind the curtain.

lumetrium commented 3 months ago

It's not currently possible, but I like the idea! Thanks for the syntax proposal, it looks good. Can't say yet if that specific syntax can be implemented, I'll look into it more closely when I have the time.