5 ms·
Using Alfred to open your GitHub repositories in the browser
- nikivi 6y agoNeat. Another workflow that you can use is https://github.com/lox/alfred-github-jump 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 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 https://github.com/nikitavoloboev/small-workflows)
- mmazzarolo 6y agoVery cool, thanks for sharing.
- skinnymuch 6y agoBeen following you for a while. Thanks for this recap of stuff I forgot to start using!
- PascalW 6y agoI just noticed this project is using a bit of code [1] I put up on GitHub over 4 years ago to create Alfred workflows in Go. I never realized people other than myself were actually using this, wonderful! [1] https://github.com/pascalw/go-alfred https://github.com/pascalw/go-alfred
- submeta 6y agoI 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 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.
- RMPR 6y agoEverytime 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.
- submeta 6y agoI 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.
- gfxgirl 6y agoThat'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?
- submeta 6y agoShort 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.
- danielcorin 6y agoWhile 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 https://getcommande.com
- skinnymuch 6y agoI’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.
- treve 6y agoI would love it if anything that is not cross-platform, would just get a tag for what OS this is relevant to, so the rest of us don't need to bother.
- rmed 6y agointeresting to see how this works! 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 https://github.com/r-medina/gito https://github.com/r-medina/gito
- cghendrix 6y agoJust want to say, I love your style of writing. Very well made visually to help convey your content. Nice job
- mmazzarolo 6y agoThank you so much :)
- petepete 6y agoI 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)
- JNRowe 6y agoGitHub's own gh tool is really useful for things like this, as its builtin api subcommand¹ performs authenticated requests. Using that you can also see private repos and GitHub Enterprise usage is pretty seamless. Just replace HTTPie, with `gh api <endpoint>`. ¹ https://cli.github.com/manual/gh_api https://cli.github.com/manual/gh_api
- petepete 6y agoI've used gh daily for months and didn't even realise it had an api subcommand! Fantastic, thanks.
- corytheboyd 6y agoYou can also just have Alfred index your bookmarks, and then bookmark whichever repos you want to make openable through Alfred. It doesn’t work with multiple browser profiles, but I think that could get confusing anyway
- winkelwagen 6y agoLove it, using Alfred to launch bookmarked repos. I was so disappointed with chrome, it prioritizes search google over showing thé matching bookmarks. Didn’t mind opening chrome, but that was a dealbreaker for me.
- implfuture 6y agoFor vscode users, I recently discovered you can right-click any line and select “copy remote uri.” The copied link takes you right to that line on github (useful for quickly pointing someone to a line of code over slack).
- judge2020 6y agoSame for Jetbrains IDEs - right clicking a line will show 'open on GitHub' provided your git remote is pointing to GitHub.com.
- temochka 6y agoI also use a very similar script. The one notable difference is that I utilize Alfred’s "match" field that I set to a tokenized version of the repository name: https://github.com/temochka/macos-automation/blob/master/src/alfred/github_bookmarks.alfredworkflow/refresh_repos.sh#L24 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.
- kapsteur 6y agoSomeone have the same things for Gitlab ?
- gitgud 6y agoAlfred looks like a useful tool. Does anyone know of any alternatives for Ubuntu?
- gitgud 6y agoJust found one called "Albert" [1] https://github.com/albertlauncher/albert https://github.com/albertlauncher/albert
- iKlsR 6y agoI saw this today, it uses starship.rs and looks pretty decent https://twitter.com/malfaitrobin/status/1325076698182848514 https://twitter.com/malfaitrobin/status/1325076698182848514
- pitnikola 6y agoFor Mac users, who's looking for deeper integration with GitHub, we've built an extension in Raycast [1] that allows you to see pull requests, issues, notifications, workflows, etc. Repository search is also something we're planning to add soon. [1] https://raycast.com/extensions/github/ https://raycast.com/extensions/github/
- jereze 6y agoI take this opportunity to share a workflow I created for searching on Salesforce: https://github.com/jereze/alfred-salesforce https://github.com/jereze/alfred-salesforce It leverages Salesforce REST API and it runs entirely locally.