cmp-cmdline icon indicating copy to clipboard operation
cmp-cmdline copied to clipboard

Handle completion of % and # completion correctly.

Open iteratee opened this issue 2 years ago • 7 comments

The current behavior if you try to complete :e %:p:h or something similar replaces only the h with the path, which isn't the desired behavior, because then nvim tries to open the wrong filename. Detect this case and produce edits that will replace the entire % chain with modifiers.

iteratee avatar Feb 25 '23 17:02 iteratee

My solution may not be ideal. I would be happy to re-write it given some pointers. I'm new to lua and vim plugins.

iteratee avatar Feb 25 '23 17:02 iteratee

any plans on merging this? this problem is been a pain for a while @hrsh7th

aldevv avatar Jun 09 '23 15:06 aldevv

please :(

fent avatar Aug 19 '23 04:08 fent

I'll try and rebase my current solution and push it up.

iteratee avatar Jan 05 '24 22:01 iteratee

I am installing from this PR using the commit hash, but it would be nice to have this merged.

0e4ef622 avatar Mar 04 '24 19:03 0e4ef622

In visual mode, completion doesn't keep track of typed chars, so generates wierdy items. Fixed and rebased in iteratee/cmp-cmdline#1 in case that takes some time to get merged, you can install from that PR instead

FoamScience avatar Apr 23 '24 16:04 FoamScience