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 | ||
manual:Preferences [2020/09/02 17:07] JMichaelTX [Clipboard] ADD how to disable Clipboard History |
manual:Preferences [2021/03/21 20:26] peternlewis [Preferences Set by Command Line] |
||
---|---|---|---|
Line 92: | Line 92: | ||
===== Preferences Set by Command Line ===== | ===== Preferences Set by Command Line ===== | ||
- | You can configure various preferences using defaults write from the Mac OS X Terminal. Some preferences will take effect immediately, but others may require the editor or engine to be relaunched. | + | You can configure various preferences using defaults write from the Mac OS X Terminal. Some preferences will take effect immediately, but others may require the editor or engine to be relaunched. These preferences are documented here only to provide utility. Their behaviour may change in the future, or have unexpected consequences. |
==== Editor ==== | ==== Editor ==== | ||
Line 165: | Line 165: | ||
defaults write com.stairways.keyboardmaestro.engine MaxClipboardHistory -int 200 | defaults write com.stairways.keyboardmaestro.engine MaxClipboardHistory -int 200 | ||
</code> | </code> | ||
+ | |||
+ | :!: **Alert**: You should **never** set the max number of items to zero.\\ | ||
+ | If you set the max number of items to zero, then the Copy action will fail. | ||
**Maximum Clipboard Flavor Size** (default 100MB) | **Maximum Clipboard Flavor Size** (default 100MB) | ||
Line 171: | Line 174: | ||
defaults write com.stairways.keyboardmaestro.engine ClipboardFlavorMaximumSize -int 100000000 | defaults write com.stairways.keyboardmaestro.engine ClipboardFlavorMaximumSize -int 100000000 | ||
</code> | </code> | ||
+ | |||
+ | **Ignored Clipboard Flavors** | ||
+ | |||
+ | You can add additional clipboard flavors to be ignored using: | ||
+ | |||
+ | <code bash> | ||
+ | defaults write com.stairways.keyboardmaestro.engine ExtraIgnoredClipboardFlavors "com.whatever.badflavor" | ||
+ | </code> | ||
+ | |||
+ | The string should be a bar (`|`) separated list of flavors (technically a regular expression). These flavors will be excluded from the clipboard when Keyboard Maestro reads the clipboard. | ||
+ | |||
+ | You can also write to `IgnoredClipboardFlavors`, which will set the entire list of ignored clipboard flavors, but that is a bad idea since the flavors that are ignored, are ignored for a reason, and overwriting the list will produce negative results. | ||
**Maximum Position of Concealed (Password) Items** (default 10) | **Maximum Position of Concealed (Password) Items** (default 10) |