Skip to content

repl complete: support quoted attributes #13760

@yakimant

Description

@yakimant

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 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalgood first issueQuick win for first-time contributorsidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.replThe Read Eval Print Loop, "nix repl" command and debugger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions