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

[Noob] Question on syntax

Open b1uegh0st opened this issue 3 years ago • 2 comments

Hi,

I try (on Windows) to save this into the setting (the syntax) but I cannot seem to save it. Want to know if there's something wrong with the syntax.

Context: I am trying to have an expander for a format of table that I use frequently.

        {
		"regex": "^22$",
		"replacement": 
        "
        |     |     |     |
        | --- | --- | --- |
        |     |     |     |
        |     |     |     |
         "
	}

b1uegh0st avatar Sep 12 '21 20:09 b1uegh0st

Try switching the quotes to `, like:

        {
		"regex": "^22$",
		"replacement": 
        `
        |     |     |     |
        | --- | --- | --- |
        |     |     |     |
        |     |     |     |
        `
	}

konodyuk avatar Sep 12 '21 20:09 konodyuk

Hi thanks for the reply.

Somehow I still cannot save it:

  • Paste the thing in (with the comma , before the next object. image
  • Click else where.
  • Click on another plugin.
  • Click back.

image

b1uegh0st avatar Sep 13 '21 02:09 b1uegh0st