dgtized / github-clone.el

Fork and clone Github projects from Emacs
58 stars 14 forks source link

Use github api to build an async completion source for repository names #18

Closed colonelpanic8 closed 8 years ago

colonelpanic8 commented 8 years ago

I was planning to add something to https://github.com/sigma/gh.el to support this feature. I'm almost done, and was wondering what you would think about doing something like this.

We might have to add helm as a (possibly optional) dependency to do something like this, since normal emacs completions don't really support async candidate generation.

colonelpanic8 commented 8 years ago

I've made the changes to gh.el in https://github.com/sigma/gh.el/pull/70, but I decided to write https://github.com/IvanMalison/github-search to implement this feature.

It would be really easy to have github-clone USE github-search's search feature You could hook right into github-search-select-repository-from-search-string at https://github.com/dgtized/github-clone.el/blob/f51340358e957c46faab5278cbb83cd6c6eb38c6/github-clone.el#L128 or offer a separate interactive function that does so.

colonelpanic8 commented 8 years ago

Alternatively, you could set github-clone as github-search-clone-repository-function

And use github-search to start the call