text-snippets-obsidian icon indicating copy to clipboard operation
text-snippets-obsidian copied to clipboard

[FR] Keep the current indentation when inserting snippets

Open user30535 opened this issue 2 years ago • 0 comments

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!

user30535 avatar Nov 24 '22 06:11 user30535