Extension for pressing various keyboard shortcuts

By email:

What I’m looking for is something like this: double click a word and a bubble pops up, where u can see extensions like “copy”, “paste” and “self-defined”, click on the self-defined bubble and a predefined keyboard shortcut will be triggered.

And to support this, there will be a setup pane for self-defined extension where you can set your favorite keyboard shortcuts as an extension and rename them so you can tell which is which when they pop up.

Do you think this is possible?

Background info: I’m a big fan of Better Touch Tool, and I like to use keyboard shortcuts a lot.

Not quite, as in not with a nice GUI pane for setting the shortcuts. But you can definitely do it with a snippet like this:

#popclip
name: My KB Shortcuts
requirements: [] # always appear
icon: iconify:material-symbols:keyboard
actions: # just silly examples
- { title: Cow, icon: iconify:mdi:cow, key combo: command h }
- { title: Pig, icon: iconify:mdi:pig, key combo: command option p }
- { title: Sheep, icon: iconify:mdi:sheep, key combo: control shift h }

(The above block is an extension snippet - select the text it then click “Install Extension” when PopClip appears.)

Here’s how to install that:
CleanShot 2023-02-14 at 08.49.59

To customise the icons, titles and shortcuts, just copy and paste that into a text editor like TextEdit (I recommend putting it in plain text mode) and change it to suit you.

To pick your own icons go to http://iconify.design/ and search there.

2 Likes

Thanks for this tip. I am trying to create a keyboard shortcut to Apple’s Notes.app, specifically, I’d like to press a button to highlight text, create a block quote or create a monostyled text. Below is the code I use:

#popclip
name: Notes.app KB Shortcuts
requirements: [] # always appear
icon: iconify:material-symbols:keyboard
actions:
- { title: Highlight, icon: iconify:bx:highlight, key combo: shift command e }
- { title: Block quote, icon: iconify:clarity:block-quote-line, key combo: command ‘ }
- { title: Monostyle, icon: iconify:grommet-icons:monospace, key combo: shift command m }

The highlight and monostyle works. But, the block quote didn’t. I am using the correct keyboard shortcut, which is command ’ as per the screenshot of the Format menu items from Notes.app

So, I am wondering if maybe, Popclip can’t read the key ’ ?