diff options
author | Qyriad <qyriad@qyriad.me> | 2024-05-31 18:29:10 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-06-17 13:08:02 +0000 |
commit | 010d93393e7dd978927f1c805c9b0c64e96b0ecc (patch) | |
tree | 8e132d0453ed81c22197e8be17575a5b55bd31f6 /doc/manual/rl-next/repl-complete-colon.md | |
parent | 6aead00a014cce25c46869af7f4394f22d01d10b (diff) |
repl: implement tab completing :colon commands
This uses a minor hack in which we check the rl_line_buffer global
variable to workaround editline not including the colon in its
completion callback.
Fixes #361
Change-Id: Id159d209c537443ef5e37a975982e8e12ce1f486
Diffstat (limited to 'doc/manual/rl-next/repl-complete-colon.md')
-rw-r--r-- | doc/manual/rl-next/repl-complete-colon.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/rl-next/repl-complete-colon.md b/doc/manual/rl-next/repl-complete-colon.md new file mode 100644 index 000000000..19733575b --- /dev/null +++ b/doc/manual/rl-next/repl-complete-colon.md @@ -0,0 +1,8 @@ +--- +synopsis: "`nix repl` now allows tab-completing the special repl :colon commands" +cls: 1367 +credits: Qyriad +category: Improvements +--- + +The REPL (`nix repl`) supports pressing `<TAB>` to complete a partial expression, but now also supports completing the special :colon commands as well (`:b`, `:edit`, `:doc`, etc), if the line starts with a colon. |