amarullz / windowgestures

GNOME Extension to Manage window with touchpad gestures
https://amarullz.com/
GNU General Public License v2.0
44 stars 6 forks source link

Implement CTRL+W for closing tabs. #19

Open githubenjoyer opened 7 months ago

githubenjoyer commented 7 months ago

Loving the extension so far but the most I am missing right now from Gesture Improvements is it used Ctrl+W for closing tabs. And I just got so used to that while browsing or any app with tabs. And it also works as closing the window most of the time even if the app doesn't have any tabs to speak of. Thank you for your efforts and keep doing a great job!

amarullz commented 7 months ago

For this, I will add custom keyboard shortcuts, so not only for Ctrl+w but for other usage. I still learn how to add it in pref.

Also I try to add window specific settings (at least for pinch gestures)

dasGesundeplus commented 7 months ago

Great to hear. I actually added an option in prefs.js and copied the the close-window-functionality minus the window disappearing at touchpad release to implement this function for myself, because i really missed this part of my touchpad workflow.

The following is just a suggestion, but I think it would make sense to have Ctrl+W as a kind of special case of the window close functionality, because in many programs, you are committing an action that is not easily reversible. To signify this, the red closing animation makes a lot of sense to me. Maybe the animation of close window and close document can be differentiated by choosing a smaller pinch-end-state (the point at which the action is executed) or by using an accelerated scale-down to the final size.

That being said, custom keyboard shortcuts would be a welcome addition!