Open chernjie opened 4 years ago
The problem I'm trying to solve:
I want a shareable link of a specific file or line range to be shared with my team mates for easy references
Use cases:
blob/{filename}
blob/{filename}#L12:34
How I imagine hub could expose this functionality:
Opens the find/{ref} url on github
find/{ref}
hub find
hub find {filename}
Current proof of concept I have, named ~/bin/git-find
~/bin/git-find
#!/usr/bin/env bash __hub_find(){ if test 0 -eq "$#" then hub browse -- find/$(git rev-parse --abbrev-ref HEAD) return $? fi hub browse -- search\?q=filename:"$*" } __hub_find "$@"
really cool, could open up alot of possibilities.
The problem I'm trying to solve:
I want a shareable link of a specific file or line range to be shared with my team mates for easy references
Use cases:
blob/{filename}
url for share-abilityblob/{filename}#L12:34
How I imagine hub could expose this functionality:
Opens the
find/{ref}
url on githubhub find
- opensfind/{ref}
hub find {filename}
- opensfind/{ref}
and pre-fill the find textboxCurrent proof of concept I have, named
~/bin/git-find