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
Previous revision
Next revision Both sides next revision
trigger:Typed_String [2016/08/22 23:48]
peternlewis Added note about a short pause.
trigger:Typed_String [2017/08/16 02:21]
peternlewis
Line 13: Line 13:
 As above, typing Shift-Space will cancel the sequence, as will any control key or command key (eg Command-.), any macro execution, switching applications,​ clicking the mouse, or not typing for more than a few seconds. As above, typing Shift-Space will cancel the sequence, as will any control key or command key (eg Command-.), any macro execution, switching applications,​ clicking the mouse, or not typing for more than a few seconds.
  
-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
 + 
 +You can have the case of the typed string and affect Insert Text actions. This means that if you type the string ​in all uppercase, the resulting ​Insert Text will also be uppercased. ​ If you type just the first letter in uppercase, just the first resulting Insert Text will be uppercase. 
 + 
 +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).  **Note** that this means the match will happen only after you type a word break and then the Typed String - Keyboard Maestro des not know what you will type in the future so it cannot restrict matches to only happen if you plan to type a word break next.
  
 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"​.
Line 26: Line 30:
  
 Note also that there is a relatively prevalent [[http://​wiki.keyboardmaestro.com/​Troubleshooting#​Not_Being_Able_To_Enter_a_Hot_Key|third party / system bug]] Note also that there is a relatively prevalent [[http://​wiki.keyboardmaestro.com/​Troubleshooting#​Not_Being_Able_To_Enter_a_Hot_Key|third party / system bug]]
- that makes the system think it is permanently in a password ​filed, and thus will prevent typed string triggers from working.+ that makes the system think it is permanently in a password ​field, and thus will prevent typed string triggers from working.
  
 ===== See Also ===== ===== See Also =====
Line 55: Line 59:
 - [[https://​forum.keyboardmaestro.com/​t/​customize-keyboard-shortcut-in-conflict-palette/​3682/​2|Customize keyboard shortcut in conflict palette?]] - [[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://forum.keyboardmaestro.com/​search?​q=Typed%20String%20trigger|Keyboard Maestro Forum topics about Typed String trigger]]
  
trigger/Typed_String.txt · Last modified: 2023/11/01 00:14 by peternlewis