rabirabirara / obsidian-jelly-snippets

A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
MIT License
24 stars 0 forks source link

[FR] Trigger on Enter #3

Closed AaronKnowls closed 1 year ago

AaronKnowls commented 1 year ago

Loving your plugin so far, I've switch from Text Snippets.

I'd love to have the option to trigger on enter, although I'm aware this might have some issues I'm not aware of since the Text Snippets plugin doesn't have it either, or maybe it's just not that useful for that many people.

In any case, just for your consideration, since it would great in my workflow to have that option.

Thank you for your work!

rabirabirara commented 1 year ago

I was also thinking about adding this. That is literally the most useful key to have snippets trigger on.

From an immediate perspective, pressing Enter in Obsidian seems to register the newline first before triggering the snippet; this wasn't the case with Space or Tab, which is why those keys worked. I'll give it a serious thought when I'm less busy with schoolwork!

AaronKnowls commented 1 year ago

That makes a lot of sense, thanks for the useful information.

I'm happy to read that you'll give it try :)

Thank you so much, rabirabirara

rabirabirara commented 1 year ago

Ok, update your plugin. There should be an option for this now. It should also work better than before, in a sense. Thank you for the suggestion!

rabirabirara commented 1 year ago

Actually, DON'T update your plugin. Found a terrible bug... I really should have tests.

rabirabirara commented 1 year ago

Okay... it should work correctly now... hopefully... I need to pay attention to my coding practices. See v0.1.4 and update your plugin.