obsidian-macros icon indicating copy to clipboard operation
obsidian-macros copied to clipboard

FR: Add small utilities like Keypresses

Open chrisgrieser opened this issue 4 years ago • 4 comments

Thanks for this useful plugin!

I think it would be a great addition to the plugin if you could add small "utilities" to it, e.g. key strokes or copypasting the clipboard, etc.

chrisgrieser avatar Aug 15 '21 12:08 chrisgrieser

Don't you think something like that is already covered by Plugins like Templater?

phibr0 avatar Aug 15 '21 13:08 phibr0

well, not everyone has the coding skills to implement that easily in Templater

chrisgrieser avatar Aug 15 '21 13:08 chrisgrieser

Hm you are probably right. I will think about it

phibr0 avatar Aug 15 '21 15:08 phibr0

I have a use case for this. I'm using the Breadcrumbs plugin, which has a command to copy an index to the clipboard. I want to create a macro that copies that index, then pastes it at the cursor. That way I can assign a hotkey to it and do the whole thing in one keypress.

I can think of two different ways to implement this. I'm not sure which would be the most sensible.

Option 1

Add simple commands (such as copy/paste) to this plugin.

Option 2

Use a separate plugin that adds such commands to the command palette (and so exposing them to Macros). Hotkeys++ is that sort of plugin, but it doesn't have many commands in it. The advantage of this option is that it keeps the Macros plugin simple. But the disadvantage is it adds unnecessary commands to the command palette.

Thanks in advance!

laurastephsmith avatar Mar 15 '22 02:03 laurastephsmith