Skip to content
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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

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.

None yet

2 participants