lix/doc/manual/rl-next/repl-complete-quoted-attrs.md
Ian Chamberlain 67f07e05df
repl: tab-complete quoted attribute names
Attribute names containing special characters like @ or . need to be
quoted, so we need to do our own tokenization of the command line for
completion, and quote the attribute names when we provide the completion.

Fixes: #450

Change-Id: I55a30dd272880c89445d9ded49b3f2c90cb19326
2024-12-10 18:10:16 -08:00

11 lines
409 B
Markdown

---
synopsis: "`nix repl` correctly tab-completes attribute names that require quotes"
cls: [1783]
credits: [ian-h-chamberlain]
category: Improvements
---
The REPL (`nix repl`) now includes quotes as part of attribute names while completing with `<TAB>`,
if necessary. For example, attribute names like `"hello@example.com"` or `"hello world"` would
be suggested without quotes, resulting in invalid syntax.