This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
Text_Fields [2019/06/25 08:27] peternlewis |
Text_Fields [2019/07/01 01:08] peternlewis [Text Fields] |
||
---|---|---|---|
Line 35: | Line 35: | ||
You can insert text tokens into text fields using the *Edit ➤ Insert Token* menu. If you hold the option key down while selecting a token, you will get help on that token (from this wiki). | You can insert text tokens into text fields using the *Edit ➤ Insert Token* menu. If you hold the option key down while selecting a token, you will get help on that token (from this wiki). | ||
- | Text token fields also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters `\a`,`\b`,`\e`,`\f`,`\t`,`\r`,`\n` (bell,backspace,escape,form feed,tab,return,line feed). | + | Text token fields also process %NN% or %NNNN% or %NNNNNN% as arbitrary hex unicode characters (eg %41% is an A, %01F300% is 🌀), and (except for regular expression fields) process backslashed characters \a,\b,\e,\f,\t,\r,\n (bell,backspace,escape,form feed,tab,return,line feed). |
- | Text token fields also support (v9.0+) text case conversion escapes. The most common use is to change the case of an interpolated variable or other token, as well as in [[action:Search_and_Replace|Search and Replace by regular expression]] action. The conversion escape codes are: | + | Text tokens can also include the [[manual:Tokens#Text_Case_Conversions|Text Case Conversion]] characters like `\U` and `\L`. |
- | * `\U` converts everything up to the next `\L` or `\E` to uppercase. | + | In most text fields, you can select (in the BUTTON{{{⚙}}} menu) whether to process normally, or just tokens (not backspashed characters) or do no text processing at all. Alternatively, to include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\). |
- | * `\L` converts everything up to the next `\U` or `\E` to lowercase. | + | |
- | * `\u` converts the next character to uppercase. | + | |
- | * `\l` converts the next character to lowercase. | + | |
- | + | ||
- | You can combine these into \l\U to make the first character lowercase and the remainder uppercase, or \u\L to make the first character uppercase and the remainder lowercase. \E turns off case conversion. You cannot use \u or \l after \U or \L unless you first stop the sequence with \E. | + | |
- | + | ||
- | + | ||
- | + | ||
- | To include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\). | + | |
===== Script Fields ===== | ===== Script Fields ===== | ||
Line 75: | Line 66: | ||
- [[https://forum.keyboardmaestro.com/t/how-to-insert-return-between-appended-clipboard-snippets/5862/2|How to Insert RETURN between appended clipboard snippets]] | - [[https://forum.keyboardmaestro.com/t/how-to-insert-return-between-appended-clipboard-snippets/5862/2|How to Insert RETURN between appended clipboard snippets]] | ||
+ |