OhMyREPL.jl icon indicating copy to clipboard operation
OhMyREPL.jl copied to clipboard

Tab completion of Dict keys introduces an extra `"]`

Open carlocab opened this issue 5 years ago • 2 comments

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 of mydict["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 [".

carlocab avatar Sep 19 '20 09:09 carlocab

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 avatar Nov 27 '20 21:11 anandijain

@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...)

carlocab avatar Nov 27 '20 22:11 carlocab