RealRaven2000 / SmartTemplates

Thunderbird Add-on: SmartTemplates
http://smarttemplates.quickfolders.org/
Other
25 stars 15 forks source link

preheader description contains "null" and missing other parameters #321

Open RealRaven2000 opened 2 months ago

RealRaven2000 commented 2 months ago

There is a problem in the description of %preheader()%

image

What is should show: The preview text must be contained within double quotes, which also may contain the *clipboard* keyword. Alternatively you can use clipboard directly or *selection* (that last one only works when used from a Smart Snippet)

The json text:

  "preheader.text": {
    "message": "The preview text must be contained within double quotes, which also may contain the $clipboardStarred$ keyword. Alternatively you can use $clipboardLiteral$ directly or $selectionLiteral$ (that last one only works when used from a Smart Snippet)",
    "placeholders": {
      "clipboardLiteral": {
        "content": "$1",
        "example": "clipboard"
      },
      "selectionLiteral": {
        "content": "$2",
        "example": "\"*selection*\""
      },
      "clipboardStarred": {
        "content": "$3",
        "example": "*clipboard*"
      }
    }
  },
RealRaven2000 commented 2 months ago

Fixed in this version below. I also fixed a spacing issue for the variables frame in small screen widths:

image

smartTemplate-fx-4.8.2pre15.zip


To tryout this version, download the zip file and then drag it into Thunderbird Add-ons Manager (without extracting)