Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display gemtext file from stdin #205

Closed
mke21 opened this issue Feb 27, 2021 · 5 comments
Closed

Display gemtext file from stdin #205

mke21 opened this issue Feb 27, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@mke21
Copy link

mke21 commented Feb 27, 2021

Is it possible for Amfora to read from stdin? I would like to pipe html2gmi directly into amfora if possible.

@makew0rld
Copy link
Owner

Amfora currently doesn't do this, but I can add it. For now your best bet would be to write to a file and then open that file like this: amfora file:///absolute/path/to/file.gmi.

Also if you're trying to browse the web with Amfora, I suggest you read this wiki page, and check out Duckling Proxy

@makew0rld makew0rld changed the title Reading from stdin? Display gemtext file from stdin Feb 27, 2021
@makew0rld makew0rld added the enhancement New feature or request label Feb 27, 2021
@mke21
Copy link
Author

mke21 commented Feb 27, 2021

I'm actually trying to use this in combination with newsboat, an rss reader. Currently I use lynx after first piping through the readability tool. This works, but I much prefer gmi and the way amfora renders it. Setting up a proxy seems a bit overkill, but if that's the only way, then I will do that.. Thanks.

@makew0rld
Copy link
Owner

Well if you're writing some script I'd suggest writing the output to a temporary file, and then opening that file in Amfora on the next line. That's the only way to do it for now, but I will add this feature eventually.

@dvejmz
Copy link
Contributor

dvejmz commented Jun 7, 2021

I wrote a quick proof-of-concept to see how this could work. Invoking this build of amfora with the following command renders the Gemtext file supplied via stdin to a new tab.

cat sample-gemtext.gmi  | ./amfora

I'd be happy to iterate on this and properly integrate this feature with the rest of the application.

@makew0rld
Copy link
Owner

Closed by #242.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants