Live data from Hacker News

Using Alfred to open your GitHub repositories in the browser

mmazzarolo.com

11–20 of 32 posts

Re: Using Alfred to open your GitHub repositories in the browser

#11
post #4

I used to use Alfred for these kind of workflows, for years. For opening apps, URLs, for triggering Python or bash scripts, and for searching files of course. It’s a wonderful app. 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…

Im also in group of people that moved to Emacs and never looked back.

After all, my workflow is to precious to put in any non-free ecosystem ;)

Re: Using Alfred to open your GitHub repositories in the browser

#12
I use the gh client quite heavily and tend to have most of the repos I'm interested in already cloned.

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)

Re: Using Alfred to open your GitHub repositories in the browser

#13
post #7
post #4

I used to use Alfred for these kind of workflows, for years. For opening apps, URLs, for triggering Python or bash scripts, and for searching files of course. It’s a wonderful app. 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…

Everytime I read about some advanced emacs workflow, it just blows my mind. I mainly use Emacs (doom emacs actually) as a glorified note taking and task manager app with org-mode.

I think there is a big misconception about what Emacs is (or is not). Many see it as an editor with advanced capabilities, and then they start comparing it to IDEs or editors like VS Code and the like, and finally they think Emacs falls short in comparing to these tools.

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.

Re: Using Alfred to open your GitHub repositories in the browser

#14
post #2

Neat. Another workflow that you can use is https://github.com/lox/alfred-github-jump 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…

Been following you for a while. Thanks for this recap of stuff I forgot to start using!

Re: Using Alfred to open your GitHub repositories in the browser

#15

While it does involve installing another tool, I've found Command E [0] quite good for the use case you've described. As an Alfred lover myself, this implementation is quite cool. Thanks for sharing! [0] https://getcommande.com

I’m always afraid of these sorts of apps dying off. Previously all the cloud aggregator apps died off (Grep, CloudMagic). I think Grep was even an HN company.

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.

Re: Using Alfred to open your GitHub repositories in the browser

#18
post #13
post #7

Earlier quoted context omitted.

Everytime I read about some advanced emacs workflow, it just blows my mind. I mainly use Emacs (doom emacs actually) as a glorified note taking and task manager app with org-mode.

I think there is a big misconception about what Emacs is (or is not). Many see it as an editor with advanced capabilities, and then they start comparing it to IDEs or editors like VS Code and the like, and finally they think Emacs falls short in comparing to these tools. 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 f…

That's amazing. What's special about emacs to do that vs any other scriptable editor? I don't think I've used an editor that's not scriptable since the late 80s. All the ones I've used could run script and those scripts could call out other programs. Is there anything emacs is doing here that they's other editors wouldn't do?

Re: Using Alfred to open your GitHub repositories in the browser

#19
post #18
post #13

Earlier quoted context omitted.

I think there is a big misconception about what Emacs is (or is not). Many see it as an editor with advanced capabilities, and then they start comparing it to IDEs or editors like VS Code and the like, and finally they think Emacs falls short in comparing to these tools. 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 f…

That's amazing. What's special about emacs to do that vs any other scriptable editor? I don't think I've used an editor that's not scriptable since the late 80s. All the ones I've used could run script and those scripts could call out other programs. Is there anything emacs is doing here that they's other editors wouldn't do?

Short answer: Lisp! - I mean, been using "Sublime Text" some years ago, and "Sublime Text" is scriptable / extendable in Python, and although I am fairly familiar with Python, it never occured to me to extend "Sublime Text". - I can open a scratch buffer in Emacs, hack away commands, put them together in a Lisp function, put it in my `init.el` file , bind it to a shortcut very easily and keep extending my Emacs setup.

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.

Post reply on HN