-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
completeFlakeRefWithFragment: handle names with dots #11377
base: master
Are you sure you want to change the base?
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-08-26-nix-team-meeting-minutes-172/51300/1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in meeting today:
We think before we support this feature we should clean up the code a bit.
- We should strive to have separate functions for quoting and unquoting (and ideally unit test that they round-trip). There might be something in libutil already to help with this (
quoteStrings
)- Maybe it needs to be a variation of what we have because of the potentially missing start/end quotes
- Even if it's a variation, centralizing it makes sure that we don't duplicate code unnecessarily
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-08-28-nix-team-meeting-minutes-173/51302/1 |
fair point as to the goto and tests in general; pushed accordingly—a bit confused as to what you mean by this, though:
as there already are, and they are in use here. namely, if you just mean the bit for detecting when a completion is taking place inside a quoted string, it would be possible, though of dubious utility, to add a variant of |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-10-30-nix-team-meeting-minutes-190/55845/1 |
Motivation
remedies a FIXME:
& subsequent completions into deeper attrpaths will preserve escaped quotes.
Context
{un,}escaping done in this PR errs on the side of simplicity to the point of being naïve (pretty easy to demonstrate that they are not strict inverses of each other), expectation being that tab completion is used interactively.
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.