Is there any way to make a hotkey to paste a specified line in note?

What I’m trying to do

I want to paste easily and quickly that line
<sup>[link](sample link that is changeable )<sup>
whenever I want to add something that uses this format without a need of searching for it in my notes, copying and then pasting.

Is there any plugin which support something like that?

You can use a simple Templater Js snippet you can bind to a key combo.

<%*
clipboard = (await tp.system.clipboard());
tR += "<sup>[" + clipboard + "](" + clipboard + ")<sup>";
_%>

Needed:

  • Templater plugin and script with hot key set up
  • Link in clipboard

Line will be pasted at cursor position.

A similar thread where user shows how they set up Templater:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.