kyuucr / open-link-in-other-window

Firefox extension for opening links in other window.
MIT License
9 stars 1 forks source link

Keybinding #3

Open GiancarloPozzoCoEPP opened 5 years ago

GiancarloPozzoCoEPP commented 5 years ago

Would it be possible to associate the action "open the link in the last opened other windows" to a shortcut?

Let's say I have only 2 firefox windows. I'd like to press Alt + left mouse button (or middle button) and open the link in the other opened windows.

Apart from that, thanks for this extension: I find it useful when I read a webpage that describes something (eg. a paint, a map) and I want to look both at this webpage and the described things. Your extension reminds me the "page preview" feature on en.wikipedia.org but if it had the keybinding it'd be definitely better :)

kyuucr commented 5 years ago

Thanks for the suggestion!

I'll look into implementing it, but I can't promise about the keybinding ;)

GiancarloPozzoCoEPP commented 5 years ago

Wonderful!! Thanks again :)

SuperGianchi commented 5 years ago

Hello CR,

From Firefox 66 it's possible to add keyboard shortcuts to addons!!!

I'll marry you if you can implement this!! :D

chk1 commented 3 years ago

I found this issue while looking for a similar thing, I read some extension documentation, unfortunately it seems that functions like Alt+Click are not possible

According to the commands documentation, it also is required that you use a modifier (Ctrl, Alt, etc.) and an ordinary key (except when using F keys). No mouse buttons possible, and I see no obvious way to combine this with a mouse click on a link

See also the answer here: https://stackoverflow.com/questions/57444566/webextension-mouse-click-command-api-mouse-click-shortcuts

SuperGianchi commented 3 years ago

Well, there is at least an add-on Snap Links, that is a recommended extension that meets firefox's standards for security, that can open one or multiple links in new tabs in the same window. Here, the idea is to open a link in another window.

(On the other hand, for search engines such as DuckDuckGo, GitHub etc, there is a default shortcut: click with the mouse right button and press "s". In this way you open a webpage with your favourite search engine. I think this shortcut is hardcoded in firefox.)