ArianaKhit / text-snippets-obsidian

Snippets plugin for obsidian
187 stars 23 forks source link

[FR] Keep the current indentation when inserting snippets #57

Open user30535 opened 1 year ago

user30535 commented 1 year ago

For example, I have the following snippet:

Callout : > [!Note]$nl$> 

I want to insert the snippet inside a list, at the following location:

- A list

  Callout

After expanding Callout, I expect to obtain the following code:

- A list

  > [!Note]
  > 

In other words, when a snippet includes multiple lines, I expect the new line mark $nl$ to be able to behave just like how Shift + Enter behaves, i.e., inserting a new line while keeping the current indentation.

This will be super helpful! Thank you!