Clipboard History Switcher (but for named clipboard)?

Since code snippets are plain text, rather than what you are doing, I would store them as text - they don't need to be clipboards at all.

There are a couple ways I would do this.

  • Use the Prompt With List action to prompt for them,
  • Depending on the snippets, I would probably name them when they are created.
  • The snippets could be stored in a Keyboard Maestro Dictionary
  • Create a macro for each snippet. Use the technique from Create Text Expansions Macro to create the text expansion, but have all your macros use a single hot key and then Keyboard Maestro will use the Conflict Palette to select among them.
  • Since you might end up with a lot of snippets, you might need to have multiple columns in the conflict palette, and you might not want that by default, so an alternative would be to have the created macros in a specific group (which they would be anyway) and a separate macro that uses the Show Palette of Macros action to show them.

There is no way to get create a Switcher-like window with a set of specified clipboards. You could create all the Named Clipboards with the snippets and use the Named Clipboard Switcher, but I doubt it's going to be a great result, and either of the above solutions will probably be better.

1 Like