From: Ingo Krabbe <ikrabbe.ask@gmail.com>
To: <9fans@9fans.net>
Subject: Re: [9fans] github blob exchange
Date: Mon, 10 Aug 2015 16:04:51 +0200 [thread overview]
Message-ID: <15bdde2d6476311f542b4ca783483b9b@krabbe.dyndns.org> (raw)
In-Reply-To: <34C2697A-0106-4691-ACAF-83A306C9A026@gmail.com>
Actually the command is no rocket science. You can simply use hget, sed and htmlfmt to reach similar things. The 'github' command is a kind of shortcut to blobs from github repositories.
The --raw mode is the opposite of --blob. I changed the code that *.md files are automatically read blob files, not raw files, though this does not make too much sense on plan9 terminals. I'm just experimenting a bit with the possible transfer modes for files.
So for *.md Files --blob mode is automatically selected. Using --raw with *.md Files (such as README.md) will choose the raw mode anyway.
For all other files --raw is the default mode and --blob can be chosen to get the html table. But --blob mode for syntax highlighted files does not work yet, as the output is not in an <article> tag (as it is the case with *.md Files).
Regards,
ingo
> I saw "GitHub" and "Plan 9" together and immediately heard angels singing. :)
>
> Question what does the --raw option do?
>
> On August 10, 2015 5:04:54 AM CDT, Ingo Krabbe <ikrabbe.ask@gmail.com> wrote:
>>Hi Plan9ers,
>>
>>I wrote a little rc script for my personal use. I want to share it with
>>you, as it look quite usefull to me (why would I have wrote it
>>otherwise).
>>
>> https://github.com/ikrabbe/github.rc
>>
>>Check it out and tell me your thoughts.
>>
>>Regards,
>>
>>ingo
>
> --
> Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
next prev parent reply other threads:[~2015-08-10 14:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 10:04 Ingo Krabbe
2015-08-10 13:26 ` Ryan Gonzalez
2015-08-10 14:04 ` Ingo Krabbe [this message]
2015-08-10 17:01 ` Kurt H Maier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15bdde2d6476311f542b4ca783483b9b@krabbe.dyndns.org \
--to=ikrabbe.ask@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).