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

[BUG] Copying single value from answer-hover-window copies everything

Open xximranxx opened this issue 5 years ago • 5 comments

Not sure whether this belongs here or on Atom.jl

After running a line in the text editor, the answer is shown hovering (inline)

Copying from that hovering window does not copy the intended value only, but the entire answer window

E.g. running x=Dict(:a => 1, :b => 2) show the Dict hovering -> If I want to copy only a certain value from the hovering window, I can select it and copy, but the clipboard then contains the entire window (Dict) and not only the value selected

Screenshot 2020-04-08 at 10 02 31

Details

  • Atom version: 1.45.0 x64
  • Julia version: v"1.4.0"
  • OS: macOS 10.14.6
  • Package versions:
    • Atom.jl: v0.12.10
    • julia-client: 0.12.4
    • ink: 0.12.3

Steps to reproduce

  1. Run x=Dict(:a => 1, :b => 2)
  2. Copy a single value from the hovering answer window
  3. Paste somewhere

xximranxx avatar Apr 08 '20 08:04 xximranxx

For now you can copy the selected value with Ctrl-C, but yes, the context menu should do the same.

pfitzseb avatar Apr 08 '20 11:04 pfitzseb

No, Ctrl-C has the same effect - it copies the entire window

xximranxx avatar Apr 08 '20 14:04 xximranxx

Not for me: Peek 2020-04-08 16-42

pfitzseb avatar Apr 08 '20 14:04 pfitzseb

Strange...for me not, on macOS Even in the simple case that you present, it copies the entire String

xximranxx avatar Apr 08 '20 14:04 xximranxx

Btw, how did you make the gif? I will do the same to show

xximranxx avatar Apr 08 '20 15:04 xximranxx