NixOS/nix

repl complete: support quoted attributes

Open

#13.760 geöffnet am 15. Aug. 2025

Auf GitHub ansehen
 (0 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)C++ (1.293 Forks)batch import
featuregood first issueidea approvedrepl

Repository-Metriken

Stars
 (9.803 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 12h) (86 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem?

Using nix repl complete on quoted attributes doesnt work. For example if it has . (dot symbol).

For example we have an attribute nixosConfiguration."test.server.example.com"

nix-repl> nixosConfigurations.test<TAB>
nix-repl> nixosConfigurations.test.server.example<TAB>
nix-repl> nixosConfigurations.test.server.example
nix-repl> nixosConfigurations."test<TAB>
nix-repl> nixosConfigurations."test
nix-repl> nixosConfigurations."test.server.example.com".<TAB>
nix-repl> nixosConfigurations."test.server.example.com".

Proposed solution

nix-repl> nixosConfigurations.test<TAB>
nix-repl> nixosConfigurations."test.server.example.com"
nix-repl> nixosConfigurations."test<TAB>
nix-repl> nixosConfigurations."test.server.example.com"
nix-repl> nixosConfigurations."test.server.example.com".<TAB>
attr1
attr2

Checklist


Add :+1: to issues you find important.

Contributor Guide