OhMyREPL.jl
OhMyREPL.jl copied to clipboard
Tab completion of Dict keys introduces an extra `"]`
Is the following related? Tab-completion of dictionary string keys automatically adds
"]after the key. If bracket autocompletion is on, this leads to a lot ofmydict["keyname"]"].
Originally posted by @DNF2 in https://github.com/KristofferC/OhMyREPL.jl/issues/17#issuecomment-244813131
Ran into this. Using tab completion to complete a dictionary key inserts "], which duplicates the "] OhMyREPL will have inserted when you first typed [".
I also see this. I'm on 0.5.10 and also see extra closing square brackets (but not with tab completion)
This is not the case for closing parens, which checks for duplicates before adding a new one.
Ex. type x[1] and you will get x[1]] but x(1) gives x(1).
This makes copy pasting into the REPL less friendly.
@anandijain I don't think that's the same bug. I also can't reproduce your problem.
Copying and pasting should also work fine; you may need to make sure you have bracketed paste enabled. (Though that is typically enabled by default--on macOS/Linux, at least--so I don't actually know how to toggle it...)