-
Notifications
You must be signed in to change notification settings - Fork 59
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
Bugs in completion with Insert
behaviour
#20
Comments
Insert
behaviour
As of thing in And as of the issue itself - unfortunately, I can't just show it (because it is no any visible mark that I pressing I'll try to rephrase: a) I have following mappings:
1.a) Also, my current working directory consists of subdirectory
So I just want to ask, what is a right things to do in such workflow? 😸 |
Well, maybe I shouldn't use But then it will only elliminate one part of |
The Finally, I understand your problem. I will fix it in cmp-cmdline. |
Yeah, |
Hi there!
I've faced issue, possibly related to my (probably wrong) workflow, but I don't know how to fix it properly:
I've "path" source enabled in "global" sources (I mean, not for just cmdline).
Also I have mappings that uses
behavior = cmp.SelectBehavior.Insert
for<Tab>
,behavior = cmp.SelectBehavior.Select
for<Up>
/<Down>
, andbehavior = cmp.ConfirmBehavior.Replace, select = false
for<CR>
.Meaning "if I'm okay with first suggested variant, I'll just press Tab, and won't bother to navigate anything and pressing Enter, and if it is not - I'll navigate to the appropriate variant and will press Enter on it to replace completion with proper one".
So, when I type
:e fil<Tab>
, and select the appropriate result, I'm getting cmdlne completed to:e files/
. Next I want to navigate files inside it, and sincecmp
doesnt do that by typing<Tab>
once more, I type/
(as I did with deoplete time ago), and then<backspace>
it, to somehow makecmp
know that previous completion stage is over, and I want to complete further.Unfortunately, it still shows only
files/
as only available completion suggestion, and doesn't look inside...And it will only work as expected after selecting proper suggeston (
files/
) with<CR>
So, it looks for me like
cmp-path
is intended to work withInsert
behaviour on<CR>
, and not-inserting over navigation 🤷♂️P.S. also I hit another variant of #19 while tested things for that issue:
if I type
.
afterfiles/
, and will try to navigate over results, there would be:files/.
,files/..
, andfiles/
. Selecting first two inserts exactly what said, but choosing last one (files/
) insertsfiles/.files/
🤷♂️The text was updated successfully, but these errors were encountered: