Hi friends, I just built my first PopClip snippet and trying out different ideas.
What I wanna do is when I click the icon, it should open the specified URL, but if I hold the options key, I should open a different URL. How can I accomplish this?
I’ll just add that I would not recommend using Command as a modifier. This will likely have a global meaning in popclip in future. Likewise, avoid Shift and Control as well. the only modifier to be usable long-term is Option, which I will keep in reserve for extensions to do as they wish with.
The plans for modifiers, BTW…
Shift - will be used to specify background tab opening (for URL actions)
Command - will be used to perform “action chaining” where a second action can be chained onto the first
Control - will be used, along with right click, to enter a submenu. This of course will be a good way to have multiple actions under one icon in future…
That said feel free to use any modifiers you want for now, with the caution that you may have to redo things in future. This isn’t yet “Official” but when it is, I will document it.