Using Alfred to open your GitHub repositories in the browser
mmazzarolo.com
mmazzarolo.com
Lets you search through all your GitHub stars (including own GitHub repos).
I have over 16,300 stars and even with that amount of repos, the search is instant due to SQLite db used. (https://github.com/nikitavoloboev/github-stars)
What's cool is that you can modify actions on a repo. So I made modification so that cmd+return would open issues, opt+return would clone repo to ~/clones & open it in VSCode, cmd+shift+return will do file search on repo instantly etc. (https://github.com/nikitavoloboev/small-workflows)
Until I started using Emacs seriously. Now I use Emacs for opening URLs, for triggering Google searches (and saving my searches via org-capture), for saving URLs via org-protocol and org-capture, for taking notes, for journaling, for task management (previously OmniFocus, then Things3), and for all kinds of workflows. It is the ideal application framework, with one of the most versatile programming languages I can think of (Lisp); it made me stop using Python for my day-to-day scripting (love Python!).
Emacs (and Lisp) is a tool for the next decades of my life.
The thing is: Emacs is so much more than editing. Just to give an example: I keep a list of meds for my retired parents in on org-table, and every few weeks I need to request a prescription from their doctor and order the meds from their pharmacist. I have a few lines of Elisp to select the meds that my parents need, generate a message for the pharmacist, generate a Fax document for the doctor, and a bunch of tasks (* TODO Send fax to Doctor, * TODO Waiting for prescription from Doctor, * TODO Send prescription to pharmacist, * TODO Waiting for meds from pharmacist, etc) in my org-agenda task list. Triggered with one key combo. By being able to start python or shell scripts from within Lisp code, I am able to automate everything that I run on my Mac, and pass data from one workflow to another.
This wasn't easy in any editor I used. And none of these editors were meant to be used like that, because their main purpose was / is to edit files, not control Spotify with it, write emails, read rss feeds, and whatnot.
Yes, VS Code goes in that direction, but I don't know many laymans who extend VS Code. They are rather devs with a focus on JS.
After all, my workflow is to precious to put in any non-free ecosystem ;)
Having said that, I had a quick go at making a one-liner for this from the terminal. Note, this is using HTTPie instead of cURL.
xdg-open $(http get https://api.github.com/orgs/your-org/repos | jq -r '.[].html_url' | fzf)So moving from Alfred to Command E seems cool right now. But I don’t have faith it’ll keep up updates or keep up at all in 1-2 years.
https://github.com/temochka/macos-automation/blob/master/src...
This allows me to quickly look up similarly named repos while keeping typing to a minimum (e.g., "m c" finds "mysql_client").
I also incorporated the refresh script under a different keyword into the same workflow. This way I can quickly refresh if I don't see a repo that should be there.
It leverages Salesforce REST API and it runs entirely locally.
i made a similar tool for the command line that keeps my downloads organized and knows how to search for them. it also has functionality for returning the repo url so i have an open alias that just opens the repo in github