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:38]
AlainLifchitz add internal links
trigger:Typed_String [2016/05/11 03:56]
alain add internal and forum links
Line 15: Line 15:
 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"​. 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 [[token:TriggerValue|%TriggerValue% ​Text Token]] to determine the exact text that was typed.
  
 If multiple typed string triggers match from the end (eg "​hello"​ and "​llo"​),​ the longest will be used. If there are multiple matches with the same length (as can occur if you use the case or diacritic options), the conflict palette will be displayed, offering a selection of the matching macros. In this case, if all of the typed string triggers have the "​Simulate N deletes before executing"​ option enabled, the deletes will be simulated immediately and then the conflict palette will be displayed; otherwise the deletes will not be simulated. If multiple typed string triggers match from the end (eg "​hello"​ and "​llo"​),​ the longest will be used. If there are multiple matches with the same length (as can occur if you use the case or diacritic options), the conflict palette will be displayed, offering a selection of the matching macros. In this case, if all of the typed string triggers have the "​Simulate N deletes before executing"​ option enabled, the deletes will be simulated immediately and then the conflict palette will be displayed; otherwise the deletes will not be simulated.
Line 29: Line 29:
  
 ---- ----
 +
 +=== Tokens ===
 +
 +* [[token:​Trigger|%Trigger%]]
 +* [[token:​TriggerBase|%TriggerBase%]]
 +* [[token:​TriggerValue|%TriggerValue%]]
 +* [[:​Tokens|See all Tokens]]
  
 === Triggers === === Triggers ===
Line 34: Line 41:
 * [[:​Triggers|See all Triggers]] * [[:​Triggers|See all Triggers]]
  
-==== Documentation ​====+==== Topics ​====
  
 * [[:Regular Expressions]] * [[:Regular Expressions]]
Line 44: Line 51:
 - [[https://​forum.keyboardmaestro.com/​t/​generic-or-universal-text-expansion/​3331/​2|Generic or Universal Text Expansion]] - [[https://​forum.keyboardmaestro.com/​t/​generic-or-universal-text-expansion/​3331/​2|Generic or Universal Text Expansion]]
 - [[https://​forum.keyboardmaestro.com/​t/​keyboard-maestro-append-suffix-ation-to-typed-word-macro/​3335|Keyboard Maestro “Append suffix '​-ation'​ to typed word” Macro]] - [[https://​forum.keyboardmaestro.com/​t/​keyboard-maestro-append-suffix-ation-to-typed-word-macro/​3335|Keyboard Maestro “Append suffix '​-ation'​ to typed word” Macro]]
 +- [[https://​forum.keyboardmaestro.com/​t/​customize-keyboard-shortcut-in-conflict-palette/​3682/​2|Customize keyboard shortcut in conflict palette?]]
  
 - [[https://​www.google.fr/​search?​q=site:​forum.keyboardmaestro.com+Typed+String+trigger|Keyboard Maestro Forum topics about Typed String trigger]] - [[https://​www.google.fr/​search?​q=site:​forum.keyboardmaestro.com+Typed+String+trigger|Keyboard Maestro Forum topics about Typed String trigger]]
- 
  
  
  
trigger/Typed_String.txt · Last modified: 2023/11/01 00:14 by peternlewis