Show HN: Peek into a remote repo from GitHub or Gitlab quickly
1–10 of 12 posts
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#2Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#3Thread about git-peek (which the author here cites as inspiration) from a few days ago: https://news.ycombinator.com/item?id=26108039
And the top commenter there created a cute bash 10-liner that basically implements the same functionality: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe...
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#4Does this provide any kind of search mechanism? If it did, I would probably use this every day for viewing the source of 3rd party libraries.
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#5Knowing me, I'd close out and then realize I needed to search something else, etc.
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#6Does this provide any kind of search mechanism? If it did, I would probably use this every day for viewing the source of 3rd party libraries.
I believe the point of these tools is to be UNIXy, doing one thing well, and delegating the rest to other tools you already use. The script just downloads source code and drops you into an editor. Presumably, if you're a developer, you already have your editor set up for handling source code directories.
Future improvements I am looking at is to add a search for trending remote repos and some caching mechanism
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#7What's the benefit here over starting a tmux session and cloning the repo in /tmp? Knowing me, I'd close out and then realize I needed to search something else, etc.
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#8What's the benefit here over starting a tmux session and cloning the repo in /tmp? Knowing me, I'd close out and then realize I needed to search something else, etc.
for the core functionality, the tool pretty much does that, although I am thinking of adding trending repos and things as such.. and any other features that other folks have in mind, keeping the core utility of the tool as opening a repo in your editor
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#9Looks like github1s really kicked off everyone making these git previewers. Thread about git-peek (which the author here cites as inspiration) from a few days ago: https://news.ycombinator.com/item?id=26108039 And the top commenter there created a cute bash 10-liner that basically implements the same functionality: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe...
Above only works on vim. But has the advantage of working within vim, so no need to open a new instance, and with no external dependencies beyond git.
Re: Show HN: Peek into a remote repo from GitHub or Gitlab quickly
#10Looks like github1s really kicked off everyone making these git previewers. Thread about git-peek (which the author here cites as inspiration) from a few days ago: https://news.ycombinator.com/item?id=26108039 And the top commenter there created a cute bash 10-liner that basically implements the same functionality: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe...
Guilty as charged: https://github.com/drzel/vim-repo-edit Above only works on vim. But has the advantage of working within vim, so no need to open a new instance, and with no external dependencies beyond git.
This latest one (repo-peek) explicitly only works with github and gitlab