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
Manually triggering identifier completion popup #1114
Comments
This is precisely something YCM does not want to do. I'm sorry, but the idea for YCM is to be unobtrusive by default. |
Thanks for responding @Valloric! Recalling the documentation:
In this case you provide an ability to manually triggering semantic completion through |
The main use-case YCM wants to address is the one where identifier completion auto-triggers as you type. Given that, manually triggering it makes no sense. There's some minor support for different YCM workflows, but it isn't really the "vision" of the plugin. The more knobs there are to tweak the harder it becomes to maintain and extend YCM, so I'm trying to keep the amount of knobs low. |
Thanks again Valloric for taking your time to respond. I can see that the main use case of YCM is what you described. Despite that, I would like to go on with my use case (hope somebody else will find useful). Right now I could just use YCM uses I would want to use Is there a way to avoid YCM overwriting my vimrc compleopt setting? |
if you really want that behaviour you could try augroup set_completeopt
au!
au Filetype * set completeopt=menu,preview
augroup END But as Valloric said this is not the behaviour that YCM want. |
@vheon thanks for your suggestion! I've tried a similar workaround but in the end, inspecting a little bit the autoload/youcompleteme.vim
Is being used with different events... therefore my completeopt will be overwritten with this function. Finally, and I know is ugly, I just changed that function to simple add With respect what YCM want, I understand that. But considering that YCM offers a settings to turn off automatic trigger popup but defining a hotkey to manually triggering semantic completion I think the common sense is to provide some hotkey for the identifier completion as well. |
Turns out that *only* semantic completion is triggered on Ctrl-Space. Since this is slightly more annoying than the automatic popup (and there's not a way to have manual identifier completion trigger along with semantic completion, see ycm-core/YouCompleteMe#1114), let's use ID completion.
Is this still the state of art, does it not coincide with the vision of the plugin to allow to manually trigger completion? YouCompleteMe is an incredible plugin, but at the current state YCM is super intrusive, and I'd love to have a way to trigger all completions with |
Try this:
if you press |
@dedowsdi This is nice... but it would be even nicer if it would disable auto_trigger after a successful completion or the start of a new word. This would make the functionality effectively the same as a manual trigger. @saaguero It would be nice if you would reconsider this feature. YCM has a lot of settings.. many of which are arguably less useful than this. The ability to disable auto complete, but no way to provide a manual trigger for the identifier completion seems like a strange decision. I would love to keep auto_trigger on. But it remains too slow to not feel intrusive even after using it for the past 4 years. I finally come to the conclusion I need to turn it off, only to find that it pretty much removes the core functionality of the plugin. I can get manually triggered semantic completion using my current plugin set without using YCM at all. |
As a follow up from a previous question #1056
What I would like to do is to have some YCM setting to manually triggering identifier popup... in the case that it just encounter a single match (no ambiguity) it should just pick that (as VIM auto completion does!)
Take a look at the following gif, the first one using YCM and the second one just using VIM auto completion:
The text was updated successfully, but these errors were encountered: