I use this Alfred workflow to do this:
The code is open source if you do want to transfer it to KM macro.
For more information, see the wiki Searching the Forum for Answers section.