sawhney17 / logseq-smartblocks

MIT License
171 stars 12 forks source link

Is there a way to let the Template overwrite the Button, instead of inserting it under the Button? #37

Closed Skyryd closed 1 year ago

Skyryd commented 1 year ago

I build a template for my Journal with multiple Smartblock-Buttons. So I can deside, which section of the daylie journal I want to get shown....e.g. a button for "Workout", which then inserts my workout template.

Is there any way to let the inserted template overwrite the button itself, instead of insert the template under the button?

sawhney17 commented 1 year ago

Hmm. Maybe something like the mod+t smart block insertion window? On 23 Jul 2022 at 8:33 PM +0530, Skyryd @.***>, wrote:

I build a template for my Journal with multiple Smartblock-Buttons. So I can deside, which section of the daylie journal I want to get shown....e.g. a button for "Workout", which then inserts my workout template. Is there any way to let the inserted template overwrite the button itself, instead of insert the template under the button? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Skyryd commented 1 year ago

What do you mean with "mod+t"?

Sorry, I'm new on GitHub:) In my case, it would be a nice feature, to get rid of the button automatically, after i clicked it. So...button clicked...template inserted...no other need for the button, cause I never want to click it again in this scenario.

sawhney17 commented 1 year ago

Well you can click command t or control t on windows to trigger an insertion window. Or try /insert smartblock. May be better for your workflow. On 24 Jul 2022 at 6:47 PM +0530, Skyryd @.***>, wrote:

What do you mean with "mod+t"? Sorry, I'm new on GitHub:) In my case, it would be a nice feature, to get rid of the button automatically, after i clicked it. So...button clicked...template inserted...no other need for the button, cause I never want to click it again in this scenario. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Skyryd commented 1 year ago

Thx for your replies:)

Maybe it's just a very niche request, but I like the idea, the button has an option to get overwritten bei clicking (inserting hier template) him.