Jump to content

Recommended Posts

Posted

In macOS keyboard setting, you can reassign the Caps Lock key to be a <kbd>RIGHT CONTROL</kbd>:

 

image.png.375b198a38ff118e58057b05b11aa015.png

 

This allows you to use the Caps lock like a hyper key in the sense now right and left keys are differentiable. In BetterTouchTool this is the recommended way to enable hyper key like functionality. BUT sadly Alfred cannot differentiate pressing left or right modifier keys, it triggers for both. It would be great if Alfred could distinguish left and right modifier keys. 

 

In the meantime, is there a way to trigger e.g. Snippets or Clipboard managers with Applescript rather than depend on the Alfred keybindings? There is the search command where I could inject snip or clip:

 

image.png.a57ef9166bd2346313b41534531b1d7e.png

But it won't go directly to the clipboard / snippet manager.

Posted

My current workaround, BTT runs this applescript as an example to trigger clipboard manager using right-control+c:

 

tell application "Alfred 5"
	search "Clipboard"
	tell application "System Events"
		keystroke return
	end tell
end tell

 

Posted

@iandol Instead of AppleScript, I keep it simple and use Alfred's external trigger via URL and trigger them via BTT! Also helps to pass in some arguments if needed.

Posted
12 hours ago, sepulchra said:

@iandol I think this thread is what you are looking for.

 

Thanks for the link, however that URL opens the preferences for snippets not the viewer panel. For that person they ended up having to:

 

but to do it I've had to connect a snippet of ;; to a Run Script object with some Applescript that fires off my Snippet Viewer shortcut

 

I can't use a shortcut as Alfred doesn't support the right [^] key, so using the Applescript I posted above to trigger a search for the clipboard manager is still the only solution AFAICT. 

 

It may be a new feature request is in order: add some new URL handlers:

 

`alfred://runfeature/snippets` -- open snippet viewer

`alfred://runfeature/clipboard` -- open clipboard manager

 

etc.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...