Hello,
I observe that tab-completion is not available during calls to readline()
, or at least it appears to behave this way for me.
Sometimes, the user being able to use tab completion to write special characters when requested to input to some code using the stdin, for example a capital delta Δ (written by typing \Delta[TAB]), is nice to have.
I also tried pasting a special character such as Δ after running ‘readline()’, which the function accepted and returned as it does with any other character.
I noted when reading the documenation for tab completion:
In both the Julian and help modes of the REPL
I wanted to ask the community:
- Does this mean that readline() goes to a mode of the REPL which is neither the Julian nor help mode?
- If so, which of the modes is it?
Thanks for your thoughts!
I found a related post on this forum, which noticed that tab-complete’s behaviour seemed to depend on the choice between using and import, though I don’t think this is exactly the same.
Minimum working example in the Julian REPL:
readline()
Then try and type a character using tab-complete such as Δ (\Delta[TAB])
Julia Version information
julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)