Live data from Hacker News

Show HN: git-peek – git repo to local editor instantly

github.com

21–30 of 39 posts

Re: Show HN: git-peek – git repo to local editor instantly

#21
post #15

I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good. You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe... It doesn't do any fancy tarball magic for Github links, but the shallow clon…

I think it’s a big stretch to say that providing tools which interoperate with product A and not product B is pushing anyone toward anything. By that logic everything is coercive. This is like when I was informed that I was ruining free computing by personally preferring a less free desktop OS for my own usage and encouraging others to choose what they prefer. I’m glad you made something that works for more environme…

it is a defensible position though, with countless examples. In the real world, mind share determines the fate of technology.

As the simplest example, take the monopoly of IE6 which was reinforced by web site makers who did not interoperate with other browsers because they expected the majority to use IE.

Re: Show HN: git-peek – git repo to local editor instantly

#22
post #15

I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good. You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe... It doesn't do any fancy tarball magic for Github links, but the shallow clon…

Thank you. Way better than the TypeScript version. Ugh. It may not have those features though. I will just add them myself.

Re: Show HN: git-peek – git repo to local editor instantly

#23
post #21

Earlier quoted context omitted.

I think it’s a big stretch to say that providing tools which interoperate with product A and not product B is pushing anyone toward anything. By that logic everything is coercive. This is like when I was informed that I was ruining free computing by personally preferring a less free desktop OS for my own usage and encouraging others to choose what they prefer. I’m glad you made something that works for more environme…

it is a defensible position though, with countless examples. In the real world, mind share determines the fate of technology. As the simplest example, take the monopoly of IE6 which was reinforced by web site makers who did not interoperate with other browsers because they expected the majority to use IE.

I was one of those website makers and while I took great pains to support Netscape, I regret to inform you that Netscape was bad and the people who didn’t want to support it were right.

Edit: lest I forget, I also took great pains to support IE, which also was bad, and the people who didn’t want to support it were also right.

Re: Show HN: git-peek – git repo to local editor instantly

#26
I also count myself between those who implemented such a script when reading about github1s on HN :)

My latest iteration involves not using the terminal at all - I open the project from emacs instead. So I `M-x peek-repo`, paste the url, and the project will be cloned and open right in my emacs (I use a GUI variant).

Also, personally I don't find the need to use a tmpdir - my tradition is cloning to ~ and just let it remain there indefinitely. I always end up with a mere 100 repos before next time I wipe my computer for whatever reason.

Re: Show HN: git-peek – git repo to local editor instantly

#28
post #7

Does this work with any git repo? Else, shouldn't this be called github-peek? Are you the author? Else why are you posting it as a Show HN?

It works with non GitHub repos, but it’s not as fast. When it detects a GitHub link, it downloads the tarball from GitHub & and separately downloads the specific file linked (or the readme) using JSDelivr as a CDN. This is much faster than a normal clone When it’s a regular git link, it does a partial clone and opens in your editor.

Thank you.

I apologize. I don't know why I got the idea you weren't the author. It's not like the account names don't imply it.

I was aggressive because only the day before I too saw github1s and found it mostly pointless and this seemed the same.

You have answered both questions though, so, well that's why I phrase challenges as questions, in case my head is up my ass.

Re: Show HN: git-peek – git repo to local editor instantly

#29
post #15

I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good. You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe... It doesn't do any fancy tarball magic for Github links, but the shallow clon…

[deleted]
Post reply on HN