You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to edit a file by entering a file path in command mode, selecting an item from completion menu inserts full completion item to what triggered the completion.
Example in command mode let's say you want to edit ~/.config/nvim/init.lua, you type :e ~/.con and you see the completion menu and want to select ~/.config, you press to select the item and to insert it. Your command line now has :e ~/.~/.config/ which is an incorrect file path. Expected behaviour: the command line has :e ~/.config/
Relevant configuration
{
'saghen/blink.cmp',
version='v0.*',
opts= {}
}
neovim version
0.10.3
blink.cmp version: branch, tag, or commit
0.9.2
The text was updated successfully, but these errors were encountered:
it seems the bug still persist if the with any command with this syntax :command [range] [arguments]
for example :set when writing :set sy^y ( so far good you get :set syntax) :set sy^y=js^y (you get :set json instead of :set syntax=json)
this could be fixed with
-- line 91 lua/blink/cmp/sources/cmdline/init.luaifnothas_prefixandcmd=='lua' or'set' thennew_text=current_arg_prefix..completionend
but then again the bug will persist in other cases like :w ~/dir1^y/dir2^y
Make sure you have done the following
blink.cmp
Bug Description
When attempting to edit a file by entering a file path in command mode, selecting an item from completion menu inserts full completion item to what triggered the completion.
Example in command mode let's say you want to edit
~/.config/nvim/init.lua
, you type:e ~/.con
and you see the completion menu and want to select~/.config
, you press to select the item and to insert it. Your command line now has:e ~/.~/.config/
which is an incorrect file path. Expected behaviour: the command line has:e ~/.config/
Relevant configuration
neovim version
0.10.3
blink.cmp
version: branch, tag, or commit0.9.2
The text was updated successfully, but these errors were encountered: