-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[feature request] let g:ycm_goto_buffer_command combine 'same-buffer' and 'split-or-existing-window' #3838
Comments
Hi. I'm aware that the behaviour of |
Don't know the meaning of wrod But for samrtass, I just thought it will be better if there is a way I can let the result of @bstaletic thanks for your reply. |
|
Ah, sorry for misunderstood your meaning. I'm asking for "listen to |
I've define above function to make this, but seems variable |
I still don't fully understand what feature this is requesting. |
Wait is the logic:
? if so I think I can understand that. |
In my opinion it should be:
|
Hi @bstaletic @puremourning is it possiable to let YCM read |
that would be possible (and not difficult). would accept a pr with vim-layer tests that changes it to just read vim.vars rather than its own config store |
Hi, @puremourning will my issue be solved if I just change line YouCompleteMe/python/ycm/youcompleteme.py Line 421 in 9f4d101
to
Am I right without talking about tests? |
Maybe. Does it? |
Yes, it works well for me. |
Hi, @puremourning . I'm very glad to make a pr for YCM!!! But seems it's hard for me to write a corresponding test. I think the test should be add at
after search at source code. And I write a demo:
|
For now, I have two questions. One: how to trigger the test as run By the way, is there a new contact method as gitter can't access. Thanks! |
Issue Details
For current setting if I set
g:ycm_goto_buffer_command
tosplit-or-existing-window
I could use:rightbelow YcmCompleter GoToDefinition
to open in a horizontal window if the result not open, and use:rightbelow vert YcmCompleter GoToDefinition
to open in a vertical window if the result not open, too.What I wish is open result in current window when no prefix for
YcmCompleter GoToDefinition
. So the expected behavior different with 'split-or-existing-window' is new setting support open result in split or current buffer, it like a combine withsame-buffer
andsplit-or-existing-window
.New setting will check whether has a prefix for
YcmCompleter
or not. If has a prefix it will do the way what 'split-or-existing-window' does, if no prefix it will do likesam-buffer-or-existing-window
.I'm not a native speaker of English. Sorry for grammer errors.
Thanks in advance!
The text was updated successfully, but these errors were encountered: