shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Add Prepend and Append logic to Command buttons #169

Closed pangolinsec closed 5 months ago

pangolinsec commented 1 year ago

Enhancing command buttons to enable them to prepend or append command output (relative to the button).

This PR effectively resolves Issue #119 (https://github.com/shabegom/buttons/issues/119). By assigning a template to a hotkey (a workaround proposed by ladyMonolid in the obsidian forum: https://forum.obsidian.md/t/buttons-with-templater-and-metaedit-trying-to-update-frontmatter-value-but-it-keeps-reverting/53384), command buttons can run a template.

Since this PR permits command buttons to now prepend or append content, it permits the same functionality of a prepend or append template button.

lightheaded commented 9 months ago

Could this be merged to address an issue many people seem to be having?