You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support selection as parameter for replaceText - so we can transform selected text from smart fragments #289
We want to do replacements in the selected text, for instance, the string
Menu >> submenu >> command
should be transformed into
Menu » submenu » command
Additionally we could add some markup to display the text in italic (or wrap a layout span around it). Example for such a smart fragment:
<i>%replaceText(">>","»",selection)%</i>
Ideally the text (html) should still be selected after the replacement operation, this way we could concatenate multiple such commands for some powerful formatting.
Here is new version with the funciton added. Result:
By highlighting a line below (even if it has additional HTML such as bold or colored) we can transform it to a cursive string replacing all instances of ">>" with the Guillemet (right pointing double angle quotation mark) by using the following fragment:
<i>%replaceText(">>","»",selection)%</i>
At the moment if removes the existing selection state, so re-selecting the inserted string would be a nice-to-have. But this is already very useful to me!
Found another regression that had problems with multiple smartTempalte variables in the same line (overmatching and combining multiple lines) such as To: "%to(name)%"<%to("( %",mail)%>
Activity
RealRaven2000 commentedon Apr 29, 2024
Here is new version with the funciton added. Result:
By highlighting a line below (even if it has additional HTML such as bold or colored) we can transform it to a cursive string replacing all instances of ">>" with the Guillemet (right pointing double angle quotation mark) by using the following fragment:
At the moment if removes the existing selection state, so re-selecting the inserted string would be a nice-to-have. But this is already very useful to me!
smartTemplate-fx-4.5pre42.zip
To install, download archive and drop into Thunderbird Add-ns Manager (don't extract contents).
RealRaven2000 commentedon Apr 29, 2024
Found some regressions that made
%matchTextFromBody()%misbehave. Fixed in the version below:smartTemplate-fx-4.5pre44.zip
To install, download archive and drop into Thunderbird Add-ns Manager (don't extract contents).
#289
#289
RealRaven2000 commentedon Apr 29, 2024
Added documentation in Variables tab + localized to most supported languages:
smartTemplate-fx-4.5pre56.zip
To install, download archive and drop into Thunderbird Add-ns Manager (don't extract contents).
RealRaven2000 commentedon May 1, 2024
Found another regression that had problems with multiple smartTempalte variables in the same line (overmatching and combining multiple lines) such as
To: "%to(name)%"<%to("( %",mail)%>smartTemplate-fx-4.5pre57.zip
this one should be more stable
To install, download archive and drop into Thunderbird Add-ns Manager (don't extract contents).
RealRaven2000 commentedon May 14, 2024
Implemented in 4.5 released on 14/05/2024