From 75f56804991a762635d584364b1e6cc22b718ff9 Mon Sep 17 00:00:00 2001 From: Ben Arthur Date: Mon, 26 Nov 2018 12:52:24 -0500 Subject: [PATCH] document tab completion for dictionary keys (#30147) (cherry picked from commit a83606451df71916cd59fee804ecc57a873152fc) --- stdlib/REPL/docs/src/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/stdlib/REPL/docs/src/index.md b/stdlib/REPL/docs/src/index.md index 3f507918a6256..052619358b037 100644 --- a/stdlib/REPL/docs/src/index.md +++ b/stdlib/REPL/docs/src/index.md @@ -316,6 +316,21 @@ lastindex offset string The completion of fields for output from functions uses type inference, and it can only suggest fields if the function is type stable. +Dictionary keys can also be tab completed: + +```julia-repl +julia> foo = Dict("qwer1"=>1, "qwer2"=>2, "asdf"=>3) +Dict{String,Int64} with 3 entries: + "qwer2" => 2 + "asdf" => 3 + "qwer1" => 1 + +julia> foo["q[TAB] + +"qwer1" "qwer2" +julia> foo["qwer +``` + ## Customizing Colors The colors used by Julia and the REPL can be customized, as well. To change the