Ian Chamberlain
67f07e05df
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
11 lines
409 B
Markdown
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.
|