Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] : Allow a single menu choice to open multiple URLs #24

Open
gbgbg opened this issue Aug 21, 2022 · 2 comments
Open

[Enhancement] : Allow a single menu choice to open multiple URLs #24

gbgbg opened this issue Aug 21, 2022 · 2 comments

Comments

@gbgbg
Copy link

gbgbg commented Aug 21, 2022

I love urllink.
A very common use pattern for me is to search the same book title in several libraries.
I currently have a urllink entry for each library. I open all 5 tabs in the bg, 1 by 1, before looking who's got what (book, e-book, audio).
Similarly for a movie of interest, I skim multiple websites for rankings. I open them all with urllink, 1 by 1, and then go look.
Etc.

It would be great if urllink semantics could be extended to allow a multi-choice. (Ie, have one menu choice open multiple different tabs, with the same highlighted input text)
I can think of several ways to offer this. Whichever is most convenient for you would be great.

Thanks for considering!

@fnxweb
Copy link
Owner

fnxweb commented Aug 22, 2022

I think I see what you're getting at.

The first thing that comes to mind would be to have as the target URL for an entry not a link but some JavaScript that opens several links. Opening tabs might be the sticking point, depending on browser security levels nowadays.

My dialogue isn't all that for large URLs so you'd unfortunately have to prepare the JS with all your targets in an editor elsewhere to play.

I do know that a much older request involved wanting a JS target, I'm just now hoping I did already add allowance for that, or whether it was one of the improvements I considered but forgot!

I'm not in a position to have a play myself at the moment, though.

@gbgbg
Copy link
Author

gbgbg commented Aug 23, 2022

Thanks for getting back to me!
I can help solve the space issue for longish scripts with a simple UI design. Example:
Next to each item you currently have an X (delete) on the left and a drag (to reorder) on the right.
Add two more elements:
A counter, so lines are numbered 1,2,3,4,5 etc
A check button as to whether the line should show up in the menu or not.
Currently all lines defined show up in the menu.
The point with lines that will not show up, is that now you can add a simple way to define multi-tab entries:
Have (some or all of) lines 1,2,3 be invisible if you do/dont want to offer them as individual options.
Have line 4 be visible and say "nickname|$1;$2;$3"
When your parser sees this special format, it casts it into JS to open three tabs, one with line 1, one w line 2, and one w line 3.
This way no one needs to write lines any longer than we currently do. And certainly not write JS there.

Caveat being someone needs to implement this and I cannot offer my services here, unfortunately.
And I gather neither can you.
Maybe a third party would cruise by with both interest and ability...
I think it'd be a mighty useful 0 and simple to wield - feature for many of us out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants