-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Auto-complete or show suggestions when tab is pressed in hub commands #871
Comments
It would be cool. However that would mean that your keystrokes would be triggering API requests and that you would have to wait for them to finish, making those autocompletions relatively slow? Are you sure this would be a good experience? |
Yes, that's true. I think we should add a proper command for discovery. For example hub . . . . . . . . . . . . Hub helps you win at git. . . . . . . . . . . . . . . . . ⭐ 6,165 |
^ discovery command would be great. |
So is anyone currently working on the discover command? If not, I can take it on! I'd really love that feature. Thanks :) |
@isundaylee Not to my knowledge. Please explore how such a command could work. Note that our API library is go-octokit right now and that it might need contributing to as well to facilitate the feature of searching for repos. |
@isundaylee i'd love to help. Let me know when you start working on it. Thanks |
@haikyuu That'd be really great! I just spent some time learning Go and went ahead and added the basic functionality of listing all the repos of a given user (isundaylee@df93604). We should probably discuss a bit about how we want to present the information, as well as possibly caching the information somewhere so that we can later reuse them for completion. |
So what information would we want in such a view? I'd assume repo name, # of forks, and # of stars. Anything else we might want? Also do we have a standard way of outputting tabular output in |
@isundaylee I foresee that this shell completion feature would have two parts of implementation:
|
hi, did anything come of this discussion? i'd be keen on seeing this implemented. @isundaylee did you ever submit a pull request for this? I do realize this was a year ago, btw! |
@minademian Hi! No I never ended up submitting a pull request for this. This was mostly because that at some point I stopped using |
It would be cool to auto-complete or show suggestions. For example:
hub clone github/
+ 2 *tab
would list all the public repos of Github. Andhub clone github/hu
+tab
would completegithub/hub
The text was updated successfully, but these errors were encountered: