Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Request: Add ribbon icon for create_new_note_from_template

Open NumesSanguis opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I want to create a new note that invokes the template I selected. All with 1 action that works on both PC and mobile.

Describe the solution you'd like An additional ribbon icon that, unlike the current icon, also creates a new note before inserting the selected template. Optionally this icon can be switched on/off in the settings.

Describe alternatives you've considered

  • I've set a hotkey that triggers the action "Templater: Create new note from template". This works on PC, but I cannot invoke this on mobile.
  • Create a new note first, then insert a template. Requires 2 actions though, breaking the flow.
  • Create a template that creates a new note in the template. This gives trouble with the async part and I'm having trouble to get this to work nice and easily.

Additional context The current icon (implemented here) invokes insert_template(). In the same code file there is a function create_new_note_from_template(folder?: TFolder) which seems invokable without too much effort, but I might be wrong as I haven't written an Obsidian plugin before.

NumesSanguis avatar Jul 17 '22 10:07 NumesSanguis

I've set a hotkey that triggers the action "Templater: Create new note from template". This works on PC, but I cannot invoke this on mobile.

You can set a button for this on the mobile toolbar IIRC. Does that not work?

AB1908 avatar Jul 30 '22 08:07 AB1908