fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Wonky copy and paste in Firefox/Android #2839

Open fps opened 4 months ago

fps commented 4 months ago

Hi,

I'm using julia from nix-on-android to create a Pluto.jl session which I then connect to via Firefox for Android. It's nifty to do some hacking on the go and really seems to work pretty darn good :), But sadly copying and pasting a really hit-and-miss. I attached a video

Here's the gist of the notebook I'm showing in the video, but the problem is not specific to this notebook:

https://gist.github.com/fps/b940df47f13734812bc32887666ca7f1

And here's a video:

https://github.com/fonsp/Pluto.jl/assets/84968/2f230ac7-f26f-4af5-a958-2462a57584ab

The usual interaction with text input in the browser in Firefox for Android is to long press into the general vicinity of the text you want to select. Then after a while two handles appear that allow to fine-tune the selection (or to "select all", etc..).

This is not what happens here. It is much harder to get the two handles to appear. And I'm not sure I understand what circumstances trigger it precisely. You can see me fumbling around in the video. Sometimes android even interprets my long press as a wish to open some link ;)

I guess to reproduce this you won't have to go the same route as me but rather just connect to your pluto notebook from firefox on some android device.

But if you want to reproduce it install nix-on-droid, then in the shell run nix-shell -p julia. Then run julia and proceed as usual (add Pluto, import it and Pluto.run().) Finally copy and paste the URL shown in the terminal to the Firefox browser.