Skip to content
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

Is there a change to autocomplete? #2

Open
tiye opened this issue May 23, 2014 · 4 comments
Open

Is there a change to autocomplete? #2

tiye opened this issue May 23, 2014 · 4 comments

Comments

@tiye
Copy link
Contributor

tiye commented May 23, 2014

readline module supports basic complete logics, is cofmon able to take advantage of that?
http://stackoverflow.com/a/7096913/883571
https://github.com/joyent/node/blob/master/lib/readline.js

@rbrcurtis
Copy link
Owner

That would be sweet, but it would be tricky to implement. The best way would be to get the autocomplete from the underlying mongo shell. I'm not sure how that would work though honestly.

@tiye
Copy link
Contributor Author

tiye commented May 23, 2014

I think it would be hard too. Anyway current implementation is quite tricky and nice. I feel a lot better after I found cofmon since I don't have to write so many brackets to run my simple commands.

@rbrcurtis
Copy link
Owner

Thanks! I like it too. :)
Note that, if you’ve been using the “” shortcut I just changed it
to use single quotes instead of double as the mongo shell returns object
ids with double quotes which meant you couldn’t copy/paste the whole thing.
Hope that doesn’t cause you or anyone else too much frustration.

On Fri, May 23, 2014 at 9:27 AM, 题叶 [email protected] wrote:

I think it would be hard too. Anyway current implementation is quite
tricky and nice. I feel a lot better after I found cofmon since I don't
have to write so many brackets to run my simple commands.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-44015597
.

@tiye
Copy link
Contributor Author

tiye commented May 23, 2014

Thanks for mention that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants