User Tools

Site Tools


manual:Filters

Differences

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

Link to this comparison view

Next revision
Previous revision
manual:Filters [2016/06/01 03:32]
127.0.0.1 external edit
manual:Filters [2024/01/29 03:38] (current)
peternlewis
Line 1: Line 1:
 ====== Filters ====== ====== Filters ======
  
-Keyboard Maestro includes a variety of filters that can be applied to either the system clipboard, Named~~Clipboards,​ or variables. ​ For clipboards, the filters preserve style information to whatever degree is possible. ​ Use either ​the [[/action/Filter_Variable|Filter ​Variable action]] or [[/​action/​Filter_Clipboard|Filter ​Clipboard ​action]] to apply filters.+Keyboard Maestro includes a variety of filters that can be applied to either the system clipboard, Named~~Clipboards,​ or variables. ​ For clipboards, the filters preserve style information to whatever degree is possible. ​ Use the [[/​action/​Filter|Filter action]] to apply filters.
  
 The filters are: The filters are:
  
-* Remove Styles (ie, make the clipboard plain text – not applicable to variables). +* Remove Styles (clipboards only, make the clipboard plain text). 
-* Set line endings to Mac, Unix or Windows/​DOS. +* Set line endings to Mac (CR), Unix (LF) or Windows/​DOS ​(CRLF)
-* Trim Whitespace.+* Trim Whitespace. ​ ​(Remove leading and trailing whitespace from a string.)
 * Hard wrap or unwrap paragraphs. * Hard wrap or unwrap paragraphs.
 * Lowercase (all characters),​ Lowercase First (just the first character). * Lowercase (all characters),​ Lowercase First (just the first character).
 * Uppercase (all characters),​ Uppercase First (just the first character). * Uppercase (all characters),​ Uppercase First (just the first character).
 * Capitalize (all words) or Title Case (intelligently uppercase certain first letters). * Capitalize (all words) or Title Case (intelligently uppercase certain first letters).
 +* Sentence Case (first character of each sentence) (v11.0+).
 * Change quotes to Smart, Dumb or French quotation marks. * Change quotes to Smart, Dumb or French quotation marks.
 * Encode HTML or non-ASCII HTML entities. * Encode HTML or non-ASCII HTML entities.
 +* Encode HTML with numeric entities.
 * Decode HTML entities. * Decode HTML entities.
 * Generate an HTML list. * Generate an HTML list.
-* Percent Encode or Decode a URL. +[Percent Encode](https://​developer.mozilla.org/​en-US/​docs/​Glossary/​percent-encoding) ​or Decode a URL.  Percent Encode will encode **all** non-alphanumeric characters. 
-* Quote for AppleScript,​ JavaScript, Shell (bash) Script, ​or Swift. +* Encode for Regular Expression. 
-Get or delete the last path component or the path extension+* Encode or decode Base64. 
-* Get the basename ​of the path (ie the name without directory or extension).+* Calculate MD5. 
 +* Styled Text to/from RTF plain text (v11.0+)
 +* Quote for AppleScript,​ JavaScript, Shell (bash) Script, Swift, JSON or Process Tokens
 +Convert a JSON object string to Compact ​or Pretty format. 
 +* Get parent of a path
 +* Get the filename component of a path. 
 +* Get the base name of the path (ie the filename ​without directory or extension)
 +* Get or delete the path extension. 
 +* Get the display name of a path.
 * Expand tilde (~) paths, or abbreviate with a tilde. * Expand tilde (~) paths, or abbreviate with a tilde.
 * Resolve symlinks, or standardize the path. * Resolve symlinks, or standardize the path.
 +* Get the URL scheme, host, port, user, password, path, fragment or query.
 +* Sort, reverse (first<​=>​last),​ or shuffle (perpetuate) lines.
 * Delete or bullet (•) control characters. * Delete or bullet (•) control characters.
-* Calculate an expression and return the result, see the [[Calculations]] section. +* Calculate an expression and return the result, see the [[manual:Calculations]] section. 
-* Process Text Tokens and return the result, see the [[Text Tokens]] section. +* Process Text Tokens and return the result, see the [[manual:Tokens]] section. 
-* Get the value of a named variable ​or named clipboard.+* Get the value of a named Variable ​or Named Clipboard.
 * Count the characters, words or lines and return the result. * Count the characters, words or lines and return the result.
  
-We will likely expand the list of possible filters, so if you have specific filtering needs that you think might be of general interest, please let us know.  In the mean time, remember that you can apply scripted filters using an AppleScript or shell script, for example the shell script:+We will likely expand the list of possible filters, so if you have specific filtering needs that you think might be of general interest, please let us know.
  
-<code bash> +You can also process text using an AppleScript or shell script, for example the shell script: 
-pbpaste | perl -pe 'tr/A-Z/​a-z/' ​pbcopy + 
-</​code>​+{{ perl-pe-filter.png?​nolink&​583 ​|}}
  
 is roughly equivalent to the Lowercase filter, except that it only works with ASCII characters. is roughly equivalent to the Lowercase filter, except that it only works with ASCII characters.
  
manual/Filters.1464766357.txt.gz · Last modified: 2016/06/27 02:47 (external edit)