yinan Posted May 30 Share Posted May 30 (edited) Hi there! I am happy to share my recently created workflow, Alfred Homebrew. Download from here to try it out! What it does is basically show you a list of homebrew casks and formulas via the `cask` and `brew` keywords. After tab completion of the selected item or typing the full name, it will show you the details. Hope you guys will find this useful, and I greatly appreciate any feedback! Edited May 30 by yinan Elvis Gastelum, pseudometa and cands 1 2 Link to comment
Elvis Gastelum Posted May 30 Share Posted May 30 Would be great if you have the ability to uninstall as well, is that possible? brew-uninstall [name] bu [name] Maybe with one of this two keywords, idk im not an expert haha. i didn't install something with the workflow because i dont need to install something yet but looks great, good job Link to comment
yinan Posted May 31 Author Share Posted May 31 Hi @Elvis Gastelum, Thanks for your feedback and thank you very much for liking it! I've updated the workflow to v1.1. Here are the changes: - Merge the `cask` and `brew` keys to a single `brew` key, but you can still filter results by adding `cask` and `formula`. - Add `leaves, lists, outdated` keywords to show leaves, and install outdated lists. In the `outdated` list, support upgrades one-by-one or all-at-once with a single click. - Show specific commands and information depending on install status (`Enter` on any search results to view status and applicable commands) - Separate commands menu and information menu. Information is shown by `tab-complete`, and the commands are shown by `Enter`. - Add a `Back to search` button in the commands menu. Regarding uninstall commands, now that the code will check if a package is installed (and whether outdated) after you press `Enter` on the selected item in the search menu. For example, you can type `list` or `brew` or `leaves` to show your installed packages and enter to view the commands submenu, so there is an additional `enter` before running any commands. In principle, you can also show commands in the search menu like v1.0 did. but since there is a check for install status before show commands, there will be a delay if you show them in the main menu. In addition, I think it is better to view the information before running any commands (To avoid some accidental operation.) More commands will be reviewed and added to the workflow, please have a try on v1.1 and let me know if you like. Elvis Gastelum 1 Link to comment
Elvis Gastelum Posted May 31 Share Posted May 31 3 hours ago, yinan said: Hi @Elvis Gastelum, Thanks for your feedback and thank you very much for liking it! I've updated the workflow to v1.1. Here are the changes: - Merge the `cask` and `brew` keys to a single `brew` key, but you can still filter results by adding `cask` and `formula`. - Add `leaves, lists, outdated` keywords to show leaves, and install outdated lists. In the `outdated` list, support upgrades one-by-one or all-at-once with a single click. - Show specific commands and information depending on install status (`Enter` on any search results to view status and applicable commands) - Separate commands menu and information menu. Information is shown by `tab-complete`, and the commands are shown by `Enter`. - Add a `Back to search` button in the commands menu. Regarding uninstall commands, now that the code will check if a package is installed (and whether outdated) after you press `Enter` on the selected item in the search menu. For example, you can type `list` or `brew` or `leaves` to show your installed packages and enter to view the commands submenu, so there is an additional `enter` before running any commands. In principle, you can also show commands in the search menu like v1.0 did. but since there is a check for install status before show commands, there will be a delay if you show them in the main menu. In addition, I think it is better to view the information before running any commands (To avoid some accidental operation.) More commands will be reviewed and added to the workflow, please have a try on v1.1 and let me know if you like. Perfect, I will try it the next time I need to install some cask/formula 🎉 yinan 1 Link to comment
yinan Posted June 1 Author Share Posted June 1 (edited) v1.2 Update: Add name/description in the commands submenu Now you can quickly access the commands menu via info keywords Back to list button when nothing is found in the commands submenu fix: show different upgrade and uninstall options for casks and formula Edited June 2 by yinan Link to comment
yinan Posted June 2 Author Share Posted June 2 v1.3 Update: Update: Add show commands after tab completion. I found actually loading commands is not so slow, so I add show-commands in the default search (if it significantly slows down rendering info after tab completion, please submit an issue) Removed `info` keywords, since it is now unnecessary. Bug fix: press enter on URLs in the commands submenu will run them in the terminal. Link to comment
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