-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix file completion #152
base: master
Are you sure you want to change the base?
Fix file completion #152
Conversation
What does the first commit fix in the "foo " case? I can't see any difference. Currently the completion doesn't seem to handle files with whitespaces. But checking against And I'm no fan of the vint changes. Replacing It would be cool if you would use one commit per change. It's kind of hard to follow otherwise. And |
4c8a524
to
9591a26
Compare
Changed the vint changes.. for the map expr you can use "'foo'", i.e. double quotes for the outer level. policies:
ProhibitEqualTildeOperator:
enabled: false
ProhibitUnnecessaryDoubleQuote:
enabled: false (although I would prefer to fix them) Will have to revisit this PR / answer your comments, but might take a while. |
48d60d8
to
3f36bbf
Compare
It seems like this just confused path with head for completing relative files. With "foo " head contains whitespace at the end, but path does not. This fixes completion of relative files basically.
- handle '~/' correctly: previously is was even matched by the `=~ '^.\/'`, which turned "~/foo" into "./foo" then! - handle relative paths without prefix at the end - fix issues reported by vint (single quotes)
3f36bbf
to
beaeb9f
Compare
- Expand tilde alone to $HOME (same as vim's built in path completion) - Support completion of paths relative to ~/ (taken from PR mhinz#152) This is getting quite messy now, but that's ok, we have some tests! Refactoring can come later, maybe when supporting hidden files/dirs.
- Expand tilde alone to $HOME (same as vim's built in path completion) - Support completion of paths relative to ~/ (taken from PR mhinz#152) This is getting quite messy now, but that's ok, we have some tests! Refactoring can come later, maybe when supporting hidden files/dirs.
- Expand tilde alone to $HOME (same as vim's built in path completion) - Support completion of paths relative to ~/ (taken from PR mhinz#152) This is getting quite messy now, but that's ok, we have some tests! Refactoring can come later, maybe when supporting hidden files/dirs.
- Expand tilde alone to $HOME (same as vim's built in path completion) - Support completion of paths relative to ~/ (taken from PR mhinz#152) This is getting quite messy now, but that's ok, we have some tests! Refactoring can come later, maybe when supporting hidden files/dirs.
- Expand tilde alone to $HOME (same as vim's built in path completion) - Support completion of paths relative to ~/ (taken from PR mhinz#152) This is getting quite messy now, but that's ok, we have some tests! Refactoring can come later, maybe when supporting hidden files/dirs.
Please see the commits for details.