Jump to content

Keylue (Key Clue): Alfred 2 Workflow for Menu Bar and Keyboard Maestro Hot Key Search


zhaowu

Recommended Posts

Keylue (Key Clue): Alfred 2 Workflow for Menu Bar and Keyboard Maestro Hot Key Search

 

It is like KeyCue which helps you memorize or quickly launch hot keys. But it is still too much to pinpoint a shortcut from a 50+ entries with your eyeball. This workflow gives the freedom to search and filter the results and execute them from Alfred.

 

 

Usage

 

Just one keywords kc: Show menu items and Keyboard Maestro hot keys. Hit Enter to execute. The feedback results for each application are cached for speedy response. The cached results are reloaded if it is older than an hour. To refresh staled feedback, append ! after the keyword. For example, kc ! query.

 

chrome.png

 

Installation

 

Reference

 

- Menu Search

- ctwise/menudump

 

 

 

 

[KeyCue]: http://www.ergonis.com/products/keycue/

Link to comment
  • 1 month later...
  • 8 months later...
  • 2 months later...

Hi, Only km works. kc produces:

 

# Logfile created on 2014-11-11 09:53:45 +0700 by logger.rb/41954
E, [2014-11-11 09:53:45 #65537] ERROR -- me.zhaocai.keylue: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
  #<Psych::SyntaxError: (<unknown>): control characters are not allowed at line 1 column 1>
  /Library/Ruby/Gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:370:in `parse'  
/Library/Ruby/Gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:370:in `parse_stream'  
/Library/Ruby/Gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:318:in `parse'  
/Library/Ruby/Gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:245:in `load'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/lib/menu_items.rb:26:in `generate_items'  
./main.rb:172:in `generate_menu_feedback'  
./main.rb:102:in `on_feedback'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.3/lib/alfred.rb:215:in `block in start_handler'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.3/lib/alfred/handler.rb:126:in `block in each_handler'  
(eval):53:in `each'  
(eval):53:in `each'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.3/lib/alfred/handler.rb:125:in `each_handler'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.3/lib/alfred.rb:214:in `start_handler'  
/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.A44F1970-1349-4255-B733-69929C2F6F84/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.3/lib/alfred.rb:83:in `with_friendly_error'  
./main.rb:332:in `<main>'

 This is since upgrading to 10.10.

Link to comment
  • 2 years later...

(Using Alfred 3) Either with "km" and "kc" as keywords, I get error messages. For example with "kc":

[2016-12-10 13:50:53][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/bundler/setup (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from ./main.rb:7:in `<main>'
[2016-12-10 13:50:56][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/bundler/setup (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from ./main.rb:7:in `<main>'
[2016-12-10 13:50:57][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/bundler/setup (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from ./main.rb:7:in `<main>'

 

Link to comment
  • 4 weeks later...

This works great for me in Alfred 3 (3.2.1, macOS 10.12.2), and it's speedy for most applications (for some reason Path Finder is quite slow). Thank you!
 

Edit: I noticed that I see the same behavior as tsvoronos noted above. However, the way I use it I prefer to separate menu bar search and Keyboard Maestro search.

Edited by cands
Link to comment
  • 9 months later...
12 hours ago, evanfuchs said:

read elsewhere it's an issue with Ruby bundles 1.8/2.0 in the workflow and High Sierra running v 2.3

 

Usually, you can fix that by digging around in the workflow and renaming the directory the Ruby gems (libraries) are in to match the new Ruby version. So, if it’s called “2.0”, rename it to “2.3”.

Link to comment

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...