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 | ||
Clipboards [2017/03/21 22:34] JMichaelTX [Paste from History] Revise to show use of Set CB to Past CB |
Clipboards [2017/09/04 04:24] peternlewis [Display History] |
||
---|---|---|---|
Line 3: | Line 3: | ||
**Keyboard Maestro supports several different types of clipboards** | **Keyboard Maestro supports several different types of clipboards** | ||
- | * **System Clipboard** -- the standard [[https://en.wikipedia.org/wiki/Clipboard_%28computing%29|Mac OS X Clipboard]] used by all Mac apps | + | * **System Clipboard** — the standard [[https://en.wikipedia.org/wiki/Clipboard_%28computing%29|Mac OS X Clipboard]] used by all Mac apps |
* The alternate name "**[[token:CurrentClipboard|Current Clipboard]]**" is used in some Macro Actions | * The alternate name "**[[token:CurrentClipboard|Current Clipboard]]**" is used in some Macro Actions | ||
- | * **Named Clipboards** -- Copy of System Clipboard, or other Named Clipboard, created by user for future use | + | * **Named Clipboards** — Copy of System Clipboard, or other Named Clipboard, created by user for future use |
* There is usually a default *Named Clipboard* named "Default Clipboard", do not confuse this with the Mac’s *System Clipboard*. | * There is usually a default *Named Clipboard* named "Default Clipboard", do not confuse this with the Mac’s *System Clipboard*. | ||
- | * **Past Clipboards** -- Prior Versions of the *System Clipboard* stored in the Keyboard Maestro [[#Clipboard_History]] | + | * **Past Clipboards** — Prior Versions of the *System Clipboard* stored in the Keyboard Maestro [[#Clipboard_History]] |
+ | * **Trigger Clipboard** — The clipboard referenced by a [[trigger:Clipboard Filter]] menu selection (or the System Clipboard otherwise). | ||
===== System Clipboard ===== | ===== System Clipboard ===== | ||
Line 19: | Line 20: | ||
* [[action:Paste_from_Named_Clipboard]] | * [[action:Paste_from_Named_Clipboard]] | ||
* and many others | * and many others | ||
+ | |||
+ | The System Clipboard is a complicated entity, and often contains many different flavors of the same data last copied from an app. To better understand how Keyboard Maestro processes the System Clipboard, see [[https://forum.keyboardmaestro.com/t/ulysses-no-text-in-clipboard/6742/23?u=jmichaeltx | this Forum post by @PeterNLewis]]. In particular, this post deals with getting plain text from the System Clipboard. | ||
===== Clipboard History ===== | ===== Clipboard History ===== | ||
Line 36: | Line 39: | ||
To trigger the Clipboard History Switcher, press the default hotkey of <key>⌘</key><key>⌃</key><key>⇧</key><key>V</key> (or a hot key of your choosing). | To trigger the Clipboard History Switcher, press the default hotkey of <key>⌘</key><key>⌃</key><key>⇧</key><key>V</key> (or a hot key of your choosing). | ||
- | {{:km-clipboard-switcher.png?nolink|}} | + | {{ manual:clipboardhistoryswitcher.png?672 |Clipboard History Switcher Window }} |
You can also use the [[collection:Clipboard_History]] within the [For Each action](/action/For_Each). | You can also use the [[collection:Clipboard_History]] within the [For Each action](/action/For_Each). | ||
For more info, see [Clipboard History Switcher documentation](/manual/Clipboard_History_Switcher). | For more info, see [Clipboard History Switcher documentation](/manual/Clipboard_History_Switcher). | ||
- | |||
==== Paste from History ==== | ==== Paste from History ==== | ||
- | There is no one built-in Macro or Action that will paste from the _Clipboard History_, but you can easily do this by making use of the [[action:Set_Clipboard_to_Past_Clipboard]] _Action_. | + | There is no one built-in Macro or Action that will paste from the _Clipboard History_, but you can easily do this by making use of the [[action:Set_Clipboard_to_Past_Clipboard]] _Action_. |
- | For example, to paste from the 2nd item on the _ClipBoard History_ (where the latest, most recent item is #1), you can use these three _Actions_ in a macro: | + | For example, to paste from the 2nd item on the _Clipboard History_ (where the latest, most recent item is #1), you can use these three _Actions_ in a macro: |
{{:paste-from-clipboard-history-km-7.3.png?nolink|}} | {{:paste-from-clipboard-history-km-7.3.png?nolink|}} | ||
Line 84: | Line 86: | ||
* [[action:Paste]] | * [[action:Paste]] | ||
* [[action:Delete_Past_Clipboard|Delete Current or Past Clipboard]] in the history of the System Clipboard | * [[action:Delete_Past_Clipboard|Delete Current or Past Clipboard]] in the history of the System Clipboard | ||
+ | * [[action:Set_Variable_to_Text#Set_to_The_Clipboard|Set Variable to Text Action]] using [[token:CurrentClipboard|]] [[Tokens|Token]] | ||
* **All Clipboards** | * **All Clipboards** | ||
* [[action:Display_Clipboard]] | * [[action:Display_Clipboard]] |