Skip to main content
Topic: duplicate tab on mouse gesture (Read 961 times)

duplicate tab on mouse gesture

Old opera could duplicate a tab when doing the mouse gesture down,up. I liked this feature. It appears it's not by default in otter. Also, there does not appear to be a dialog to configure mouse gesture.
So I have read the browser code, and tried to configure a custom gesture for duplicate tab (down, up). Fortunately, code for custom mouse gesture was already there
Interesting file are : GesturesManager.cpp, ActionsManager.h enum ActionIdentifier

So
1. Modify user profile otter.ini. In the Browser section, add in  GestureProfilesOrder your custom profile.
[Browser]
GesturesProfilesOrder=default,mycustom
you need to keep default, to keep the bult-in gesture like new tab, previous etc. I could not find where they are defined.

2. Then, create the subdirectory "gestures" in the profile directory
3. in that directory, create mycustom.ini file
[mycustom]
down,up=CloneTabAction

Restart Otter. Duplicate tab on down-up  :beer:

Re: duplicate tab on mouse gesture

Reply #1
@thekingmen, default set is available here:
https://github.com/OtterBrowser/otter-browser/blob/master/resources/gestures/default.ini
You can also simply copy contents of that file, add new definition to [General] and then save it as default.ini.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.