Description
Within square brackets that follow a variable (i.e. a getindex
operation), tab completion for entering Unicode is broken, unless the variable in front is a Dict
or an Array
. I tried to trace down the error in REPLCompletetions
.
I think the problem is that dict_identifier_key
returns (true,nothing,nothing)
for any variable (which is not a dict), such that the function completions
returns early with this line:
https://github.com/JuliaLang/julia/blob/master/base/repl/REPLCompletions.jl#L493
The only exception are Array
s, since they are special cased in dict_identifier_key
to return (nothing,nothing,nothing)
in line
https://github.com/JuliaLang/julia/blob/master/base/repl/REPLCompletions.jl#L459
Is it my understanding that something is wrong here. I don't know much about the whole REPL
module, but the name dict_identifier_key
seems to suggest that it should only pick out Dict
s, and should therefore return (nothing,nothing,nothing)
for anything that is not a Dict
.