nix icon indicating copy to clipboard operation
nix copied to clipboard

completeFlakeRefWithFragment: handle names with dots

Open ylh opened this issue 6 months ago • 2 comments

Motivation

remedies a FIXME:

nix build /etc/nixos#nixosConfigurations.w
# may now tab-complete to e.g.:
nix build /etc/nixos#nixosConfigurations.\"www.example.com\"

& 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 :+1: to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

ylh avatar Aug 26 '24 13:08 ylh