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 path not starting with dot or slash or tilde #43

Open
Jasha10 opened this issue Jun 6, 2022 · 4 comments
Open

Completion for path not starting with dot or slash or tilde #43

Jasha10 opened this issue Jun 6, 2022 · 4 comments

Comments

@Jasha10
Copy link

Jasha10 commented Jun 6, 2022

It seems that the plugin only matches paths starting with . or / or ~.
I'd like to have completion for any relative path, even if it starts with a letter or number.

For example:

  • ./foo/bar.txt - completion works
  • /foo/bar.txt - completion works
  • ~/foo/bar.txt - completion works
  • foo/bar.txt - completion does not work!
@hrsh7th
Copy link
Owner

hrsh7th commented Jun 6, 2022

Yes. It's expected for now.
The reason why is that the doesn't work case will make false positive completion.

I can introduce option but I can't think for that name...

@Jasha10
Copy link
Author

Jasha10 commented Jun 6, 2022

I can introduce option but I can't think for that name...

You mean what the option should be called? Maybe something like "require_leading_slash"?

@gegoune
Copy link

gegoune commented Jun 6, 2022

@hrsh7th How are current triggers set? Maybe just expose that? Could be called trigger_characters or something like that.

@amarakon
Copy link
Contributor

amarakon commented Oct 2, 2022

Yes. It's expected for now. The reason why is that the doesn't work case will make false positive completion.

I can introduce option but I can't think for that name...

How will it make false positive completion? Vim's built in file completion (ControlX ControlF) does not have this issue. I believe this should be the default behaviour.

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

No branches or pull requests

4 participants