User Tools

Site Tools


trigger:Typed_String

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
trigger:Typed_String [2016/04/08 10:35]
AlainLifchitz add forum link
trigger:Typed_String [2016/04/08 10:38]
AlainLifchitz add internal links
Line 13: Line 13:
 You can optionally allow typed string triggers to work regardless of case, regardless of diacriticals,​ or to remember the case of the typed string and mimic the case in any Insert Text actions. You can limit the typed string trigger to only work after a word break (which means any non-alphanumeric character, or any case that cancels the sequence as described above). You can optionally allow typed string triggers to work regardless of case, regardless of diacriticals,​ or to remember the case of the typed string and mimic the case in any Insert Text actions. You can limit the typed string trigger to only work after a word break (which means any non-alphanumeric character, or any case that cancels the sequence as described above).
  
-Alternatively,​ you can use a regular expression to match a trigger. The trigger is matched against the end of the typing sequence, so there is an implicit \z on the end of the regular expression. Note that it would be useless to try to match a word break at the end with \b or some sort of positive or negative lookahead assertion as the typing sequence always ends at the current character. So for example "​ell\b"​ would match "​hell"​ even if the next character you planned on typing was an "​o"​.+Alternatively,​ you can use a [[:Regular Expressions|regular expression]] to match a trigger. The trigger is matched against the end of the typing sequence, so there is an implicit \z on the end of the [[:Regular Expressions|regular expression]]. Note that it would be useless to try to match a word break at the end with \b or some sort of positive or negative lookahead assertion as the typing sequence always ends at the current character. So for example "​ell\b"​ would match "​hell"​ even if the next character you planned on typing was an "​o"​.
  
 You can use the %TriggerValue% [[:​Tokens|Text Token]] to determine the exact text that was typed. You can use the %TriggerValue% [[:​Tokens|Text Token]] to determine the exact text that was typed.
trigger/Typed_String.txt ยท Last modified: 2023/11/01 00:14 by peternlewis