leon icon indicating copy to clipboard operation
leon copied to clipboard

Modify URL before (open, share, copy, etc.)

Open serrq opened this issue 1 year ago • 7 comments

Sometimes we need only of basic URL, not the entire link.

So, even if clearing action is right, we just need to copy the root (basic website like amazon.com).

serrq avatar Jun 10 '23 17:06 serrq

Hello @serrq,

could you please explain step by step what you mean and what you want to achieve?

You send a link like amazon.com/something/123 to Leon and only want amazon.com? Wouldn't it be easier to just type the URL then?

svenjacobs avatar Jun 12 '23 04:06 svenjacobs

Not exactly. That’s just one example. I want to edit the URL string to my liking before using it for "copy", "open" or "share".

For the most part we use Leon as a cleaner, but I may need to add characters to the link because I have to go elsewhere.

serrq avatar Jun 12 '23 05:06 serrq

Would it be sufficient for you if Leon places the cleaned text / URL into a text edit field so that you can change it?

svenjacobs avatar Jun 12 '23 06:06 svenjacobs

Would it be sufficient for you to place the cleaned text / URL into a text edit field so that you can change it?

Of course this is possible but, isn’t this the place to request new features?

Isn’t it more convenient to edit directly inside Leon?

Since it gets the URL from the sharing hub what reason do I have to move to another app in order to complete the editing?

Okay. We can close this thread if you don’t want to implement it.

serrq avatar Jun 12 '23 07:06 serrq

Of course this is possible but, isn’t this the place to request new features? Isn’t it more convenient to edit directly inside Leon?

This is what I meant 😁 A text edit field on Leons result screen so that the cleaned text can be edited.

svenjacobs avatar Jun 12 '23 07:06 svenjacobs

Probably a mix of more "quick actions" and a free text edit field would be the way to go. Example quick actions (like current "URL decode/encode"):

  • Remove all parameters from URL
  • Replace URL with next match of "URL inside parameter"

Then regarding the parameters: As we are talking about usability on a mobile device, it would probably be a nice idea to have a similar UI to "postman.com" (an API testing platform). I think a screenshot is more meaningful than words so here we go: 2024-02-03 14_45_27-Example URL Params - URLCleaner Test

As parameters are selected/deselected, the URL is updated live.

I'm using this opportunity to thank you for your work on this project Sven!

farOverNinethousand avatar Feb 03 '24 13:02 farOverNinethousand

That's what I actually had in mind for the rewrite 😄

svenjacobs avatar Feb 05 '24 07:02 svenjacobs