Named Clipboard Switcher: is it possible to add Display and Edit Clipboard options using modifier keys?

I use Named Clipboards a lot to display reference technical charts.
The Named Clipboard Switcher is very useful to view the list of named clipboards, copy & paste clipboard contents, etc
I would like to be able to -

  • trigger the named clipboard switcher
  • select one of the named clipboards in the list
  • perhaps using a modifier key, either display or edit that named clipboard.
    thanks in advance for your time and help

As long as you haven't disabled the Switcher Group, that's already done for you. Just check the macros in that group.

That is something you can already do, and I presume you don't want software to do that for you. How would a macro know which clipboard you want to select?

Would a hotkey be adequate? If so, there should be an easy solution, which I may write if it would satisfy you.

I presume you are only interested in text clipboards, not image clipboards. I'm not sure what you mean by editing an image clipboard.

EDIT: I am running into a problem in that I can't seem to use AppleScript to assign a text value to a specific clipboard whose name is stored in a text variable. I think I will need help from one of the people here who can create KM actions using XML, as that's beyond me at this time. Is there anyone here who can create a KM action using XML that can assign the contents of a text variable into a named clipboard whose name is in a different text variable?

1 Like

I was only referring to using the ↑ ↓ keys or type ahead. Do not need a macro.

Thanks very much. I have to go out and will get back to you tomorrow. Very sorry, and thank you VERY MUCH !!!

I don't see any "Switcher" Group
Do you mean the Clipboard Group ? If so, I don't see any macro to display or edit.

thank you

image

I am only talking about named clipboards, and definitely both text and images.

thank you

What application do you want to use for editing images? I can't create an image editor all by myself.

1 Like

Maybe I renamed mine, sorry.

That could be the correct name of the group. The clipboard shortcuts are near the top of that group.

Not editing images. I do that with snagit and cleanshot

I only want to be able to cut and paste images as well as write, cut and paste text into a named clipboard containing text and images.

My apologies for the confusion.

just to be clear: I am specifically referring to named clipboards.

I'm not certain I can solve this for you, although I'm thinking hard about it. As I wrote, there's a piece of code I need help with. And now that you say you need image editing, I'll possibly need even more help.

And even if I do succeed, there's no guarantee you will like my code. It just seems like a fun challenge.

There is a misunderstanding. I don't need image editing. I just have to be able to paste images. thank you

Okay, but that ability already exists in the current Named Clipboard Switcher in the cogwheel for each image.

Just to make sure that there is no misunderstanding: cogwheel for named clipboards which are a combination of text and images. I don't want to be a pain in the neck. I just want to make sure that we understand each other. thank you again.

You are not a pain in the neck. This request is a fun request.

Can you explain what you mean there? Naturally the features on the cogwheel work for both text and images, so I'm not sure what your point is.

1 Like

OK, We understand each other. It's as if I wanted to add "edit" and "display" to the cogwheel options

The Switcher Group is a standard group for Keyboard Maestro (I have just checked and yes, it is still referred to in the Wiki). The macros can be reloaded, if desired, from Window > Macro Library > Switchers.

1 Like

thank you. I tried your suggestion and get an error message stating that the group is already in my Keyboard Maestro.
I do have a group called Clipboards which contains the following macros. Are the macros the same as in your Switcher group ?
thanks very much

1 Like

No, because I have added macros to the group (and deleted one of the default macros), and it appears that you have added macros to your copy of the group too. However, you will see that the first five macros there are the ones that also appear listed under the menu item. :+1:

1 Like

Edit and display where? Do you want to do these by opening KM's "Settings..." with the appropriate Named Clipboard selected or do you want to use an external editor such as Text Edit?

Edit in KM→ Pref→ Clipboards and Display as HTML.

Basically, I use the following 2 macros to edit and display my named clipboards.

I would like the process to be less messy and more efficient, for example using

  • Prompting for user input with a list of named clipboards
  • editing would remain (I imagine) as above in KM→ Pref→ Clipboards. I don't see any alternative
  • display would remain the same except that I would not have to write a different macro for each named clipboard by using (for example) a prompt for user input with a list
  • ideally I would display the list and either edit or display the named clipboard based on a modifier like ⌘ when I click on the named clipboard in the list.

thank you very much

KBM Forum Edit TEMPLATE Named Clipboards in KBM copy.kmmacros (27.6 KB)
KBM Forum Display KBM Gestures & Shortcuts .kmmacros (30.5 KB)