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
Next revision Both sides next revision
manual:Filters [2016/06/01 03:32]
127.0.0.1 external edit
manual:Filters [2021/10/15 01:43]
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.
 * Hard wrap or unwrap paragraphs. * Hard wrap or unwrap paragraphs.
Line 14: Line 14:
 * 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. +* Quote for AppleScript,​ JavaScript, Shell (bash) Script, Swift or JSON
-Get or delete the last path component or the path extension+Convert a JSON object string to Compact ​or Pretty format. 
-* Get the basename of the path (ie the name without directory or extension).+* Get parent of a path
 +* Get the filename component of a path. 
 +* Get the basename 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 sort, or shuffle 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.  ​You can also process text using an AppleScript or shell script, for example the shell script:
  
-<code bash> +{{ perl-pe-filter.png?​nolink&​583 ​|}}
-pbpaste | perl -pe '​tr/​A-Z/​a-z/' ​pbcopy +
-</​code>​+
  
 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.txt · Last modified: 2024/01/29 03:38 by peternlewis