Open RangerMauve opened 4 years ago
Hahahah was about to say "Oh great, I was just thinking I needed to make one of these for KyGost/agregore-ace-ide; looks like @RangerMauve already made one!" Nope, not done yet.
I'll probably make this for the IDE, any ideas on how to link two extensions together?
Also what's the API for fetching directory contents? I couldn't see anything at RangerMauve/dat-fetch.
You can list the items in a directory and ignore automatically resolving the index.html by passing in an HTTP header: https://github.com/RangerMauve/agregore-browser/blob/master/docs/Fetch-Hyper.md#fetchhypernameexampletxt-method-get-headers-x-resolve-none
I'm down to brainstorm how to make it easier.
Could you elaborate on what you mean by linking extensions together?
Ah great, I'll take a look.
For linking extensions-- if you have, for example my IDE extension, how could you click a button to choose a file, have the (or a) file extension come up, choose a file, then it sends the file back to the IDE.
Any thoughts?
If not, should we try to make it work somehow?
Re: above comment-- I'm just going to use APIs for both extensions and basically use extensions just to frame/redirect to said APIs. The APIs will also have linking between eachother. I might eventually make this optional.
@RangerMauve would you like me to move my extensions over to here? If not, did you want seperate ones? Or is this issue complete?
Do you think you'd be down to present your extension stuff at a comm comm meeting so we could record it and showcase it in the docs?
I haven't had time to look into it in depth yet. I think this could be marked as complete once there's a clear way to folks to view files via some docs.
Sounds good. It's not very nice yet. Maybe a few Comm Comms away?
Beaker has a built in library tool, I think it'd be nice to create a similar library tool that's just a hyper:// web app that uses the fetch API for inspect archive contents.
Progress is here: https://github.com/RangerMauve/hyper-navigator
More than willing to take a PR for something community based.
Next steps would be to add an extension which gives you a "view source" browser action that opens the current page