wojtekmach

wojtekmach

Hex Core Team

IExHelpOpen - opens documentation in a browser window

Hey everyone,

As you might know, Hex recently got a new option to open up documentation for a particular module in a browser window, e.g.: mix hex.docs open ecto --module Ecto.Changeset which I find very useful.

I thought it would be cool to have similar ability inside an iex session so I built: GitHub - wojtekmach/iex_help_open · GitHub.

Here’s a quick demo how this works:

It’s in a very early version and supports just functions, but if there’s interest in it I’d be happy to extend it to support more features. (It would likely require a rewrite from scratch :smile:.) Any feedback and/or contributions are very welcome in the meantime!

First 3 of 3 Posts! Switch mode

gon782

gon782

Ah, goodness, this is great! These are the types of tools we really need. I had in mind to make a remote version of this at some point, because I wanted to use it across VM/machine boundaries, so I could spawn new tabs of docs on other machines or outside my VM. I might actually take a look at this to extend it into that. Thanks for rekindling this. :slight_smile:

bbense

bbense

With Ehelper I got as far as printing out the url’s for everything you can access via the h command, the standard Erlang libraries, and anything you have installed via hex.

https://github.com/philosophers-stone/ehelper/blob/master/lib/doc_help/print_url.ex

I just looked at the openurl helper and it needs some TLC. I’m thinking some code got lost along the way since
it opens dash url’s.

wojtekmach

wojtekmach

Hex Core Team

nice! I’ve only learned about ehelper some hours after publishing the package above :sweat_smile:

I just looked at the openurl helper and it needs some TLC

the code I’m using for that is taken from hex and it seems to work pretty well: hex/lib/mix/tasks/hex/docs.ex at v0.15.0 · hexpm/hex · GitHub so I suppose it could be that if the user has dash installed then it uses that, otherwise opens it up in the browser.

Where Next?

Trending in Announcing Top

bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
385 14863 120
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
shahryarjb
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly. One of i...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
zachdaniel
Introducing AshStorage! Attachment and file management that slots directly into your resources :smiling_face_with_sunglasses: I had hope...
New

Other Trending Topics Top

type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
bjorng
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
yureehuh
Introduction Founded in 2017 by landscape ecologist and fire mitigation expert Harry Statter, Frontline developed the first fully integra...
New

We're in Beta

About us Mission Statement