There are just too many user options to consider, which sure is partly possible, but makes the macro rather complicated to write. E.g. about normal left-clicks we can do nothing anyway, that will always open links in the current tab. And IMO that's fine.
So that leaves to open the link in new TAB, or new WINDOW, either FORE- or BACKground.... ouf...
Yes there are some options in main.kmm how to open links, but we still don't know if the user prefers to open links with Shift, Ctrl, or middleclick, which is then again combined with a bunch of different actions, ouf...
Uh oh... and those settings in main.kmm also define how to open "typed URLs", bookmarks, selected text!!
Perhaps much of that can be done with lots of work, nearing perfection, but without me
;-)
So I just took the most simple approach:
most users seem to prefer opening links with MIDDLE-click in a new tab (or background tab?), and that's it. Done :cool:
No bookmark options, no selected or typed text, those should be less frequent uses anyway.
Same for multiple windows.
Another window-loop is probably easy, but if one uses tabs, I don't expect them to have multiple windows, or like me, only to organize different subjects, each with lots of tabs, but not related. So why.
Okay, one thing that would still be important is to check if middle-click is set to open in new or background tab, that's defined somewhere in accel.kmm and stored in prefs. But personally, I'd rather not get lost further in that jungle ;-)
Naming, yeah always a prob... perhaps something like.... Open In New (or jump to existing)
Edited 1 time(s). Last edit at 05/24/2015 03:57PM by siria.