Jump to content
zhaowu

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

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/

Share this post


Link to post

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.

Share this post


Link to post

(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>'

 

Share this post


Link to post

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

Share this post


Link to post

Any way to get this workflow working again on High Sierra? I read elsewhere it's an issue with Ruby bundles 1.8/2.0 in the workflow and High Sierra running v 2.3, but these words mean little to me.

Share this post


Link to post
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”.

Share this post


Link to post

Alternatively you can use this to search keyboard maestro macros and this for searching the menu bar quickly. I used Keylue before but replaced it fully with these two workflows.

Edited by nikivi

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...