https://github.com/clarkema/alfred-hex
Alfred workflow for hex.pm integration.
https://github.com/clarkema/alfred-hex
alfred alfred3-workflow elixir elixir-lang hex
Last synced: 2 months ago
JSON representation
Alfred workflow for hex.pm integration.
- Host: GitHub
- URL: https://github.com/clarkema/alfred-hex
- Owner: clarkema
- Created: 2017-07-15T16:12:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T16:39:32.000Z (almost 9 years ago)
- Last Synced: 2025-03-05T06:25:29.773Z (over 1 year ago)
- Topics: alfred, alfred3-workflow, elixir, elixir-lang, hex
- Language: Ruby
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hex.pm for Alfred
There are quite a few Alfred workflows out there to search [hex.pm](https://hex.pm) for Elixir and Erlang modules — this is my take.
Why bother? Most of the other workflows out there either just provide a simple search shortcut, or rely on an external helper, or both. I wanted a self-contained tool that would take me to most of the sites of interest related to a package, and generate a Mix dependency tuple for the latest version. Because I'm super lazy.
## Features
* Simple Ruby script embedded in the workflow, using just the system Ruby
and standard library. No need to install Node or Elixir helpers.
* `h {query}` to search hex.pm
* Select a result to go to the hex.pm page for that package.
* Copying a result gets you the Mix dependency tuple for the latest version
* Shift-select to go to the hex.pm page _and_ copy the dependency tuple to your clipboard
* Alt-select to go to the project's Github page, if it has one
* Ctrl-select to go to the project's documentation on hexdocs.pm.
## Caveats
The hex.pm API doesn't seem to provide an explicit documentation link, so we calculate where the hexdocs.pm documentation _should_ be. This won't work for Erlang packages, and you'll get a 404.
The shift-select feature to visit a package's hex.pm page and copy its version tuple to the clipboard depends on functionality introduced in Alfred 3.4.1. This is currently in pre-release.