magithub icon indicating copy to clipboard operation
magithub copied to clipboard

Improve cloning workflow

Open vermiculus opened this issue 7 years ago • 5 comments

I'm imagining a workflow that involves choosing a username from a list of 'favorites' with a match not required. Then, the current repositories of this user are loaded for completion.

With a prefix argument, we can keep the current behavior. This will keep the function usable for users with many repositories. If we can parse the input as a sparse repository, we should assume it's a URL and use that; otherwise we can use the user/repo format like we do today.

vermiculus avatar Jan 24 '18 10:01 vermiculus

What about add a cache mechanism for favourite users history? For example, I open fork some Emacs package developer's repo, to add PR.

And thanks for your job on magithub very much. I like it very much. ::))

stardiviner avatar Jan 25 '18 02:01 stardiviner

How do you mean? I'm guessing something that remembers all users whose repositories you've cloned?

vermiculus avatar Jan 25 '18 15:01 vermiculus

Yes, like a cloned users history in a list. (can be stored in customiz.el) I found package.el stores installed packaged in customize.el too. BTW, I think should store botth GitHub username with nick like (github-username . nick) or whatever data structure. WDYT? (Actually this is because I badly on remember names, I a completing mechanism will help me :) )

stardiviner avatar Jan 26 '18 03:01 stardiviner

I think nick-names is over-engineering; if something like that is desired, it wouldn't be too difficult to have as an add-on package. A completing read over users will already complete over a list like

username (alist-get 'name (ghub-get "/users/username"))
stardiviner (stardiviner)
vermiculus (Sean Allred)

I'll see what I can do about this in the next few weeks. For now, polishing up the documentation is my top priority :smile:

vermiculus avatar Jan 26 '18 04:01 vermiculus

That's very great. Thanks very much. Take your time.

stardiviner avatar Jan 26 '18 08:01 stardiviner