Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
More info about how this compares to auto-complete #68
Are they at feature parity? E.g. in the screenshots company is only shown listing completion candidates, but AC can also show documentation for the currently active candidate. What happens when you press
I frequently use this functionality for API discovery, I will search for whatever I'm interested in say
I assume you yourself used auto-complete-mode at some point. What prompted you to assume stewardship of company-mode instead of patching up any annoyances with AC?
I'm very interested about more details from @dgutov too, but speaking for me (I switched to company-mode 3 days ago), I can say that it is MUCH simpler to get it working and to configure it. Also it always seem to work, whereas with auto-complete I often went into "it should work but doesn't" mode.
I forgot where it is but there are examples of auto-complete source vs company source and company source takes half the lines and is easy to understand.
Roughly. Here's a quick difference list:
Company doesn't have:
Auto-Complete doesn't have:
Company doesn't have a correspondence to
A "graphical" documentation popup might look neat (aside from eating all syntax highlighting), but it also requires a certain amount of horizontal space in the current window to the right of the completion popup menu. What if your windows are 80-100 columns wide and you're typing something at the end of a line? The popup rectangle is squished against the window border. Things should be better when AC is using pos-tip to render the documentation popup, but I haven't tried it for quite a while, and judging by the MELPA stats it's a lot less popular than Auto-Complete itself.
Writing a Company frontend that would show the doc-buffer contents using
In short, less than readable code and non-responsive maintainer.
There's an annoying, still-present issue with AC that if you initiate completion in the middle of a symbol, it will insert the candidate, and also keep the part of the symbol that was already present after point.
I tried to fix it a while ago, got essentially no response, and in the process concluded I didn't really want to touch AC source code ever again. The way they've been discussing the vaporware full-rewrite a year ago gives an impression that the author doesn't like the code either (at least not anymore).
Company just has a convention whereby
Here's a typical example:
(The functionality is pretty much the same).
Your involvement in company-mode was actually the number one reason I wanted to take a closer look. Your name has been popping up all over Github with quality pull requests and comments. Robe is also brilliant.
Your response above is just another case in point
Regarding the difference in features I never could get
You might consider making a version of your post above available somewhere, where potential users can be made aware of the differences.
When I have some free time I'll do
I've recently added
I'll just link to this issue, for now. :)
It seems that company-mode doesn't have similar functionalities as
Update: I later saw there is
This should be easy to fix. Can you describe what other substitutions should we make? Link to the official documentation, if you can.
It isn't, but you can, if you really want to. Or write your own backend which will return a pre-saved list of words, that's really easy.
And if we're missing any (actual) keywords for any of the languages you're interested in, please report that, they will be added.
Thanks for your reply! As for
referenced this issue
Oct 21, 2014
Where are the user option descriptions documented?
I am trying to switch from auto-complete to company, but I am having a hard time configuring company the way I like, and the lack of docs is not helpful. I was able to find some stuff by searching
So I'm not even talking about docs for developers of extensions, it's purely docs for users. The website says almost nothing and README is literally empty.
and if you want cycle the other way too, all you must do is copy and paste the function
and replace the
Short, copy and paste this snippet into your dot emacs file or any other config file.
referenced this issue
Mar 6, 2015
@dgutov I just tested your latest 5e107fd commit. Works like a charm! Unfortunately moving forward with TAB does not work anymore. Instead it seams like the mini-buffer documentation of the current completion candidate gets updated, however, the key C-i works.
But I prefer C-n and C-p for next and previous candidate, anyway.
My previous comment #68 is now more or less superfluous. To cycle forward or backward someone can now achieve this by defining the following key bindings.
PS.: Should I still write a wiki, at least I/we could create a page with some useful key bindings, like that ones.
Works for me. Please file an issue with step-by-step repro, and include the beginning of
If you like. Probably not for this snippet, but anytime you want to post a bunch of code, a wiki page (or a pull request, actually) would likely be better.
added a commit
Feb 24, 2016
Might not be the best place for this question but I thought it was relevant.
Is there a way in company to replicate how auto-complete initiates completions?
Maybe a video would be better to describe this, but that's another thing I noticed between the two. (I believe company does something similar to the above but only when there's one completion candidate available).