Skip to content

Completion for %(:*) and #(:*) in cmdline#105

Open
m42e wants to merge 2 commits intohrsh7th:mainfrom
m42e:main
Open

Completion for %(:*) and #(:*) in cmdline#105
m42e wants to merge 2 commits intohrsh7th:mainfrom
m42e:main

Conversation

@m42e
Copy link

@m42e m42e commented Aug 26, 2023

This will allow completion of % in the command line

iteratee and others added 2 commits August 26, 2023 08:06
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.
This is based on the cmp_cmdline pr that iteratee
It will offer completions for % and %:* as well as # and #:* in cmdline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants