From 010d93393e7dd978927f1c805c9b0c64e96b0ecc Mon Sep 17 00:00:00 2001 From: Qyriad Date: Fri, 31 May 2024 18:29:10 -0600 Subject: 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 --- doc/manual/rl-next/repl-complete-colon.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/manual/rl-next/repl-complete-colon.md (limited to 'doc/manual/rl-next/repl-complete-colon.md') 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 `` 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. -- cgit v1.2.3