LibreTube icon indicating copy to clipboard operation
LibreTube copied to clipboard

Share menu should have a copy link along side piped, YouTube.

Open mcdz opened this issue 1 year ago • 5 comments

Describe your suggested feature

Adding copy link to the share menu will allow users to copy the link without switching app, then users can maybe use floating window to share the copied link.

Other details

No response

Acknowledgements

  • [x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I will fill out all of the requested information in this form.

mcdz avatar Jun 20 '24 10:06 mcdz

I agree. The share menu in some ROMs doesn't have a copy link option as in my case. I'm having difficulty just copying a video link.

screenshot

There is a small problem when implementing this feature. Which links are supposed to be copied: YouTube or Piped? This will require a solution.

Ehab-d avatar Jun 21 '24 11:06 Ehab-d

I use URLCheck app for this purpose...not sure this feature is absolute necessary for LibreTube. With URLCheck you can copy, edit & perform multiple custom actions on it.

shuvashish76 avatar Jun 25 '24 03:06 shuvashish76

Another feature that NewPipe allows is pasting url in search bar and opening that video from link.

mcdz avatar Jun 28 '24 07:06 mcdz

I use URLCheck app for this purpose...not sure this feature is absolute necessary for LibreTube. With URLCheck you can copy, edit & perform multiple custom actions on it.

you can't really make a justification for it not being there because copying links is something we do often and needing third party apps to do it is a bad mark on a great app such as this one

Dangolicious avatar Jul 03 '24 07:07 Dangolicious

New Pipe does that natively. That's why I suggested. It's a feature suggestion, not a rant. :) It's a bad design philosophy(To have an extra app just for a single purpose that can easily be native, maybe I'll contribute :) ). See the difference.

pipe libre

I use URLCheck app for this purpose...not sure this feature is absolute necessary for LibreTube. With URLCheck you can copy, edit & perform multiple custom actions on it.

you can't really make a justification for it not being there because copying links is something we do often and needing third party apps to do it is a bad mark on a great app such as this one

  • I think it's more about the way share UI is called.

mcdz avatar Jul 05 '24 19:07 mcdz

Okay, in fact https://github.com/libre-tube/LibreTube/blob/aaa9792001415197e12e1b5e96785b0baa95e020/app/src/main/java/com/github/libretube/ui/dialogs/ShareDialog.kt#L76 should "enable" the copy button according to Android's documentation about it. The copy button does appear for me on Stock Android 14, so I'm not really sure why it doesn't work on other Android ROMs / versions.

Bnyro avatar Jul 11 '24 17:07 Bnyro

I'm not really sure why it doesn't work on other Android ROMs / versions

Actually the problem is with some manufacturers who make stupid modifications in the Android share menu.

I suggest a solution is that long pressing the "YouTube" or "Piped" button copies the link of YouTube/Piped.

image

Ehab-d avatar Jul 12 '24 07:07 Ehab-d

I think long pressing is not really intuitive - I think a dedicated button would be better, that'll require a small redesign of the share dialog though, but I think that's reasonable.

Bnyro avatar Jul 12 '24 09:07 Bnyro

I suggest a solution is that long pressing the "YouTube" or "Piped" button copies the link of YouTube/Piped.

Then it will be like a hidden feature that most people will never notice. +1 for Bnyro design idea. Dedicated copy buttons for Piped and YouTube separately to the right side aligned with the toggle switch.

shuvashish76 avatar Jul 12 '24 09:07 shuvashish76

I think a dedicated button would be better

sure! I suggested the long presss solution because I assumed that you do not have time for a share menu redesign. But yeah it is reasonable.

Ehab-d avatar Jul 12 '24 10:07 Ehab-d

What do you guys think of this design? If it looks okay, I can raise PR.

image

amandeepsinghjamwal avatar Jul 12 '24 13:07 amandeepsinghjamwal

Thanks for the draft @amandeepsinghjamwal I planned to do a larger overhaul of the share dialog and already have some drafts for it, I'll probably work on that when I'm back home next week.

Bnyro avatar Jul 12 '24 13:07 Bnyro

I'm not really sure why it doesn't work on other Android ROMs / versions

Actually the problem is with some manufacturers who make stupid modifications in the Android share menu.

I suggest a solution is that long pressing the "YouTube" or "Piped" button copies the link of YouTube/Piped.

image

oh. thanks. that's dope. love it. (Isn't functional yet.)

mcdz avatar Jul 14 '24 11:07 mcdz

What do you guys think of this design? If it looks okay, I can raise PR.

image

nice. should I close this issue?

mcdz avatar Jul 14 '24 11:07 mcdz

should I close this issue?

No. GitHub issues are closed when already done by a PR.

Ehab-d avatar Jul 14 '24 19:07 Ehab-d