trashhalo / obsidian-webhooks

Connect obsidian to the internet of things via webhooks
MIT License
178 stars 4 forks source link

Conditions for appending #9

Closed cjl12377 closed 2 years ago

cjl12377 commented 2 years ago

Thanks for making this app! I was wondering if its possible to allow conditions to add a line or space to any input to a note?

trashhalo commented 2 years ago

@cjl12377 Im not sure I understand. Maybe you can say more about what you'd like?

jamie9090 commented 2 years ago

I think I can comment here as I'm experiencing a similar issue.

I'm basically appending a note with a line. However, my current integration tool can't detect a line break before/after.

So I'm using the
command to manually add line breaks when appending, but it has its own formatting issues, especially when using Obsidian as bit more of a WYSIWIG editor.

So I think what CJ is requesting is a way to have a setting where we automatically add a line break when appending.

I would like to put my hand up for that one too!

trashhalo commented 2 years ago

Would you like a checkbox in the plugin to always append a new line. or would you like a option on the webhook url to append a new line if set. &newline=true.

On Wed, Mar 9, 2022, at 12:24 AM, jamie9090 wrote:

I think I can comment here as I'm experiencing a similar issue.

I'm basically appending a note with a line. However, my current integration tool can't detect a line break before/after.

So I'm using the command to manually add line breaks when appending, but it has its own formatting issues, especially when using Obsidian as bit more of a WYSIWIG editor.

So I think what CJ is requesting is a way to have a setting where we automatically add a line break when appending.

I would like to put my hand up for that one too!

— Reply to this email directly, view it on GitHub https://github.com/trashhalo/obsidian-webhooks/issues/9#issuecomment-1062566825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLKUYXXFKJ3PPKKKB7SL3U7AYZNANCNFSM5I4DRWTQ. You are receiving this because you commented.Message ID: @.***>

jamie9090 commented 2 years ago

I would love a checkbox if possible! But happy with whatever is easiest On 10 Mar 2022, 12:35 AM +1100, Stephen Solka @.***>, wrote:

Would you like a checkbox in the plugin to always append a new line. or would you like a option on the webhook url to append a new line if set. &newline=true.

On Wed, Mar 9, 2022, at 12:24 AM, jamie9090 wrote:

I think I can comment here as I'm experiencing a similar issue.

I'm basically appending a note with a line. However, my current integration tool can't detect a line break before/after.

So I'm using the command to manually add line breaks when appending, but it has its own formatting issues, especially when using Obsidian as bit more of a WYSIWIG editor.

So I think what CJ is requesting is a way to have a setting where we automatically add a line break when appending.

I would like to put my hand up for that one too!

— Reply to this email directly, view it on GitHub https://github.com/trashhalo/obsidian-webhooks/issues/9#issuecomment-1062566825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLKUYXXFKJ3PPKKKB7SL3U7AYZNANCNFSM5I4DRWTQ. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

trashhalo commented 2 years ago

@jamie9090 done. plugin version 0.0.5 has a new line setting. it defaults to no new line, but you can set it to linux/unix/mac style new lines or windows style new lines.

jamie9090 commented 2 years ago

Amazing. Thank you