gleitz Posted October 24, 2022 Share Posted October 24, 2022 (edited) howdoi Instant coding answers via Alfred ⚡ Never open your browser to look for help again ⚡ Overview I am the maintainer of this workflow, and of the `howdoi` repository. Visit Howdoi in the Alfred Forum and view the workflow on Github. Installation Make sure howdoi is installed on your machine with brew install howdoi. Usage Invoke the Alfred workflow with the keyword Question Keyword (default: `howdoi`) and then your query. The output will be shown as large type and also copied to the clipboard. Use ⌘↩ to open the answer's web page instead. New to howdoi? You can get started by running: howdoi howdoi Useful Links howdoi github page Edited January 26 by gleitz Updated to latest version of install instructions Wxkkeup 1 Link to comment Share on other sites More sharing options...
xilopaint Posted November 29, 2022 Share Posted November 29, 2022 @gleitz why don't you use a script filter instead of a keyword+notification to display the output? Link to comment Share on other sites More sharing options...
gleitz Posted November 29, 2022 Author Share Posted November 29, 2022 8 minutes ago, xilopaint said: @gleitz why don't you use a script filter instead of a keyword+notification to display the outpu That's a good idea! I'll give that a spin for the next release. https://www.alfredapp.com/help/workflows/inputs/script-filter/ Link to comment Share on other sites More sharing options...
xilopaint Posted November 30, 2022 Share Posted November 30, 2022 1 hour ago, gleitz said: That's a good idea! I'll give that a spin for the next release. https://www.alfredapp.com/help/workflows/inputs/script-filter/ I thought a bit more about my suggestion and there's a problem I didn't think of at first. Some outputs have multiple lines. Now I'm not sure if a script filter is the best option anymore. Perhaps a Terminal Command object would be more suitable. Link to comment Share on other sites More sharing options...
vitor Posted November 30, 2022 Share Posted November 30, 2022 @gleitz I started making a PR yesterday for other changes to make it suitable for inclusion in the Gallery, but if you’re updating it, better share those first. Instead of recommending installing the CLI with pip, recommend Hombrew as that’s what we’re recommending too. Alfred 5 itself includes the Homebrew locations in PATH, meaning the Configuration to set the path to the CLI can be removed. Adding a Text Field Configuration for the Keyword (or Script Filter) is good, though. It means users will be able to change it but you can keep your default. As for the conversation above, a Script Filter could indeed be fine. Even if some examples have multiple lines, just showing the first is already helpful. But in the last step, Large Type might work better than a notification. Link to comment Share on other sites More sharing options...
gleitz Posted November 30, 2022 Author Share Posted November 30, 2022 Great ideas! Go ahead with the PR @vitor as I'm traveling this week and won't have time to put some of these ideas into action. A useful flag for howdoi will be -j for JSON output to populate the text field. You could also pass -n3 to get up to three potential answers. The last time I checked, homebrew was reluctant to add utilities that could already be installed via pip. I agree that the way this plugin is configured now is annoying. Link to comment Share on other sites More sharing options...
vitor Posted November 30, 2022 Share Posted November 30, 2022 23 minutes ago, gleitz said: The last time I checked, homebrew was reluctant to add utilities that could already be installed via pip. howdoi already exists in Homebrew’s main tap! That’s why I could confidently recommend switching one for the other. gleitz 1 Link to comment Share on other sites More sharing options...
vitor Posted January 25 Share Posted January 25 @gleitz Sent a pull request. Link to comment Share on other sites More sharing options...
gleitz Posted January 26 Author Share Posted January 26 Thanks for the help @vitor - new release `0.0.2` available at https://github.com/gleitz/alfred-howdoi/blob/v0.0.2/Howdoi.alfredworkflow Link to comment Share on other sites More sharing options...
vitor Posted January 26 Share Posted January 26 Will be in the Gallery soon, at http://alfred.app/workflows/gleitz/howdoi/. gleitz 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now